π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
β¨ feat(openapi): unify errors, pagination, rate limits and idempotency (#23231)
Arvin Xu5bda6c2faa2a
diff --git a/apps/server/src/modules/Redis/keys.ts b/apps/server/src/modules/Redis/keys.tsindex 5a3604914ea..e777bcf8533 100644--- a/apps/server/src/modules/Redis/keys.ts+++ b/apps/server/src/modules/Redis/keys.ts@@ -68,6 +68,11 @@ export const RedisKeyNamespace = {* Core LOBEHUB application keys (sessions, cache, etc.)*/LOBEHUB: 'lobechat',+ /**+ * Public REST API (`packages/openapi`): per-API-key rate-limit windows and+ * the first response stored for each `Idempotency-Key`.+ */+ OPENAPI: 'openapi',/*** Short-lived derived answers the send path would otherwise re-fetch per* turn (device system info, a skill's live tool list) and the one-shot@@ -352,6 +357,23 @@ export const RedisKeys = {workspaceRescanClaim: (userId: string, pool: string, deviceId: string, cwd: string): string =>`workspace_rescan_claim:v1:${userId}:${pool}:${deviceId}:${cwd}`,},+ /**+ * Public REST API scope β see {@link RedisKeyNamespace.OPENAPI}.+ */+ openapi: {+ /**+ * Requests one caller identity sent to one rate-limit bucket in one fixed window.+ * Full key: openapi:rate_limit:v1:{identity}:{bucket}:{windowStart}+ */+ rateLimit: (identity: string, bucket: string, windowStart: number): string =>+ `rate_limit:v1:${identity}:${bucket}:${windowStart}`,+ /**+ * The claim, then the stored first response, of one user's `Idempotency-Key`.+ * `{keyHash}` hashes the client key so arbitrary header bytes never reach the key.+ * Full key: openapi:idempotency:v1:{userId}:{keyHash}+ */+ idempotency: (userId: string, keyHash: string): string => `idempotency:v1:${userId}:${keyHash}`,+ },/*** QQ passive-reply scope β see {@link RedisKeyNamespace.QQ_PASSIVE}. `{key}` is* `{applicationId}:{threadId}`.@@ -387,6 +409,7 @@ export const RedisKeyScopeNamespace = {botWake: RedisKeyNamespace.BOT_WAKE,integrations: RedisKeyNamespace.INTEGRATIONS,lobechat: RedisKeyNamespace.LOBEHUB,+ openapi: RedisKeyNamespace.OPENAPI,qqPassive: RedisKeyNamespace.QQ_PASSIVE,sendPathCache: RedisKeyNamespace.SEND_PATH_CACHE,} as const satisfies Record<diff --git a/apps/server/src/services/redis/README.md b/apps/server/src/services/redis/README.mdindex 44a08d3775b..c037b0acd89 100644--- a/apps/server/src/services/redis/README.md+++ b/apps/server/src/services/redis/README.md@@ -14,6 +14,10 @@ callers do not choose a provider, prefix, key, SET options or claim lifetime.operation, handed out through its `waitHeteroSteer` poll. At most once: a claim pops the messageand nothing re-queues it; unclaimed past its expiry it reads `expired`, and the run's reportedresult stays readable for an hour. Writes throw without Redis; reads answer `undefined`.+- `openapi`: the public REST API's per-caller rate-limit windows (fixed, epoch-aligned) and+ `Idempotency-Key` records β a five minute in-flight claim, then the first response for 24 hours,+ per user and hashed key. Every method returns `undefined` without Redis; the REST layer then+ admits the request (fail open).- `linear`: single-use OAuth state for "Connect Linear" (ten minutes, deleted on first read).- `connectorOAuth`: how each connector OAuth flow ended (account and outcome), for ten minutes,read back by the window that started the flow. `null` without Redis.diff --git a/apps/server/src/services/redis/index.ts b/apps/server/src/services/redis/index.tsindex 59d72dba79a..dae08e79af9 100644--- a/apps/server/src/services/redis/index.ts+++ b/apps/server/src/services/redis/index.ts@@ -10,6 +10,7 @@ import { deviceSystemInfo } from './deviceSystemInfo';import { heteroControl } from './heteroControl';import { inboundWebhook } from './inboundWebhook';import { linear } from './linear';+import { openapi } from './openapi';import { pageCollab } from './pageCollab';import { qqPassive } from './qqPassive';import { skillTools } from './skillTools';@@ -32,6 +33,7 @@ export const redisService = {heteroControl,inboundWebhook,linear,+ openapi,pageCollab,qqPassive,skillTools,diff --git a/apps/server/src/services/redis/openapi.realRedis.test.ts b/apps/server/src/services/redis/openapi.realRedis.test.tsnew file mode 100644index 00000000000..85bd045bd37--- /dev/null+++ b/apps/server/src/services/redis/openapi.realRedis.test.ts@@ -0,0 +1,79 @@+// @vitest-environment node+import type IORedisClient from 'ioredis';+import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';++import type { openapi } from './openapi';++/**+ * Runs the openapi Lua scripts against a real Redis. Skipped unless+ * `OPENAPI_REAL_REDIS_URL` points at a disposable instance:+ *+ * docker run -d -p 127.0.0.1:6391:6379 redis:7-alpine+ * OPENAPI_REAL_REDIS_URL=redis://127.0.0.1:6391 vitest run apps/server/src/services/redis/openapi.realRedis.test.ts+ */+const url = process.env.OPENAPI_REAL_REDIS_URL;++describe.skipIf(!url)('openapi redis domain (real Redis)', () => {+ const prefix = `openapi-test-${Date.now()}`;+ let domain: typeof openapi;+ let raw: IORedisClient;++ beforeAll(async () => {+ vi.resetModules();+ process.env.REDIS_URL = url;+ process.env.REDIS_PREFIX = prefix;+ domain = (await import('./openapi')).openapi;+ const { default: IORedis } = await import('ioredis');+ raw = new IORedis(url!);+ });++ afterAll(async () => {+ const keys = await raw.keys(`${prefix}:*`);+ if (keys.length > 0) await raw.del(...keys);+ raw.disconnect();+ });++ it('counts a window atomically and gives it an expiry on the first hit', async () => {+ const scope = { bucket: 'b', identity: 'key:k1', limit: 2, windowSeconds: 60 };+ expect(await domain.hitRateLimit(scope)).toMatchObject({ allowed: true, remaining: 1 });+ expect(await domain.hitRateLimit(scope)).toMatchObject({ allowed: true, remaining: 0 });+ expect(await domain.hitRateLimit(scope)).toMatchObject({ allowed: false, remaining: 0 });++ const [key] = await raw.keys(`${prefix}:openapi:rate_limit:v1:key:k1:b:*`);+ expect(await raw.get(key)).toBe('3');+ expect(await raw.ttl(key)).toBeGreaterThan(0);+ });++ it('only lets the claim owner complete or release a key', async () => {+ const scope = { fingerprint: 'f', keyHash: 'h1', userId: 'u1' };+ const claim = await domain.claimIdempotency(scope);+ expect(claim).toMatchObject({ state: 'claimed' });+ const token = (claim as { token: string }).token;++ // A stale owner (its claim expired and a retry took the key) writes nothing.+ await domain.releaseIdempotency({ ...scope, token: 'stale' });+ await domain.completeIdempotency(+ { ...scope, token: 'stale' },+ {+ body: 'stale',+ contentType: null,+ status: 200,+ },+ );+ expect(await domain.claimIdempotency(scope)).toEqual({ sameRequest: true, state: 'pending' });++ const response = { body: '{"ok":true}', contentType: 'application/json', status: 201 };+ await domain.completeIdempotency({ ...scope, token }, response);+ expect(await domain.claimIdempotency(scope)).toEqual({+ response,+ sameRequest: true,+ state: 'completed',+ });+ const [key] = await raw.keys(`${prefix}:openapi:idempotency:v1:u1:h1`);+ expect(await raw.ttl(key)).toBeGreaterThan(86_000);++ // A completed record is no longer a claim: releasing it is a no-op.+ await domain.releaseIdempotency({ ...scope, token });+ expect(await domain.claimIdempotency(scope)).toMatchObject({ state: 'completed' });+ });+});diff --git a/apps/server/src/services/redis/openapi.test.ts b/apps/server/src/services/redis/openapi.test.tsnew file mode 100644index 00000000000..5ebc9941674--- /dev/null+++ b/apps/server/src/services/redis/openapi.test.ts@@ -0,0 +1,141 @@+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';++import { openapi } from './openapi';++const store = new Map<string, string>();+const redis = vi.hoisted(() => ({ client: null as any }));+vi.mock('./client', () => ({ getRedisServiceClient: async () => redis.client }));++// Mirrors the domain's Lua scripts: the rate-limit counter and the owned-claim write.+const evalScript = async (script: string, _keys: number, key: string, ...args: any[]) => {+ if (script.includes("'INCR'")) {+ const next = Number(store.get(key) ?? 0) + 1;+ store.set(key, String(next));+ return next;+ }+ const raw = store.get(key);+ const entry = raw ? JSON.parse(raw) : undefined;+ if (entry?.state !== 'pending' || entry.token !== args[0]) return 0;+ if (args[1] === 'del') store.delete(key);+ else store.set(key, args[1]);+ return 1;+};++const memoryClient = {+ del: vi.fn(async (key: string) => (store.delete(key) ? 1 : 0)),+ eval: vi.fn(evalScript),+ get: vi.fn(async (key: string) => store.get(key) ?? null),+ set: vi.fn(async (key: string, value: string, options?: { nx?: boolean }) => {+ if (options?.nx && store.has(key)) return null;+ store.set(key, value);+ return 'OK';+ }),+};++beforeEach(() => {+ store.clear();+ vi.clearAllMocks();+ redis.client = memoryClient;+ vi.useFakeTimers();+ vi.setSystemTime(new Date('2026-11-17T10:00:30Z'));+});++afterEach(() => {+ vi.useRealTimers();+});++const windowStart = Math.floor(new Date('2026-11-17T10:00:00Z').getTime() / 1000);++describe('redisService.openapi.hitRateLimit', () => {+ const scope = { bucket: 'default', identity: 'key:k1', limit: 2, windowSeconds: 60 };++ it('counts requests in an epoch-aligned window and refuses past the limit', async () => {+ expect(await openapi.hitRateLimit(scope)).toEqual({+ allowed: true,+ limit: 2,+ remaining: 1,+ resetAt: windowStart + 60,+ });+ expect(memoryClient.eval).toHaveBeenCalledWith(+ expect.stringContaining("'INCR'"),+ 1,+ `rate_limit:v1:key:k1:default:${windowStart}`,+ 61,+ );+ expect((await openapi.hitRateLimit(scope))?.remaining).toBe(0);+ expect(await openapi.hitRateLimit(scope)).toMatchObject({ allowed: false, remaining: 0 });+ });++ it('starts a fresh window once the current one ends', async () => {+ await openapi.hitRateLimit(scope);+ await openapi.hitRateLimit(scope);+ vi.setSystemTime(new Date('2026-11-17T10:01:00Z'));+ expect(await openapi.hitRateLimit(scope)).toMatchObject({ allowed: true, remaining: 1 });+ });++ it('answers undefined without Redis so the caller can fail open', async () => {+ redis.client = null;+ expect(await openapi.hitRateLimit(scope)).toBeUndefined();+ });+});++describe('redisService.openapi idempotency', () => {+ const scope = { fingerprint: 'f1', keyHash: 'h1', userId: 'u1' };++ it('claims a key once, then replays the stored first response for the same request', async () => {+ const claim = await openapi.claimIdempotency(scope);+ expect(claim).toEqual({ state: 'claimed', token: expect.any(String) });+ const { token } = claim as { token: string };+ expect(memoryClient.set).toHaveBeenCalledWith('idempotency:v1:u1:h1', expect.any(String), {+ ex: 300,+ nx: true,+ });+ expect(await openapi.claimIdempotency(scope)).toEqual({ sameRequest: true, state: 'pending' });++ const response = { body: '{"ok":true}', contentType: 'application/json', status: 201 };+ await openapi.completeIdempotency({ ...scope, token }, response);+ expect(memoryClient.eval).toHaveBeenLastCalledWith(+ expect.any(String),+ 1,+ 'idempotency:v1:u1:h1',+ token,+ expect.any(String),+ 86_400,+ );++ expect(await openapi.claimIdempotency(scope)).toEqual({+ response,+ sameRequest: true,+ state: 'completed',+ });+ expect(await openapi.claimIdempotency({ ...scope, fingerprint: 'other' })).toMatchObject({+ sameRequest: false,+ state: 'completed',+ });+ });++ it('frees a released claim for a retry', async () => {+ const { token } = (await openapi.claimIdempotency(scope)) as { token: string };+ await openapi.releaseIdempotency({ ...scope, token });+ expect(await openapi.claimIdempotency(scope)).toMatchObject({ state: 'claimed' });+ });++ it('ignores a completion or release from a request that no longer owns the claim', async () => {+ await openapi.claimIdempotency(scope);+ await openapi.releaseIdempotency({ ...scope, token: 'stale' });+ await openapi.completeIdempotency(+ { ...scope, token: 'stale' },+ {+ body: 'x',+ contentType: null,+ status: 200,+ },+ );+ expect(await openapi.claimIdempotency(scope)).toEqual({ sameRequest: true, state: 'pending' });+ });++ it('answers undefined without Redis', async () => {+ redis.client = null;+ expect(await openapi.claimIdempotency(scope)).toBeUndefined();+ });+});diff --git a/apps/server/src/services/redis/openapi.ts b/apps/server/src/services/redis/openapi.tsnew file mode 100644index 00000000000..43c071b78f6--- /dev/null+++ b/apps/server/src/services/redis/openapi.ts@@ -0,0 +1,200 @@+import { randomUUID } from 'node:crypto';++import { RedisKeys } from '@/server/modules/Redis';++import { getRedisServiceClient } from './client';++const getClient = () => getRedisServiceClient('openapi');++/** How long a stored first response answers replays of its `Idempotency-Key`. */+export const IDEMPOTENCY_RECORD_TTL_SECONDS = 24 * 60 * 60;+/**+ * How long an in-flight claim blocks a concurrent replay. Short, so a request+ * whose process died mid-flight frees its key instead of holding it for a day.+ * A request still running past it loses its claim: a retry then runs again,+ * and the first request's late completion no longer writes over the retry's.+ */+export const IDEMPOTENCY_PENDING_TTL_SECONDS = 5 * 60;++/**+ * One round trip per counted request: the first hit of a window sets its+ * expiry in the same atomic step, so a counter never outlives its window.+ *+ * KEYS[1] = window key; ARGV[1] = ttl seconds+ */+const HIT_RATE_LIMIT_SCRIPT = `+local count = redis.call('INCR', KEYS[1])+if count == 1 then redis.call('EXPIRE', KEYS[1], ARGV[1]) end+return count+`;++/**+ * Applies a write only while the key still holds the caller's own claim, so a+ * request that outlived its claim cannot overwrite or delete another's.+ *+ * KEYS[1] = idempotency key; ARGV[1] = claim token; ARGV[2] = 'del' | value;+ * ARGV[3] = ttl seconds (for a value)+ */+const OWNED_CLAIM_WRITE_SCRIPT = `+local raw = redis.call('GET', KEYS[1])+if not raw then return 0 end+local ok, entry = pcall(cjson.decode, raw)+if not ok or entry.state ~= 'pending' or entry.token ~= ARGV[1] then return 0 end+if ARGV[2] == 'del' then+ redis.call('DEL', KEYS[1])+else+ redis.call('SET', KEYS[1], ARGV[2], 'EX', ARGV[3])+end+return 1+`;++export interface RateLimitWindow {+ /** Whether this request fits in the window. */+ allowed: boolean;+ /** Requests admitted per window. */+ limit: number;+ /** Requests still admitted in the current window (never negative). */+ remaining: number;+ /** Unix time (seconds) the current window ends. */+ resetAt: number;+}++/** The first response to an idempotent request, replayed for its key. */+export interface IdempotentResponseRecord {+ body: string;+ contentType: string | null;+ /**+ * How `body` was serialized. `base64` keeps binary answers (audio, images)+ * byte-exact; records without it are plain text written before that change.+ */+ encoding?: 'base64';+ status: number;+}++type IdempotencyEntry =+ | { fingerprint: string; state: 'pending'; token: string }+ | { fingerprint: string; response: IdempotentResponseRecord; state: 'completed' };++export type IdempotencyClaim =+ | { state: 'claimed'; token: string }+ | { state: 'pending'; sameRequest: boolean }+ | { response: IdempotentResponseRecord; sameRequest: boolean; state: 'completed' };++const parseEntry = (raw: string | null): IdempotencyEntry | undefined => {+ if (!raw) return;+ try {+ return JSON.parse(raw) as IdempotencyEntry;+ } catch {+ return;+ }+};++export const openapi = {+ /**+ * Counts one request against a caller's fixed window for a bucket. Windows+ * are aligned to the epoch, so every instance agrees on when one resets.+ * One atomic script per request (see {@link HIT_RATE_LIMIT_SCRIPT}).+ * `undefined` without Redis: the REST layer then admits the request.+ */+ async hitRateLimit(scope: {+ bucket: string;+ identity: string;+ limit: number;+ windowSeconds: number;+ }): Promise<RateLimitWindow | undefined> {+ const redis = await getClient();+ if (!redis) return;++ const nowSeconds = Math.floor(Date.now() / 1000);+ const windowStart = nowSeconds - (nowSeconds % scope.windowSeconds);+ const resetAt = windowStart + scope.windowSeconds;+ const key = RedisKeys.openapi.rateLimit(scope.identity, scope.bucket, windowStart);++ const count = Number(+ await redis.eval<number>(HIT_RATE_LIMIT_SCRIPT, 1, key, scope.windowSeconds + 1),+ );++ return {+ allowed: count <= scope.limit,+ limit: scope.limit,+ remaining: Math.max(0, scope.limit - count),+ resetAt,+ };+ },++ /**+ * Claims a user's `Idempotency-Key` for one request. The first caller gets+ * `claimed` with a token, and must later `completeIdempotency` or+ * `releaseIdempotency` with it;+ * later callers see the in-flight claim or the stored first response, and+ * whether their request (by `fingerprint`) is the one that key was first+ * used for. `undefined` without Redis: the request then runs unguarded.+ */+ async claimIdempotency(scope: {+ fingerprint: string;+ keyHash: string;+ userId: string;+ }): Promise<IdempotencyClaim | undefined> {+ const redis = await getClient();+ if (!redis) return;++ const key = RedisKeys.openapi.idempotency(scope.userId, scope.keyHash);+ const token = randomUUID();+ const pending: IdempotencyEntry = { fingerprint: scope.fingerprint, state: 'pending', token };+ const claimed = await redis.set(key, JSON.stringify(pending), {+ ex: IDEMPOTENCY_PENDING_TTL_SECONDS,+ nx: true,+ });+ if (claimed) return { state: 'claimed', token };++ const entry = parseEntry(await redis.get(key));+ // Expired between the two calls, or unreadable: treat as still in flight+ // rather than run the request a second time.+ if (!entry) return { sameRequest: true, state: 'pending' };++ const sameRequest = entry.fingerprint === scope.fingerprint;+ return entry.state === 'completed'+ ? { response: entry.response, sameRequest, state: 'completed' }+ : { sameRequest, state: 'pending' };+ },++ /**+ * Stores the first response for the key, replayed for the next 24 hours.+ * Writes only while the caller's claim (`token`) still holds the key.+ */+ async completeIdempotency(+ scope: { fingerprint: string; keyHash: string; token: string; userId: string },+ response: IdempotentResponseRecord,+ ) {+ const redis = await getClient();+ if (!redis) return;++ const entry: IdempotencyEntry = {+ fingerprint: scope.fingerprint,+ response,+ state: 'completed',+ };+ await redis.eval(+ OWNED_CLAIM_WRITE_SCRIPT,+ 1,+ RedisKeys.openapi.idempotency(scope.userId, scope.keyHash),+ scope.token,+ JSON.stringify(entry),+ IDEMPOTENCY_RECORD_TTL_SECONDS,+ );+ },++ /** Frees the caller's own claim so the request can be retried (server error, stream). */+ async releaseIdempotency(scope: { keyHash: string; token: string; userId: string }) {+ const redis = await getClient();+ if (!redis) return;++ await redis.eval(+ OWNED_CLAIM_WRITE_SCRIPT,+ 1,+ RedisKeys.openapi.idempotency(scope.userId, scope.keyHash),+ scope.token,+ 'del',+ );+ },+};diff --git a/packages/openapi/README.md b/packages/openapi/README.mdnew file mode 100644index 00000000000..35d90d2a673--- /dev/null+++ b/packages/openapi/README.md@@ -0,0 +1,81 @@+# @lobechat/openapi++LobeHub's public REST API (`/api/v1`), built with Hono + zod. `openapi.yml` is generated from the routes β run `bun run --cwd packages/openapi generate:openapi`, never edit it by hand. The SDK in `packages/sdk` is generated from that file.++This file documents the conventions every route follows. The same text ships in the spec's `info.description`.++## Errors++Every error answers with the shared `ApiError` body:++```json+{+ "code": "validation_error",+ "details": [{ "path": "query.limit", "message": "Too big: expected number to be <=100" }],+ "error": "Invalid request: query.limit Too big: expected number to be <=100",+ "message": "Invalid request: query.limit Too big: expected number to be <=100",+ "requestId": "req_6f1cβ¦",+ "success": false,+ "timestamp": "2026-11-17T10:00:00.000Z"+}+```++- `code` is stable and machine-readable; branch on it, not on `message`.+- `details` appears on validation errors: one `{ path, message }` per failing field. `path` is dotted and starts with the request part (`json`, `query`, `param`, `header`).+- `requestId` equals the `X-Request-Id` response header, which every response carries. A client-supplied `X-Request-Id` (β€128 chars of `[A-Za-z0-9_.:-]`) is echoed back.+- `error` is the pre-`code` string field, kept as a deprecated alias of `message`.++Throw `ApiException(status, code, message, details?)` from `src/common/errors.ts` to pick a code; an `HTTPException` or a service error without one gets the default code for its status.++### Error codes++The catalogue lives in `API_ERROR_CODES` (`src/common/errors.ts`) and is published as the `ApiErrorCode` schema. Codes are only ever added.++| Code | Status | Meaning |+| ---------------------- | -------- | ------------------------------------------------------------------------------------------------------- |+| `validation_error` | 400 | The request failed schema validation; `details` lists each failing field. |+| `bad_request` | 400 | The request was understood but cannot be processed as sent. |+| `unauthorized` | 401 | Authentication is missing, invalid or expired. |+| `payment_required` | 402 | The operation needs credits or a plan the caller lacks. |+| `forbidden` | 403 | The caller is authenticated but may not perform this operation. |+| `insufficient_scope` | 403 | The API key lacks a capability scope this operation requires. |+| `workspace_mismatch` | 403 | `X-Workspace-Id` does not match the API key, or the caller is not a member of that workspace. |+| `not_found` | 404 | The resource does not exist or is not visible to the caller. |+| `conflict` | 409 | The request conflicts with the current state of the resource. |+| `idempotency_conflict` | 409, 422 | The `Idempotency-Key` is still being processed (409), or was first used with a different request (422). |+| `precondition_failed` | 412 | A precondition of the operation is not met. |+| `payload_too_large` | 413 | The request body exceeds the size this operation accepts. |+| `unprocessable_entity` | 422 | The request is valid but cannot be applied to the resource. |+| `rate_limited` | 429 | Too many requests for this API key. Retry after `Retry-After` seconds. |+| `internal_error` | 500 | An unexpected server error. Safe to retry with backoff. |+| `upstream_error` | 502 | An upstream provider failed while serving the request. |+| `service_unavailable` | 503 | A dependency is temporarily unavailable. |++`POST /api/v1/responses` speaks OpenResponses, so its HTTP errors keep the protocol's body β `{ "error": { "type", "message", "code", "param" }, "requestId" }` β with `code` taken from the same catalogue. The heterogeneous-agent relays (`/anthropic`, `/openai`) keep their vendors' error bodies; they still carry `X-Request-Id`.++## Pagination++List endpoints take `limit` (1β100, default 20) and an opaque `cursor`, and answer:++```json+{ "data": { "items": [], "total": 42, "hasMore": true, "nextCursor": "bzoyMA" }, "success": true }+```++Pass `nextCursor` back as `cursor` for the next page; it is `null` on the last page. New endpoints name the array `items` and accept only `cursor` + `limit`; existing endpoints keep their own key (`agents`, `topics`, β¦) and still accept the deprecated `page`/`pageSize` and `offset`.++Build new lists with `src/helpers/pagination.ts`:++- `CursorPaginationQuerySchema` β the `cursor` + `limit` query.+- `paginatedListSchema(itemSchema, { key?, total? })` β the response payload schema.+- `resolvePagination(query)` β `{ limit, offset }`, accepting every supported style.+- `BaseController.list(c, key, payload)` β answers with `hasMore`/`nextCursor` added.++`GET /agent-groups`, `/api-keys` and `/mcp-servers` used to answer a bare array. They now answer `{ items, total, hasMore, nextCursor }`; pass the deprecated `format=array` to get the old bare array (all items, unpaginated) while migrating.++## Rate limits++Requests authenticated with an API key are counted per key in Redis (`redisService.openapi`), 600 per minute by default (`OPENAPI_RATE_LIMIT_PER_MINUTE`). Responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (Unix seconds); a refused request answers 429 `rate_limited` with `Retry-After` in seconds. OIDC sessions and operation tokens are not limited. Without Redis the limit fails open.++## Idempotency++Any authenticated `POST` accepts an `Idempotency-Key` header (1β255 chars). The first request with a key runs; a repeat with the same key and the same request (method, path, body) within 24 hours gets the stored response back with `Idempotent-Replayed: true`. Keys are scoped to the user, the credential (API key) and the resolved workspace, so a replay never crosses keys or workspaces β the middleware runs before route guards, and another key must pass its own. A repeat while the first is still running answers 409, and reuse with a different request answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored, so those can be retried with the same key. A request still running after 5 minutes gives up its in-flight claim; a retry after that runs again, and the first request's late result is not stored over it.diff --git a/packages/openapi/openapi.yml b/packages/openapi/openapi.ymlindex eb37590dbc9..cf9d5e4a6d0 100644--- a/packages/openapi/openapi.yml+++ b/packages/openapi/openapi.yml@@ -1,10 +1,82 @@openapi: 3.1.0components:+ headers:+ IdempotentReplayed:+ description: "`true` when this response was replayed from the first request sent+ with the same `Idempotency-Key`."+ schema:+ enum:+ - "true"+ type: string+ RateLimitLimit:+ description: Requests this API key may send per window.+ schema:+ type: integer+ RateLimitRemaining:+ description: Requests left in the current window.+ schema:+ type: integer+ RateLimitReset:+ description: Unix time (seconds) the current window resets.+ schema:+ type: integer+ RequestId:+ description: Unique id of this request, also returned as `requestId` in error+ bodies. A client-supplied `X-Request-Id` (β€128 chars of+ `[A-Za-z0-9_.:-]`) is echoed back.+ schema:+ type: string+ RetryAfter:+ description: Seconds to wait before retrying.+ schema:+ type: integer+ parameters:+ IdempotencyKey:+ description: "Makes the request safe to retry: the first request with a key+ runs, and repeats with the same key and the same request within 24 hours+ get its stored response back (with `Idempotent-Replayed: true`). A+ repeat while the first is still running answers 409, and reusing a key+ for a different request (method, path or body) answers 422 (both+ `idempotency_conflict`). Server errors, 429s and streamed responses are+ not stored. Keys are scoped to the authenticated user, the credential+ (API key) and the resolved workspace. A request still running after 5+ minutes releases its in-flight claim, after which a retry with the same+ key runs again."+ in: header+ name: Idempotency-Key+ required: false+ schema:+ maxLength: 255+ minLength: 1+ type: stringschemas:ApiError:type: objectproperties:+ code:+ $ref: "#/components/schemas/ApiErrorCode"+ details:+ type: array+ items:+ type: object+ properties:+ message:+ type: string+ path:+ type: string+ required:+ - message+ - path+ additionalProperties: falseerror:+ description: Deprecated alias of `message`, kept for clients written before+ `code`.+ type: string+ message:+ type: string+ requestId:+ description: Same value as the `X-Request-Id` response header; quote it when+ reporting an issue.type: stringsuccess:type: boolean@@ -13,10 +85,84 @@ components:type: stringformat: date-timerequired:+ - code- error+ - message+ - requestId- success- timestampadditionalProperties: false+ ApiErrorCode:+ type: string+ enum:+ - bad_request+ - conflict+ - forbidden+ - idempotency_conflict+ - insufficient_scope+ - internal_error+ - not_found+ - payload_too_large+ - payment_required+ - precondition_failed+ - rate_limited+ - service_unavailable+ - unauthorized+ - unprocessable_entity+ - upstream_error+ - validation_error+ - workspace_mismatch+ description: >-+ Stable machine-readable error code. Codes are only ever added.+++ - `bad_request`: The request was understood but cannot be processed as+ sent.++ - `conflict`: The request conflicts with the current state of the+ resource.++ - `forbidden`: The caller is authenticated but may not perform this+ operation.++ - `idempotency_conflict`: The `Idempotency-Key` is still being+ processed, or was first used with a different request.++ - `insufficient_scope`: The API key lacks a capability scope this+ operation requires.++ - `internal_error`: An unexpected server error. Safe to retry with+ backoff.++ - `not_found`: The resource does not exist or is not visible to the+ caller.++ - `payload_too_large`: The request body exceeds the size this operation+ accepts.++ - `payment_required`: The operation needs credits or a plan the caller+ lacks.++ - `precondition_failed`: A precondition of the operation is not met.++ - `rate_limited`: Too many requests for this API key. Retry after the+ `Retry-After` header (seconds).++ - `service_unavailable`: A dependency is temporarily unavailable.++ - `unauthorized`: Authentication is missing, invalid or expired.++ - `unprocessable_entity`: The request is valid but cannot be applied to+ the resource.++ - `upstream_error`: An upstream provider failed while serving the+ request.++ - `validation_error`: The request failed schema validation; `details`+ lists each failing field.++ - `workspace_mismatch`: The `X-Workspace-Id` header does not match the+ API key, or the caller is not a member of that workspace.AgentGroup:type: objectproperties:@@ -43,6 +189,19 @@ components:- sort- updatedAtadditionalProperties: false+ PageHasMore:+ type: boolean+ description: Whether another page follows this one.+ PageNextCursor:+ description: Pass as `cursor` to fetch the next page; `null` on the last page.+ type:+ - string+ - "null"+ PageTotal:+ type: integer+ minimum: 0+ maximum: 9007199254740991+ description: Number of items across all pages.CreatedAgentGroup:type: objectproperties:@@ -66,15 +225,19 @@ components:AgentList:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"agents:type: arrayitems:$ref: "#/components/schemas/Agent"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- agents- totaladditionalProperties: false@@ -710,15 +873,19 @@ components:ChatGroupList:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"chatGroups:type: arrayitems:$ref: "#/components/schemas/ChatGroup"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- chatGroups- totaladditionalProperties: false@@ -2131,15 +2298,19 @@ components:InstalledPluginList:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"plugins:type: arrayitems:$ref: "#/components/schemas/InstalledPlugin"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- plugins- totaladditionalProperties: false@@ -2168,17 +2339,21 @@ components:FileList:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"files:type: arrayitems:$ref: "#/components/schemas/FileListItem"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"totalSize:type: stringrequired:+ - hasMore+ - nextCursor- files- total- totalSize@@ -2645,15 +2820,19 @@ components:GoalList:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"goals:type: arrayitems:$ref: "#/components/schemas/GoalListItem"total:- type: integer- minimum: -9007199254740991- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- goals- totaladditionalProperties: false@@ -3942,15 +4121,19 @@ components:KnowledgeBaseList:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"knowledgeBases:type: arrayitems:$ref: "#/components/schemas/KnowledgeBaseListItem"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- knowledgeBases- totaladditionalProperties: false@@ -5659,15 +5842,19 @@ components:PermissionList:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"permissions:type: arrayitems:$ref: "#/components/schemas/Permission"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- permissions- totaladditionalProperties: false@@ -6269,15 +6456,19 @@ components:RoleList:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"roles:type: arrayitems:$ref: "#/components/schemas/Role"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- roles- totaladditionalProperties: false@@ -6317,15 +6508,19 @@ components:RolePermissionList:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"permissions:type: arrayitems:$ref: "#/components/schemas/RolePermission"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- permissions- totaladditionalProperties: false@@ -6906,15 +7101,19 @@ components:TaskList:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"tasks:type: arrayitems:$ref: "#/components/schemas/TaskListItem"total:- type: integer- minimum: -9007199254740991- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- tasks- totaladditionalProperties: false@@ -8886,15 +9085,19 @@ components:UserList:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"users:type: arrayitems:$ref: "#/components/schemas/User"required:+ - hasMore+ - nextCursor- total- usersadditionalProperties: false@@ -9039,8 +9242,52 @@ components:type: httpinfo:title: LobeHub API- description: LobeHub platform REST API. Generated from `packages/openapi` routes- β do not edit openapi.yml by hand; run `bun generate:openapi` instead.+ description: >-+ LobeHub platform REST API. Generated from `packages/openapi` routes β do not+ edit openapi.yml by hand; run `bun generate:openapi` instead.+++ ## Errors+++ Every error answers with the `ApiError` body: `{ success: false, code,+ message, details?, requestId, timestamp, error }`. Branch on `code` (see+ `ApiErrorCode`), not on `message`. Validation failures use+ `validation_error` and list each failing field in `details` as `{ path,+ message }`, where `path` is dotted and starts with the request part (`json`,+ `query`, `param`, `header`). `error` is a deprecated alias of `message`. The+ OpenResponses route (`POST /api/v1/responses`) keeps the protocol's `{+ error: { type, message, code, param } }` body, plus `requestId`.+++ Every response carries an `X-Request-Id` header.+++ ## Pagination+++ List endpoints take `limit` (1β100, default 20) and an opaque `cursor`, and+ answer `{ data: { <items>, total?, hasMore, nextCursor } }`: pass+ `nextCursor` as `cursor` to read the next page; it is `null` on the last+ page. New endpoints name the item array `items`; older ones keep their own+ key (e.g. `agents`). The older `page`/`pageSize` and `offset` parameters+ still work but are deprecated.+++ ## Rate limits+++ Requests authenticated with an API key are limited per key (default 600 per+ minute). Responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining` and+ `X-RateLimit-Reset` (Unix seconds); a refused request answers 429+ `rate_limited` with `Retry-After` in seconds.+++ ## Idempotency+++ `POST` operations accept an `Idempotency-Key` header; see the parameter+ description.version: 1.0.0security:- bearerAuth: []@@ -9051,6 +9298,7 @@ paths:/api/v1/health:get:operationId: getApiV1Health+ security: []summary: Health checktags:- health@@ -9075,9 +9323,16 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"/api/v1/agent-groups:get:operationId: getApiV1AgentGroups+ description: Paginated with `limit` + `cursor`; answers `{ items, total,+ hasMore, nextCursor }`. Clients that still expect the former bare array+ can pass the deprecated `format=array`, which returns every item as a+ plain array.summary: List agent groupstags:- agent-groups@@ -9089,9 +9344,24 @@ paths:type: objectproperties:data:- type: array- items:- $ref: "#/components/schemas/AgentGroup"+ type: object+ properties:+ items:+ type: array+ items:+ $ref: "#/components/schemas/AgentGroup"+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"+ total:+ $ref: "#/components/schemas/PageTotal"+ required:+ - items+ - hasMore+ - nextCursor+ - total+ additionalProperties: falsemessage:type: stringsuccess:@@ -9106,24 +9376,119 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "400":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.+ - in: query+ name: format+ schema:+ deprecated: true+ type: string+ enum:+ - array+ description: "Deprecated: `array` returns the pre-pagination bare array of every+ item instead of the paginated object. Migrate to `items` ++ `nextCursor`."+ deprecated: truepost:operationId: postApiV1AgentGroupssummary: Create an agent group@@ -9152,30 +9517,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -9192,6 +9621,8 @@ paths:- "null"required:- name+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/agent-groups/{id}:get:operationId: getApiV1AgentGroupsById@@ -9221,36 +9652,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -9286,30 +9788,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -9361,30 +9925,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -9421,31 +10047,108 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -9453,11 +10156,21 @@ paths:- in: queryname: pageschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true- in: queryname: personalschema:@@ -9493,30 +10206,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -9791,6 +10568,8 @@ paths:minLength: 1required:- title+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/agents/{id}:get:operationId: getApiV1AgentsById@@ -9820,36 +10599,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -9885,30 +10735,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -10216,30 +11128,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -10276,36 +11250,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -10313,6 +11360,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -10354,36 +11402,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -10432,42 +11551,124 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -10475,6 +11676,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -10561,36 +11763,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: accountId@@ -10632,42 +11905,122 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: accountId@@ -10741,36 +12094,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: accountId@@ -10829,36 +12253,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: accountId@@ -10899,6 +12394,10 @@ paths:/api/v1/api-keys:get:operationId: getApiV1ApiKeys+ description: Paginated with `limit` + `cursor`; answers `{ items, total,+ hasMore, nextCursor }`. Clients that still expect the former bare array+ can pass the deprecated `format=array`, which returns every item as a+ plain array.summary: List API keystags:- api-keys@@ -10910,9 +12409,24 @@ paths:type: objectproperties:data:- type: array- items:- $ref: "#/components/schemas/ApiKey"+ type: object+ properties:+ items:+ type: array+ items:+ $ref: "#/components/schemas/ApiKey"+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"+ total:+ $ref: "#/components/schemas/PageTotal"+ required:+ - items+ - hasMore+ - nextCursor+ - total+ additionalProperties: falsemessage:type: stringsuccess:@@ -10927,24 +12441,119 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "400":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.+ - in: query+ name: format+ schema:+ deprecated: true+ type: string+ enum:+ - array+ description: "Deprecated: `array` returns the pre-pagination bare array of every+ item instead of the paginated object. Migrate to `items` ++ `nextCursor`."+ deprecated: truepost:operationId: postApiV1ApiKeysdescription: The plaintext key is returned only in this response.@@ -10974,30 +12583,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -11048,6 +12721,8 @@ paths:required:- nameadditionalProperties: false+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/api-keys/{id}:get:operationId: getApiV1ApiKeysById@@ -11077,37 +12752,108 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found- "500":+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":content:application/json:schema:$ref: "#/components/schemas/ApiError"- description: Internal server error- parameters:+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter"+ "500":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ parameters:- in: pathname: idschema:@@ -11143,36 +12889,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -11229,36 +13046,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -11294,6 +13182,17 @@ paths:format: binarytype: stringdescription: Synthesized audio+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:@@ -11321,12 +13220,30 @@ paths:- errortype: objectdescription: Invalid request, unsupported format or invalid params+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""402":content:application/json:@@ -11354,12 +13271,30 @@ paths:- errortype: objectdescription: Insufficient balance+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""429":content:application/json:@@ -11387,6 +13322,17 @@ paths:- errortype: objectdescription: Upstream provider rate limit+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:@@ -11414,6 +13360,15 @@ paths:- errortype: objectdescription: Text-to-speech failed+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""502":content:application/json:@@ -11441,9 +13396,20 @@ paths:- errortype: objectdescription: Upstream provider error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"summary: Create speechtags:- audio+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/chat:post:operationId: postApiV1Chat@@ -11473,30 +13439,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -11566,6 +13596,8 @@ paths:maximum: 1required:- messages+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/chat/translate:post:operationId: postApiV1ChatTranslate@@ -11595,30 +13627,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -11653,6 +13749,8 @@ paths:required:- text- to+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/chat/generate-reply:post:operationId: postApiV1ChatGenerateReply@@ -11682,30 +13780,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -11843,6 +14005,8 @@ paths:- conversationHistory- sessionId- userMessage+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/chat-groups:get:operationId: getApiV1ChatGroups@@ -11872,39 +14036,126 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: query- name: page+ name: cursorschema:type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.+ - in: query+ name: page+ schema:+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true- in: queryname: personalschema:@@ -11940,42 +14191,124 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -12019,6 +14352,8 @@ paths:required:- members- title+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/chat-groups/{id}:get:operationId: getApiV1ChatGroupsById@@ -12048,36 +14383,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -12113,42 +14519,122 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -12210,36 +14696,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -12276,36 +14833,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -12313,6 +14943,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -12358,42 +14989,122 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -12448,42 +15159,124 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -12568,6 +15361,8 @@ paths:- datasetId- targetAgentIdadditionalProperties: false+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"get:operationId: getApiV1EvalRunssummary: List eval runs@@ -12583,15 +15378,19 @@ paths:data:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"runs:type: arrayitems:$ref: "#/components/schemas/EvalRun"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- runs- totaladditionalProperties: false@@ -12609,55 +15408,135 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.- in: queryname: limitschema:type: integerminimum: 1maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: offsetschema:+ deprecated: truetype: integerminimum: 0- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageschema:+ deprecated: truetype: integerminimum: 1- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:+ deprecated: truetype: integerminimum: 1maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true- in: queryname: experimentIdschema:@@ -12698,6 +15577,10 @@ paths:data:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"runId:type: stringtopics:@@ -12705,10 +15588,10 @@ paths:items:$ref: "#/components/schemas/EvalRunTopic"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- runId- topics- total@@ -12727,36 +15610,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -12765,30 +15719,48 @@ paths:minLength: 1maxLength: 128required: true+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.- in: queryname: limitschema:type: integerminimum: 1maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: offsetschema:+ deprecated: truetype: integerminimum: 0- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageschema:+ deprecated: truetype: integerminimum: 1- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:+ deprecated: truetype: integerminimum: 1maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true/api/v1/eval/runs/{id}:get:operationId: getApiV1EvalRunsById@@ -12818,36 +15790,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -12872,6 +15915,10 @@ paths:data:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"results:type: arrayitems:@@ -12879,10 +15926,10 @@ paths:runId:type: stringtotal:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- results- runId- total@@ -12901,36 +15948,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -12939,30 +16057,48 @@ paths:minLength: 1maxLength: 128required: true+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.- in: queryname: limitschema:type: integerminimum: 1maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: offsetschema:+ deprecated: truetype: integerminimum: 0- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageschema:+ deprecated: truetype: integerminimum: 1- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:+ deprecated: truetype: integerminimum: 1maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: truepost:operationId: postApiV1EvalRunsByIdResultsdescription: "Claim: one pending worker succeeds, others receive 409. Reports:@@ -12996,42 +16132,124 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -13040,6 +16258,7 @@ paths:minLength: 1maxLength: 128required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -13115,36 +16334,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -13437,6 +16729,8 @@ paths:- identifier- nameadditionalProperties: false+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"get:operationId: getApiV1EvalBenchmarksdescription: "Creates accept an optional id: an identical replay returns the@@ -13455,15 +16749,19 @@ paths:data:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"benchmarks:type: arrayitems:$ref: "#/components/schemas/EvalBenchmark"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- benchmarks- totaladditionalProperties: false@@ -13481,55 +16779,135 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.- in: queryname: limitschema:type: integerminimum: 1maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: offsetschema:+ deprecated: truetype: integerminimum: 0- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageschema:+ deprecated: truetype: integerminimum: 1- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:+ deprecated: truetype: integerminimum: 1maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true/api/v1/eval/benchmarks/{id}:get:operationId: getApiV1EvalBenchmarksById@@ -13562,36 +16940,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -13631,42 +17080,122 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -13991,36 +17520,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -14061,42 +17661,124 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -14168,6 +17850,8 @@ paths:- identifier- nameadditionalProperties: false+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"get:operationId: getApiV1EvalDatasetsdescription: "Creates accept an optional id: an identical replay returns the@@ -14186,15 +17870,19 @@ paths:data:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"datasets:type: arrayitems:$ref: "#/components/schemas/EvalDataset"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- datasets- totaladditionalProperties: false@@ -14212,55 +17900,135 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.- in: queryname: limitschema:type: integerminimum: 1maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: offsetschema:+ deprecated: truetype: integerminimum: 0- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageschema:+ deprecated: truetype: integerminimum: 1- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:+ deprecated: truetype: integerminimum: 1maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true- in: queryname: benchmarkIdschema:@@ -14299,36 +18067,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -14368,42 +18207,122 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -14507,36 +18426,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found- "500":+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":content:application/json:schema:$ref: "#/components/schemas/ApiError"- description: Internal server error+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter"+ "500":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -14577,42 +18567,124 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: datasetId@@ -14621,6 +18693,7 @@ paths:minLength: 1maxLength: 128required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -14814,15 +18887,19 @@ paths:data:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"testCases:type: arrayitems:$ref: "#/components/schemas/EvalTestCase"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- testCases- totaladditionalProperties: false@@ -14840,36 +18917,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: datasetId@@ -14878,30 +19026,48 @@ paths:minLength: 1maxLength: 128required: true+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.- in: queryname: limitschema:type: integerminimum: 1maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: offsetschema:+ deprecated: truetype: integerminimum: 0- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageschema:+ deprecated: truetype: integerminimum: 1- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:+ deprecated: truetype: integerminimum: 1maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true/api/v1/eval/test-cases/{id}:get:operationId: getApiV1EvalTestCasesById@@ -14934,36 +19100,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -15003,36 +19240,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -15241,36 +19549,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -15313,42 +19692,124 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -15357,6 +19818,7 @@ paths:minLength: 1maxLength: 128required: true+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/eval/runs/{id}/status:patch:operationId: patchApiV1EvalRunsByIdStatus@@ -15391,42 +19853,122 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -15487,42 +20029,124 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -15531,6 +20155,7 @@ paths:minLength: 1maxLength: 128required: true+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/eval/runs/{runId}/topics/{topicId}/result:put:operationId: putApiV1EvalRunsByRunIdTopicsByTopicIdResult@@ -15565,42 +20190,122 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: runId@@ -15673,55 +20378,135 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.- in: queryname: limitschema:type: integerminimum: 1maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: offsetschema:+ deprecated: truetype: integerminimum: 0- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageschema:+ deprecated: truetype: integerminimum: 1- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:+ deprecated: truetype: integerminimum: 1maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true/api/v1/files:get:operationId: getApiV1Files@@ -15751,31 +20536,108 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -15783,11 +20645,21 @@ paths:- in: queryname: pageschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true- in: queryname: fileTypeschema:@@ -15868,30 +20740,96 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/files/{id}:get:operationId: getApiV1FilesById@@ -15923,30 +20861,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -15982,36 +20982,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -16058,30 +21129,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -16118,30 +21251,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -16184,30 +21379,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -16221,6 +21480,7 @@ paths:type:- string- "null"+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/files/{id}/chunks:post:operationId: postApiV1FilesByIdChunks@@ -16250,30 +21510,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -16281,6 +21605,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -16320,30 +21645,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -16406,30 +21793,96 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/files/queries:post:operationId: postApiV1FilesQueries@@ -16459,30 +21912,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -16498,6 +22015,8 @@ paths:minLength: 1required:- fileIds+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/goals:get:operationId: getApiV1Goals@@ -16527,47 +22046,121 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: queryname: agentIdschema:type: string+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.- in: queryname: limitschema:type: integerminimum: 1maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: offsetschema:+ deprecated: truetype: integerminimum: 0maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: projectIdschema:@@ -16609,36 +22202,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -16700,6 +22366,8 @@ paths:minLength: 1required:- title+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/goals/{id}:get:operationId: getApiV1GoalsById@@ -16729,36 +22397,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -16794,36 +22533,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -16913,48 +22723,137 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""412":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Precondition failed+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -16991,36 +22890,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -17057,36 +23027,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -17094,6 +23137,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/goals/{id}/pause:post:operationId: pauseGoal@@ -17123,48 +23167,139 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""412":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Precondition failed+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -17172,6 +23307,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/goals/{id}/resume:post:operationId: resumeGoal@@ -17201,48 +23337,139 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""412":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Precondition failed+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -17250,6 +23477,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/goals/{id}/restart:post:operationId: restartGoal@@ -17279,42 +23507,124 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""412":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Precondition failed+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -17322,6 +23632,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -17361,42 +23672,124 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -17459,6 +23852,8 @@ paths:required:- content- groupId+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/im/topics/{topicId}/sync:get:operationId: syncImTopic@@ -17488,36 +23883,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: topicId@@ -17576,36 +24042,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found- "500":+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter"+ "500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: topicId@@ -17613,6 +24152,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -17654,31 +24194,108 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -17686,11 +24303,21 @@ paths:- in: queryname: pageschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: truepost:operationId: postApiV1KnowledgeBasessummary: Create a knowledge base@@ -17719,30 +24346,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -17762,6 +24453,8 @@ paths:maxLength: 255required:- name+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/knowledge-bases/{id}:get:operationId: getApiV1KnowledgeBasesById@@ -17791,36 +24484,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -17856,36 +24620,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -17939,36 +24774,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -18005,36 +24911,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -18042,6 +25019,21 @@ paths:type: stringminLength: 1required: true+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -18049,11 +25041,21 @@ paths:- in: queryname: pageschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true- in: queryname: fileTypeschema:@@ -18089,36 +25091,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -18126,6 +25201,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -18171,36 +25247,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -18252,36 +25399,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -18289,6 +25509,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -18311,6 +25532,10 @@ paths:/api/v1/mcp-servers:get:operationId: getApiV1McpServers+ description: Paginated with `limit` + `cursor`; answers `{ items, total,+ hasMore, nextCursor }`. Clients that still expect the former bare array+ can pass the deprecated `format=array`, which returns every item as a+ plain array.summary: List remote MCP serverstags:- mcp-servers@@ -18322,9 +25547,24 @@ paths:type: objectproperties:data:- type: array- items:- $ref: "#/components/schemas/McpServer"+ type: object+ properties:+ items:+ type: array+ items:+ $ref: "#/components/schemas/McpServer"+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"+ total:+ $ref: "#/components/schemas/PageTotal"+ required:+ - items+ - hasMore+ - nextCursor+ - total+ additionalProperties: falsemessage:type: stringsuccess:@@ -18339,24 +25579,119 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "400":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.+ - in: query+ name: format+ schema:+ deprecated: true+ type: string+ enum:+ - array+ description: "Deprecated: `array` returns the pre-pagination bare array of every+ item instead of the paginated object. Migrate to `items` ++ `nextCursor`."+ deprecated: truepost:operationId: postApiV1McpServerssummary: Add a remote MCP server@@ -18385,36 +25720,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -18492,6 +25900,8 @@ paths:- name- serverUrladditionalProperties: false+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/mcp-servers/{id}:get:operationId: getApiV1McpServersById@@ -18521,36 +25931,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -18589,36 +26070,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -18726,36 +26278,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -18793,36 +26416,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -18831,6 +26527,7 @@ paths:format: uuidpattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$required: true+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/memories/persona:get:operationId: getMemoryPersona@@ -18863,24 +26560,77 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"/api/v1/memories/persona/versions:get:operationId: listMemoryPersonaVersions@@ -18912,24 +26662,77 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"/api/v1/memories:delete:operationId: deleteAllMemories@@ -18961,24 +26764,77 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"/api/v1/memories/{category}/{id}:delete:operationId: deleteMemoryEntry@@ -19008,36 +26864,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: category@@ -19087,30 +27014,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: category@@ -19152,30 +27141,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: messageId@@ -19183,6 +27236,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -19236,30 +27290,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: messageId@@ -19295,30 +27411,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: messageId@@ -19379,36 +27557,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: messageId@@ -19453,30 +27702,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: queryname: topicId@@ -19516,15 +27827,19 @@ paths:data:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"messages:type: arrayitems:$ref: "#/components/schemas/Message"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- messages- totaladditionalProperties: false@@ -19542,30 +27857,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: queryname: threadId@@ -19595,6 +27972,21 @@ paths:- assistant- tool- type: "null"+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -19602,27 +27994,30 @@ paths:- in: queryname: pageschema:+ deprecated: truetype: integerminimum: 1- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:+ deprecated: truetype: integerminimum: 1maximum: 100- - in: query- name: limit- schema:- type: integer- minimum: 1- maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true- in: queryname: offsetschema:+ deprecated: truetype: integerminimum: 0- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: truepost:operationId: postApiV1Messagessummary: Create a message@@ -19651,30 +28046,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -19762,6 +28221,8 @@ paths:required:- content- role+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"delete:operationId: deleteApiV1Messagesdescription: "Best effort: ids the caller may not delete or that no longer exist@@ -19792,30 +28253,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -19860,36 +28383,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -19925,36 +28519,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -19995,30 +28660,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -20102,6 +28831,8 @@ paths:required:- content- role+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/models:get:operationId: getApiV1Models@@ -20118,15 +28849,19 @@ paths:data:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"models:type: arrayitems:$ref: "#/components/schemas/Model"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- models- totaladditionalProperties: false@@ -20144,31 +28879,108 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -20176,11 +28988,21 @@ paths:- in: queryname: pageschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true- in: queryname: enabledschema:@@ -20240,30 +29062,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -20365,6 +29251,8 @@ paths:- displayName- id- providerId+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/models/{providerId}/{modelId}:get:operationId: getApiV1ModelsByProviderIdByModelId@@ -20394,36 +29282,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: modelId@@ -20467,36 +29426,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: modelId@@ -20634,30 +29664,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: queryname: category@@ -20720,30 +29812,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: queryname: scope@@ -20782,30 +29936,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: queryname: scope@@ -20944,24 +30160,77 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"/api/v1/notifications/counts:get:operationId: getNotificationCounts@@ -20993,24 +30262,77 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"/api/v1/notifications/read:post:operationId: markNotificationsRead@@ -21038,30 +30360,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -21077,6 +30463,8 @@ paths:minLength: 1required:- ids+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/notifications/read-all:post:operationId: markAllNotificationsRead@@ -21104,24 +30492,81 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/notifications/archive-all:post:operationId: archiveAllNotifications@@ -21149,24 +30594,81 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/notifications/{id}/archive:post:operationId: archiveNotification@@ -21194,30 +30696,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -21225,6 +30791,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/permissions:get:operationId: getApiV1Permissions@@ -21254,30 +30821,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: queryname: active@@ -21292,6 +30921,21 @@ paths:- type: stringminLength: 1- type: "null"+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -21299,11 +30943,21 @@ paths:- in: queryname: pageschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: truepost:operationId: postApiV1Permissionssummary: Create a permission@@ -21332,30 +30986,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -21385,6 +31103,8 @@ paths:- category- code- name+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/permissions/{id}:get:operationId: getApiV1PermissionsById@@ -21414,36 +31134,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -21480,36 +31271,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -21571,36 +31433,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -21625,15 +31558,19 @@ paths:data:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"providers:type: arrayitems:$ref: "#/components/schemas/Provider"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- providers- totaladditionalProperties: false@@ -21651,31 +31588,108 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -21683,11 +31697,21 @@ paths:- in: queryname: pageschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true- in: queryname: enabledschema:@@ -21720,30 +31744,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -21806,6 +31894,8 @@ paths:minLength: 1required:- id+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/providers/{id}:get:operationId: getApiV1ProvidersById@@ -21835,36 +31925,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -21901,36 +32062,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -22027,36 +32259,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -22094,30 +32397,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: deviceId@@ -22181,30 +32546,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: deviceId@@ -22240,30 +32667,339 @@ paths:schema:type: stringdescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:- $ref: "#/components/schemas/ApiError"+ type: object+ properties:+ error:+ type: object+ properties:+ code:+ type: string+ enum:+ - bad_request+ - conflict+ - forbidden+ - idempotency_conflict+ - insufficient_scope+ - internal_error+ - not_found+ - payload_too_large+ - payment_required+ - precondition_failed+ - rate_limited+ - service_unavailable+ - unauthorized+ - unprocessable_entity+ - upstream_error+ - validation_error+ - workspace_mismatch+ message:+ type: string+ param:+ type:+ - string+ - "null"+ type:+ type: string+ enum:+ - invalid_request_error+ - not_found+ - rate_limit_error+ - server_error+ required:+ - code+ - message+ - param+ - type+ additionalProperties: false+ requestId:+ type: string+ required:+ - error+ - requestId+ additionalProperties: falsedescription: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:- $ref: "#/components/schemas/ApiError"+ type: object+ properties:+ error:+ type: object+ properties:+ code:+ type: string+ enum:+ - bad_request+ - conflict+ - forbidden+ - idempotency_conflict+ - insufficient_scope+ - internal_error+ - not_found+ - payload_too_large+ - payment_required+ - precondition_failed+ - rate_limited+ - service_unavailable+ - unauthorized+ - unprocessable_entity+ - upstream_error+ - validation_error+ - workspace_mismatch+ message:+ type: string+ param:+ type:+ - string+ - "null"+ type:+ type: string+ enum:+ - invalid_request_error+ - not_found+ - rate_limit_error+ - server_error+ required:+ - code+ - message+ - param+ - type+ additionalProperties: false+ requestId:+ type: string+ required:+ - error+ - requestId+ additionalProperties: falsedescription: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:- $ref: "#/components/schemas/ApiError"+ type: object+ properties:+ error:+ type: object+ properties:+ code:+ type: string+ enum:+ - bad_request+ - conflict+ - forbidden+ - idempotency_conflict+ - insufficient_scope+ - internal_error+ - not_found+ - payload_too_large+ - payment_required+ - precondition_failed+ - rate_limited+ - service_unavailable+ - unauthorized+ - unprocessable_entity+ - upstream_error+ - validation_error+ - workspace_mismatch+ message:+ type: string+ param:+ type:+ - string+ - "null"+ type:+ type: string+ enum:+ - invalid_request_error+ - not_found+ - rate_limit_error+ - server_error+ required:+ - code+ - message+ - param+ - type+ additionalProperties: false+ requestId:+ type: string+ required:+ - error+ - requestId+ additionalProperties: falsedescription: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ type: object+ properties:+ error:+ type: object+ properties:+ code:+ type: string+ enum:+ - bad_request+ - conflict+ - forbidden+ - idempotency_conflict+ - insufficient_scope+ - internal_error+ - not_found+ - payload_too_large+ - payment_required+ - precondition_failed+ - rate_limited+ - service_unavailable+ - unauthorized+ - unprocessable_entity+ - upstream_error+ - validation_error+ - workspace_mismatch+ message:+ type: string+ param:+ type:+ - string+ - "null"+ type:+ type: string+ enum:+ - invalid_request_error+ - not_found+ - rate_limit_error+ - server_error+ required:+ - code+ - message+ - param+ - type+ additionalProperties: false+ requestId:+ type: string+ required:+ - error+ - requestId+ additionalProperties: false+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:- $ref: "#/components/schemas/ApiError"+ type: object+ properties:+ error:+ type: object+ properties:+ code:+ type: string+ enum:+ - bad_request+ - conflict+ - forbidden+ - idempotency_conflict+ - insufficient_scope+ - internal_error+ - not_found+ - payload_too_large+ - payment_required+ - precondition_failed+ - rate_limited+ - service_unavailable+ - unauthorized+ - unprocessable_entity+ - upstream_error+ - validation_error+ - workspace_mismatch+ message:+ type: string+ param:+ type:+ - string+ - "null"+ type:+ type: string+ enum:+ - invalid_request_error+ - not_found+ - rate_limit_error+ - server_error+ required:+ - code+ - message+ - param+ - type+ additionalProperties: false+ requestId:+ type: string+ required:+ - error+ - requestId+ additionalProperties: falsedescription: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -22537,6 +33273,8 @@ paths:- input- modeladditionalProperties: {}+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/roles:get:operationId: getApiV1Roles@@ -22566,30 +33304,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: queryname: active@@ -22603,6 +33403,21 @@ paths:type:- string- "null"+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -22610,11 +33425,21 @@ paths:- in: queryname: pageschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: truepost:operationId: postApiV1Rolessummary: Create a role@@ -22643,30 +33468,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -22697,6 +33586,8 @@ paths:required:- displayName- name+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/roles/{id}:get:operationId: getApiV1RolesById@@ -22726,36 +33617,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -22791,36 +33753,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -22883,36 +33916,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -22949,30 +34053,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"- description: Insufficient permission+ description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -22980,6 +34146,21 @@ paths:type: stringminLength: 1required: true+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -22987,11 +34168,21 @@ paths:- in: queryname: pageschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: truepatch:operationId: patchApiV1RolesByIdPermissionsdescription: Grants and revokes permissions by id; returns how many mappings changed.@@ -23021,36 +34212,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -23108,36 +34370,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -23174,36 +34507,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -23236,6 +34642,8 @@ paths:- payload- sourceId- sourceType+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/signals/trigger:post:operationId: triggerSourceEvent@@ -23265,42 +34673,109 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""429":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -23334,6 +34809,8 @@ paths:type: stringrequired:- sourceType+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/signals/receipts:get:operationId: listSignalReceipts@@ -23363,30 +34840,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: queryname: agentId@@ -23447,47 +34986,121 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: queryname: assigneeAgentIdschema:type: string+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.- in: queryname: limitschema:type: integerminimum: 1maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: offsetschema:+ deprecated: truetype: integerminimum: 0maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: projectIdschema:@@ -23524,42 +35137,124 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""412":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Precondition failed+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -23609,6 +35304,8 @@ paths:- publicrequired:- instruction+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/tasks/{id}:get:operationId: getApiV1TasksById@@ -23638,36 +35335,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -23703,48 +35471,137 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""412":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Precondition failed+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -23840,42 +35697,122 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -23912,42 +35849,122 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -24007,48 +36024,139 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""409":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource conflict+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""412":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Precondition failed+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -24056,6 +36164,7 @@ paths:type: stringminLength: 1required: true+ - $ref: "#/components/parameters/IdempotencyKey"requestBody:required: truecontent:@@ -24097,36 +36206,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -24156,15 +36336,19 @@ paths:data:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"topics:type: arrayitems:$ref: "#/components/schemas/Topic"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- topics- totaladditionalProperties: false@@ -24182,30 +36366,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: queryname: agentId@@ -24235,6 +36481,21 @@ paths:name: isInboxschema:type: string+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -24242,11 +36503,21 @@ paths:- in: queryname: pageschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: truepost:operationId: postApiV1Topicssummary: Create a topic@@ -24275,30 +36546,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -24323,6 +36658,8 @@ paths:minLength: 1required:- title+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/topics/{id}:get:operationId: getApiV1TopicsById@@ -24352,36 +36689,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -24417,36 +36825,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -24507,36 +36986,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -24560,15 +37110,19 @@ paths:data:type: objectproperties:+ hasMore:+ $ref: "#/components/schemas/PageHasMore"+ nextCursor:+ $ref: "#/components/schemas/PageNextCursor"threads:type: arrayitems:$ref: "#/components/schemas/TopicThread"total:- type: integer- minimum: 0- maximum: 9007199254740991+ $ref: "#/components/schemas/PageTotal"required:+ - hasMore+ - nextCursor- threads- totaladditionalProperties: false@@ -24586,36 +37140,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: topicId@@ -24623,30 +37248,48 @@ paths:type: stringminLength: 1required: true+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.- in: queryname: limitschema:type: integerminimum: 1maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: offsetschema:+ deprecated: truetype: integerminimum: 0- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageschema:+ deprecated: truetype: integerminimum: 1- maximum: 1000000+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:+ deprecated: truetype: integerminimum: 1maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: true/api/v1/users/me:get:operationId: getApiV1UsersMe@@ -24681,30 +37324,92 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"/api/v1/users:get:operationId: getApiV1Users@@ -24734,31 +37439,108 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:+ - in: query+ name: cursor+ schema:+ type: string+ minLength: 1+ maxLength: 512+ description: Opaque cursor from the previous page's `nextCursor`. Omit for the+ first page.+ - in: query+ name: limit+ schema:+ type: integer+ minimum: 1+ maximum: 100+ description: Page size, 1β100. Defaults to 20.- in: queryname: keywordschema:@@ -24766,11 +37548,21 @@ paths:- in: queryname: pageschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 9007199254740991+ description: "Deprecated: use `cursor` instead."+ deprecated: true- in: queryname: pageSizeschema:- type: string+ deprecated: true+ type: integer+ minimum: 1+ maximum: 100+ description: "Deprecated: use `limit` instead."+ deprecated: truepost:operationId: postApiV1Userssummary: Create a user@@ -24799,30 +37591,94 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Idempotent-Replayed:+ $ref: "#/components/headers/IdempotentReplayed""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"requestBody:required: truecontent:@@ -24872,6 +37728,8 @@ paths:- type: stringminLength: 1- type: "null"+ parameters:+ - $ref: "#/components/parameters/IdempotencyKey"/api/v1/users/{id}:get:operationId: getApiV1UsersById@@ -24901,36 +37759,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -24966,36 +37895,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -25084,36 +38084,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -25152,36 +38223,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -25220,36 +38362,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -25318,36 +38531,107 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""400":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Invalid request+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""404":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Resource not found+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"parameters:- in: pathname: id@@ -25384,21 +38668,74 @@ paths:- timestampadditionalProperties: falsedescription: Successful response+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""401":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Authentication required+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset""403":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Insufficient permission+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ "429":+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ApiError"+ description: Rate limit exceeded+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"+ Retry-After:+ $ref: "#/components/headers/RetryAfter""500":content:application/json:schema:$ref: "#/components/schemas/ApiError"description: Internal server error+ headers:+ X-Request-Id:+ $ref: "#/components/headers/RequestId"+ X-RateLimit-Limit:+ $ref: "#/components/headers/RateLimitLimit"+ X-RateLimit-Remaining:+ $ref: "#/components/headers/RateLimitRemaining"+ X-RateLimit-Reset:+ $ref: "#/components/headers/RateLimitReset"diff --git a/packages/openapi/src/app.ts b/packages/openapi/src/app.tsindex cf293ea7cef..88708620fc5 100644--- a/packages/openapi/src/app.ts+++ b/packages/openapi/src/app.ts@@ -8,10 +8,15 @@ import { logger } from 'hono/logger';import { prettyJSON } from 'hono/pretty-json';import { z } from 'zod';+import { errorInitFromException, getRequestId, renderApiError } from './common/errors';import { routeDoc } from './common/openapi';import { SCALAR_CUSTOM_CSS } from './docs-theme';// Import user authentication middleware (supports both OIDC and API Key authentication)import { userAuthMiddleware } from './middleware/auth';+import { idempotencyMiddleware, IDEMPOTENT_REPLAYED_HEADER } from './middleware/idempotency';+import { openResponsesErrors } from './middleware/open-responses-errors';+import { RATE_LIMIT_HEADERS, rateLimit } from './middleware/rate-limit';+import { REQUEST_ID_HEADER, requestIdMiddleware } from './middleware/request-id';import { workspaceAuthMiddleware } from './middleware/workspace';// Import routesimport routes from './routes';@@ -22,23 +27,37 @@ import { dateTimeSchema } from './types/common.type';const app = new Hono().basePath('/api/v1');// Global middleware-app.use('*', cors());+app.use('*', requestIdMiddleware);+app.use(+ '*',+ cors({+ exposeHeaders: [+ REQUEST_ID_HEADER,+ IDEMPOTENT_REPLAYED_HEADER,+ ...Object.values(RATE_LIMIT_HEADERS),+ ],+ }),+);app.use('*', logger());app.use('*', prettyJSON());+// OpenResponses routes answer errors in the protocol's own shape.+app.use('/responses', openResponsesErrors);+app.use('/responses/*', openResponsesErrors);app.use('*', userAuthMiddleware); // User authentication middlewareapp.use('*', workspaceAuthMiddleware);+// Per-API-key limit (after auth, which identifies the key), then+// `Idempotency-Key` replay β a replayed response still counts as a request.+app.use('*', rateLimit());+app.use('*', idempotencyMiddleware);// Error handling middlewareapp.onError((error: Error, c) => {- console.error('Hono Error:', error);+ console.error(`Hono Error [${getRequestId(c)}]:`, error);// Middleware-thrown HTTPExceptions (e.g. auth 401) must keep their status- // instead of being flattened to 500, while staying in the same ApiResponse- // envelope that BaseController.handleError produces for controller errors.- const status = error instanceof HTTPException ? error.status : 500;- return c.json(- { error: error.message, success: false, timestamp: new Date().toISOString() },- status,- );+ // and catalogue code instead of being flattened to 500, in the same+ // `ApiError` envelope BaseController.handleError produces.+ if (error instanceof HTTPException) return renderApiError(c, errorInitFromException(error));+ return renderApiError(c, { message: error.message || 'Internal Server Error', status: 500 });});// Health check endpointdiff --git a/packages/openapi/src/common/base.controller.test.ts b/packages/openapi/src/common/base.controller.test.tsindex ed1e990bfc1..b06740bca65 100644--- a/packages/openapi/src/common/base.controller.test.ts+++ b/packages/openapi/src/common/base.controller.test.ts@@ -1,8 +1,10 @@import type { Context } from 'hono';import { Hono } from 'hono';+import { HTTPException } from 'hono/http-exception';import { describe, expect, it, vi } from 'vitest';import { BaseController } from './base.controller';+import { ApiErrorSchema, ApiException } from './errors';vi.mock('@/database/core/db-adaptor', () => ({ getServerDB: vi.fn().mockResolvedValue({}) }));@@ -12,16 +14,18 @@ class TestController extends BaseController {}}-const requestError = async (name: string) => {+const requestThrown = async (error: Error) => {const app = new Hono();- app.get('/', (c) => {- const error = new Error('test error');- error.name = name;- return new TestController().respond(c, error);- });+ app.get('/', (c) => new TestController().respond(c, error));return app.request('/');};+const requestError = async (name: string) => {+ const error = new Error('test error');+ error.name = name;+ return requestThrown(error);+};+describe('BaseController.handleError', () => {it.each([['BusinessError', 400],@@ -35,4 +39,51 @@ describe('BaseController.handleError', () => {expect(response.status).toBe(status);await expect(response.json()).resolves.toMatchObject({ error: 'test error', success: false });});++ it.each([+ ['BusinessError', 'bad_request'],+ ['ValidationError', 'validation_error'],+ ['AuthenticationError', 'unauthorized'],+ ['AuthorizationError', 'forbidden'],+ ['NotFoundError', 'not_found'],+ ['ConflictError', 'conflict'],+ ['Error', 'internal_error'],+ ])('answers %s with the %s catalogue code in the shared ApiError shape', async (name, code) => {+ const body = await (await requestError(name)).json();+ expect(ApiErrorSchema.parse(body)).toMatchObject({+ code,+ error: 'test error',+ message: 'test error',+ });+ });++ it('maps a tRPC refusal to its status and code', async () => {+ const error = Object.assign(new Error('agent missing'), {+ code: 'NOT_FOUND',+ name: 'TRPCError',+ });+ const response = await requestThrown(error);+ expect(response.status).toBe(404);+ await expect(response.json()).resolves.toMatchObject({ code: 'not_found' });+ });++ it('keeps the code and details an ApiException carries', async () => {+ const response = await requestThrown(+ new ApiException(403, 'workspace_mismatch', 'wrong workspace', [+ { message: 'mismatch', path: 'header.X-Workspace-Id' },+ ]),+ );+ expect(response.status).toBe(403);+ await expect(response.json()).resolves.toMatchObject({+ code: 'workspace_mismatch',+ details: [{ path: 'header.X-Workspace-Id' }],+ });+ });++ it('reads an insufficient_scope refusal from its message prefix', async () => {+ const response = await requestThrown(+ new HTTPException(403, { message: "insufficient_scope: missing 'agent:read'" }),+ );+ await expect(response.json()).resolves.toMatchObject({ code: 'insufficient_scope' });+ });});diff --git a/packages/openapi/src/common/base.controller.ts b/packages/openapi/src/common/base.controller.tsindex 1f4f930288b..925c7ec5b4f 100644--- a/packages/openapi/src/common/base.controller.ts+++ b/packages/openapi/src/common/base.controller.ts@@ -7,7 +7,11 @@ import { RbacModel } from '@/database/models/rbac';import type { LobeChatDatabase } from '@/database/type';import { parseFormData } from '../helpers/file';+import type { PaginationRequest } from '../helpers/pagination';+import { buildPageInfo, resolvePagination } from '../helpers/pagination';import type { ApiResponse } from '../types';+import type { ApiErrorCode } from './errors';+import { errorInitFromException, getRequestId, renderApiError } from './errors';/*** tRPC error codes, mapped to their HTTP equivalents.@@ -34,6 +38,16 @@ export const TRPC_CODE_TO_STATUS: Record<string, number> = {UNPROCESSABLE_CONTENT: 422,};+/** Domain error classes the services throw, by `name`, and the status each answers with. */+const ERROR_NAME_TO_STATUS: Record<string, number> = {+ AuthenticationError: 401,+ AuthorizationError: 403,+ BusinessError: 400,+ ConflictError: 409,+ NotFoundError: 404,+ ValidationError: 400,+};+/*** Base Controller Class* Provides unified response formatting, error handling, and common utility methods@@ -70,21 +84,48 @@ export abstract class BaseController {return c.json(response, statusCode as any);}+ /**+ * Success response for one page of an offset-backed list: adds `hasMore`+ * and `nextCursor` (see `helpers/pagination.ts`) to the payload, deriving+ * the page window from the same query the service paginated with.+ * @param key The payload field holding this page's items, e.g. `agents`+ */+ protected list<K extends string, T extends { [P in K]: unknown[] } & { total?: number }>(+ c: Context,+ key: K,+ payload: T,+ {+ defaultLimit,+ message,+ pagination = this.getQuery<PaginationRequest>(c) ?? {},+ }: { defaultLimit?: number; message?: string; pagination?: PaginationRequest } = {},+ ): Response {+ const window = resolvePagination(pagination, defaultLimit);+ return this.success(+ c,+ {+ ...payload,+ ...buildPageInfo({ ...window, returned: payload[key].length, total: payload.total }),+ },+ message,+ );+ }+/*** Error response formatting* @param c Hono Context* @param error Error message* @param statusCode HTTP status code, default 500- * @returns Formatted error response+ * @param code Catalogue code; inferred from the status when omitted+ * @returns The shared `ApiError` body (or the route's protocol error format)*/- protected error(c: Context, error: string, statusCode: number = 500): Response {- const response: ApiResponse = {- error,- success: false,- timestamp: new Date().toISOString(),- };-- return c.json(response, statusCode as any);+ protected error(+ c: Context,+ error: string,+ statusCode: number = 500,+ code?: ApiErrorCode,+ ): Response {+ return renderApiError(c, { code, message: error, status: statusCode });}/**@@ -94,11 +135,12 @@ export abstract class BaseController {* @returns Formatted error response*/protected handleError(c: Context, error: unknown): Response {- console.error('Controller Error:', error);+ // The request id ties this log line to the `requestId` the client received.+ console.error(`Controller Error [${getRequestId(c)}]:`, error);- // Handle HTTPException+ // Handle HTTPException (including `ApiException`, which carries its code)if (error instanceof HTTPException) {- return this.error(c, error.message, error.status);+ return renderApiError(c, errorInitFromException(error));}// Handle other known error types@@ -110,32 +152,14 @@ export abstract class BaseController {return this.error(c, error.message, (code && TRPC_CODE_TO_STATUS[code]) || 500);}- // Handle business logic errors- if (error.name === 'BusinessError') {- return this.error(c, error.message, 400);- }-- // Handle authentication errors- if (error.name === 'AuthenticationError') {- return this.error(c, error.message, 401);- }-- // Handle authorization errors- if (error.name === 'AuthorizationError') {- return this.error(c, error.message, 403);- }-- if (error.name === 'ConflictError') {- return this.error(c, error.message, 409);- }-- // Handle not found errors- if (error.name === 'NotFoundError') {- return this.error(c, error.message, 404);- }-- if (error.name === 'ValidationError') {- return this.error(c, error.message, 400);+ const status = ERROR_NAME_TO_STATUS[error.name];+ if (status) {+ return this.error(+ c,+ error.message,+ status,+ error.name === 'ValidationError' ? 'validation_error' : undefined,+ );}// Other errorsdiff --git a/packages/openapi/src/common/base.service.ts b/packages/openapi/src/common/base.service.tsindex 724084cc9e3..4617b0a7a0f 100644--- a/packages/openapi/src/common/base.service.ts+++ b/packages/openapi/src/common/base.service.ts@@ -1,6 +1,7 @@import { buildWorkspacePayload, buildWorkspaceWhere } from '@lobechat/database';import { and, eq, inArray, type SQL } from 'drizzle-orm';import type { AnyPgColumn } from 'drizzle-orm/pg-core';+import { HTTPException } from 'hono/http-exception';import type { PERMISSION_ACTIONS } from '@/const/rbac';import { ALL_SCOPE } from '@/const/rbac';@@ -134,6 +135,11 @@ export abstract class BaseService implements IBaseService {protected handleServiceError(error: unknown, operation: string): never {this.log('error', `${operation} failed`, { error });+ // An HTTP error already names its status (and `ApiException` its code,+ // e.g. an invalid pagination cursor): wrapping it would turn it into a+ // generic 400 `bad_request`.+ if (error instanceof HTTPException) throw error;+// If it is a known business error, throw it directlyif (error instanceof Error &&diff --git a/packages/openapi/src/common/errors.ts b/packages/openapi/src/common/errors.tsnew file mode 100644index 00000000000..9af1e7d32e9--- /dev/null+++ b/packages/openapi/src/common/errors.ts@@ -0,0 +1,199 @@+import type { Context } from 'hono';+import { HTTPException } from 'hono/http-exception';+import type { ContentfulStatusCode } from 'hono/utils/http-status';+import { z } from 'zod';++// Same as `dateTimeSchema` in `types/common.type`, declared here so the type+// modules can import the pagination helpers (which raise `ApiException`)+// without an import cycle.+const dateTimeSchema = z.string().meta({ format: 'date-time' });++/**+ * The error code catalogue. `code` is the stable, machine-readable half of+ * every error body: clients branch on it, never on the English `message`.+ * Codes are only ever added β renaming or removing one is a breaking change.+ */+export const API_ERROR_CODES = {+ bad_request: { description: 'The request was understood but cannot be processed as sent.' },+ conflict: { description: 'The request conflicts with the current state of the resource.' },+ forbidden: { description: 'The caller is authenticated but may not perform this operation.' },+ idempotency_conflict: {+ description:+ 'The `Idempotency-Key` is still being processed, or was first used with a different request.',+ },+ insufficient_scope: {+ description: 'The API key lacks a capability scope this operation requires.',+ },+ internal_error: { description: 'An unexpected server error. Safe to retry with backoff.' },+ not_found: { description: 'The resource does not exist or is not visible to the caller.' },+ payload_too_large: { description: 'The request body exceeds the size this operation accepts.' },+ payment_required: { description: 'The operation needs credits or a plan the caller lacks.' },+ precondition_failed: { description: 'A precondition of the operation is not met.' },+ rate_limited: {+ description:+ 'Too many requests for this API key. Retry after the `Retry-After` header (seconds).',+ },+ service_unavailable: { description: 'A dependency is temporarily unavailable.' },+ unauthorized: { description: 'Authentication is missing, invalid or expired.' },+ unprocessable_entity: {+ description: 'The request is valid but cannot be applied to the resource.',+ },+ upstream_error: { description: 'An upstream provider failed while serving the request.' },+ validation_error: {+ description: 'The request failed schema validation; `details` lists each failing field.',+ },+ workspace_mismatch: {+ description:+ 'The `X-Workspace-Id` header does not match the API key, or the caller is not a member of that workspace.',+ },+} as const satisfies Record<string, { description: string }>;++export type ApiErrorCode = keyof typeof API_ERROR_CODES;++const ERROR_CODE_VALUES = Object.keys(API_ERROR_CODES) as [ApiErrorCode, ...ApiErrorCode[]];++export const ApiErrorCodeSchema = z.enum(ERROR_CODE_VALUES);++/** The code an error gets when its thrower names none. */+const STATUS_TO_CODE: Record<number, ApiErrorCode> = {+ 400: 'bad_request',+ 401: 'unauthorized',+ 402: 'payment_required',+ 403: 'forbidden',+ 404: 'not_found',+ 409: 'conflict',+ 412: 'precondition_failed',+ 413: 'payload_too_large',+ 422: 'unprocessable_entity',+ 429: 'rate_limited',+ 500: 'internal_error',+ 502: 'upstream_error',+ 503: 'service_unavailable',+};++export const codeForStatus = (status: number): ApiErrorCode =>+ STATUS_TO_CODE[status] ??+ (status >= 500 ? 'internal_error' : status === 429 ? 'rate_limited' : 'bad_request');++export const ApiErrorDetailSchema = z+ .object({+ /** Dotted path of the failing field, e.g. `body.messages.0.role`; empty for the request itself. */+ message: z.string(),+ path: z.string(),+ })+ .strict();++export type ApiErrorDetail = z.infer<typeof ApiErrorDetailSchema>;++/**+ * The error envelope every handler answers with β `BaseController.error`,+ * `app.onError` and the shared validator all produce exactly this shape.+ *+ * `error` keeps the pre-`code` string field so existing clients that print it+ * keep working; it always equals `message`.+ */+export const ApiErrorSchema = z+ .object({+ code: ApiErrorCodeSchema,+ details: z.array(ApiErrorDetailSchema).optional(),+ error: z.string(),+ message: z.string(),+ requestId: z.string(),+ success: z.literal(false),+ timestamp: dateTimeSchema,+ })+ .strict();++export type ApiErrorBody = z.infer<typeof ApiErrorSchema>;++/**+ * An HTTP error that carries its catalogue code (and optional field details)+ * to whichever layer renders it β controller, validator or `app.onError`.+ */+export class ApiException extends HTTPException {+ readonly code: ApiErrorCode;+ readonly details?: ApiErrorDetail[];++ constructor(+ status: ContentfulStatusCode,+ code: ApiErrorCode,+ message: string,+ details?: ApiErrorDetail[],+ ) {+ super(status, { message });+ this.code = code;+ this.details = details;+ }+}++/**+ * Infer a catalogue code for an error thrown without one. Scope refusals are+ * prefixed `insufficient_scope:` by the permission middleware, which keeps+ * their message readable while still mapping to their own code.+ */+const inferCode = (status: number, message: string): ApiErrorCode => {+ if (status === 403 && message.startsWith('insufficient_scope')) return 'insufficient_scope';+ return codeForStatus(status);+};++export const getRequestId = (c: Context): string => c.get('requestId') ?? '';++export interface ApiErrorInit {+ code?: ApiErrorCode;+ details?: ApiErrorDetail[];+ message: string;+ status: number;+}++/**+ * Routes speaking another protocol's wire format (OpenResponses) register a+ * renderer for their error bodies through `c.set('errorRenderer', ...)`.+ */+export type ErrorRenderer = (init: Required<Omit<ApiErrorInit, 'details'>>, c: Context) => unknown;++export const buildApiErrorBody = (c: Context, init: ApiErrorInit): ApiErrorBody => ({+ code: init.code ?? inferCode(init.status, init.message),+ ...(init.details?.length ? { details: init.details } : {}),+ error: init.message,+ message: init.message,+ requestId: getRequestId(c),+ success: false,+ timestamp: new Date().toISOString(),+});++/** Render an error in the route's wire format (the shared `ApiError` unless overridden). */+export const renderApiError = (c: Context, init: ApiErrorInit): Response => {+ const renderer = c.get('errorRenderer') as ErrorRenderer | undefined;+ const code = init.code ?? inferCode(init.status, init.message);+ const body = renderer+ ? renderer({ code, message: init.message, status: init.status }, c)+ : buildApiErrorBody(c, { ...init, code });++ return c.json(body as object, init.status as ContentfulStatusCode);+};++/** Turn an `HTTPException` (or `ApiException`) into the error it should render as. */+export const errorInitFromException = (error: HTTPException): ApiErrorInit => ({+ code: error instanceof ApiException ? error.code : undefined,+ details: error instanceof ApiException ? error.details : undefined,+ message: error.message,+ status: error.status,+});++/** Zod issues β `details`; paths are dotted and prefixed by the request part. */+export const detailsFromZodIssues = (+ target: string,+ issues: ReadonlyArray<{+ message: string;+ path?: ReadonlyArray<PropertyKey | { key: PropertyKey }>;+ }>,+): ApiErrorDetail[] =>+ issues.map((issue) => ({+ message: issue.message,+ path: [+ target,+ ...(issue.path ?? []).map((segment) =>+ typeof segment === 'object' && segment !== null ? String(segment.key) : String(segment),+ ),+ ].join('.'),+ }));diff --git a/packages/openapi/src/common/openapi.ts b/packages/openapi/src/common/openapi.tsindex 774084f66fd..6b8e68784d2 100644--- a/packages/openapi/src/common/openapi.ts+++ b/packages/openapi/src/common/openapi.ts@@ -4,17 +4,7 @@ import { z } from 'zod';import { dateTimeSchema } from '../types/common.type';-/**- * The error envelope every handler answers with β `BaseController.error`,- * `app.onError` and the shared validator all produce exactly this shape.- */-export const ApiErrorSchema = z- .object({- error: z.string(),- success: z.literal(false),- timestamp: dateTimeSchema,- })- .strict();+export { ApiErrorSchema } from './errors';/** Registered as `components/schemas/ApiError` by `buildSpecDocument`. */export const API_ERROR_REF = '#/components/schemas/ApiError';@@ -46,16 +36,23 @@ const ERROR_DESCRIPTIONS: Record<number, string> = {/*** Raised by every authenticated route regardless of its handler: the auth and- * workspace middleware answer 401/403, and `BaseController.handleError` turns- * any unexpected throw into a 500.+ * workspace middleware answer 401/403, the per-API-key rate limit+ * (`middleware/rate-limit.ts`, applied to every authenticated route) answers+ * 429, and `BaseController.handleError` turns any unexpected throw into a 500.*/-const AUTHENTICATED_ERRORS = [401, 403, 500] as const;+const AUTHENTICATED_ERRORS = [401, 403, 429, 500] as const;export const errorResponse = (status: number) => ({content: { 'application/json': { schema: { $ref: API_ERROR_REF } } },description: ERROR_DESCRIPTIONS[status] ?? 'Error',});+/** An error response with a route-specific body instead of the shared `ApiError`. */+const customErrorResponse = (status: number, schema: z.ZodType) => ({+ content: { 'application/json': { schema: resolver(schema) } },+ description: ERROR_DESCRIPTIONS[status] ?? 'Error',+});+/** The success envelope produced by `BaseController.success`. */export const successEnvelope = <T extends z.ZodType>(data: T) =>z@@ -77,6 +74,8 @@ export interface RouteDocOptions extends Omit<DescribeRouteOptions, 'responses'>envelope?: boolean;/** Errors this handler can produce beyond the shared authenticated set. */errors?: RouteErrorStatus[];+ /** Error body schema for routes speaking another protocol; defaults to `ApiError`. */+ errorSchema?: z.ZodType;/** Public routes skip the shared authenticated errors (401/403/500). */public?: boolean;/** The success status the handler answers with. Defaults to 200. */@@ -95,6 +94,7 @@ export interface RouteDocOptions extends Omit<DescribeRouteOptions, 'responses'>export const routeDoc = ({data,envelope = true,+ errorSchema,errors = [],public: isPublic = false,status = 200,@@ -104,6 +104,9 @@ export const routeDoc = ({const errorStatuses = new Set<number>([...(isPublic ? [] : AUTHENTICATED_ERRORS), ...errors]);return describeRoute({+ // Public routes need no credentials, so they also skip the API-key rate+ // limit and Idempotency-Key the spec builder adds to authenticated ones.+ ...(isPublic ? { security: [] } : {}),...rest,responses: {[status]: {@@ -114,7 +117,15 @@ export const routeDoc = ({description: 'Successful response',},...Object.fromEntries(- [...errorStatuses].sort().map((code) => [code, errorResponse(code)] as const),+ [...errorStatuses]+ .sort()+ .map(+ (code) =>+ [+ code,+ errorSchema ? customErrorResponse(code, errorSchema) : errorResponse(code),+ ] as const,+ ),),},});diff --git a/packages/openapi/src/common/validator.test.ts b/packages/openapi/src/common/validator.test.tsindex 630cfbf4756..ccd843ae0a0 100644--- a/packages/openapi/src/common/validator.test.ts+++ b/packages/openapi/src/common/validator.test.ts@@ -2,6 +2,7 @@ import { Hono } from 'hono';import { describe, expect, it } from 'vitest';import { z } from 'zod';+import { ApiErrorSchema } from './errors';import { zValidator } from './validator';describe('zValidator', () => {@@ -15,8 +16,35 @@ describe('zValidator', () => {const body = await response.json();expect(response.status).toBe(400);- expect(body).toMatchObject({ success: false });- expect(body.error).toEqual(expect.any(String));+ expect(ApiErrorSchema.parse(body)).toBeTruthy();+ expect(body).toMatchObject({ code: 'validation_error', success: false });+ expect(body.error).toBe(body.message);expect(new Date(body.timestamp).toISOString()).toBe(body.timestamp);});++ it('lists every failing field as a dotted path instead of a stringified issue dump', async () => {+ const app = new Hono();+ app.post(+ '/',+ zValidator(+ 'json',+ z.object({ items: z.array(z.object({ name: z.string() })), title: z.string() }),+ ),+ (c) => c.json({ success: true }),+ );++ const response = await app.request('/', {+ body: JSON.stringify({ items: [{ name: 1 }] }),+ headers: { 'Content-Type': 'application/json' },+ method: 'POST',+ });+ const body = await response.json();++ expect(body.details.map((d: { path: string }) => d.path).sort()).toEqual([+ 'json.items.0.name',+ 'json.title',+ ]);+ expect(body.error).not.toContain('"code"');+ expect(body.message).toMatch(/^Invalid request: json\./);+ });});diff --git a/packages/openapi/src/common/validator.ts b/packages/openapi/src/common/validator.tsindex 00cc4654b58..3da89bd8930 100644--- a/packages/openapi/src/common/validator.ts+++ b/packages/openapi/src/common/validator.ts@@ -1,24 +1,28 @@import { validator } from 'hono-openapi';+import { detailsFromZodIssues, renderApiError } from './errors';+/*** Drop-in replacement for `@hono/zod-validator`'s `zValidator`, built on* `hono-openapi`'s validator so every request schema is registered into the* generated OpenAPI spec (see `scripts/generate-openapi.ts`).*- * Validation failures use the same public error envelope as controller errors.- * Keeping `error` a string and including `timestamp` makes runtime responses- * conform to the shared `ApiError` schema advertised by the generated spec.+ * Validation failures use the shared `ApiError` envelope with+ * `code: 'validation_error'` and one `details` entry per failing field, so a+ * client can point at the field instead of parsing the message.*/-export const zValidator = ((target: never, schema: never) =>- validator(target, schema, (result, c) => {+export const zValidator = ((target: string, schema: never) =>+ validator(target as never, schema, (result, c) => {if (!result.success) {- return c.json(- {- error: JSON.stringify(result.error, null, 2),- success: false,- timestamp: new Date().toISOString(),- },- 400,- );+ const details = detailsFromZodIssues(target, result.error);+ const [first] = details;+ return renderApiError(c, {+ code: 'validation_error',+ details,+ message: first+ ? `Invalid request: ${first.path} ${first.message}${details.length > 1 ? ` (and ${details.length - 1} more)` : ''}`+ : 'Invalid request',+ status: 400,+ });}})) as typeof validator;diff --git a/packages/openapi/src/controllers/agent-group.controller.ts b/packages/openapi/src/controllers/agent-group.controller.tsindex cde1724a2d4..0ca4ce56a74 100644--- a/packages/openapi/src/controllers/agent-group.controller.ts+++ b/packages/openapi/src/controllers/agent-group.controller.ts@@ -1,6 +1,8 @@import type { Context } from 'hono';import { BaseController } from '../common/base.controller';+import type { LegacyArrayListQuery } from '../helpers/legacy-array-list';+import { pageLoadedList } from '../helpers/legacy-array-list';import { AgentGroupService } from '../services/agent-group.service';import type {CreateAgentGroupRequest,@@ -30,7 +32,11 @@ export class AgentGroupController extends BaseController {);const agentGroups = await agentGroupService.getAgentGroups();- return this.success(c, agentGroups, 'Agent category list retrieved successfully');+ return this.success(+ c,+ pageLoadedList(agentGroups, this.getQuery<LegacyArrayListQuery>(c)),+ 'Agent category list retrieved successfully',+ );} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/agent.controller.ts b/packages/openapi/src/controllers/agent.controller.tsindex 6a7bc82cb4c..7d2460b81ba 100644--- a/packages/openapi/src/controllers/agent.controller.ts+++ b/packages/openapi/src/controllers/agent.controller.ts@@ -44,7 +44,10 @@ export class AgentController extends BaseController {const agentService = new AgentService(db, this.getUserId(c), this.getWorkspaceId(c));const agentsList = await agentService.queryAgents(request);- return this.success(c, agentsList, 'Agent list retrieved successfully');+ return this.list(c, 'agents', agentsList, {+ message: 'Agent list retrieved successfully',+ pagination: request,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/api-key.controller.ts b/packages/openapi/src/controllers/api-key.controller.tsindex c623af70dff..22db33737f0 100644--- a/packages/openapi/src/controllers/api-key.controller.ts+++ b/packages/openapi/src/controllers/api-key.controller.ts@@ -1,6 +1,8 @@import type { Context } from 'hono';import { BaseController } from '../common/base.controller';+import type { LegacyArrayListQuery } from '../helpers/legacy-array-list';+import { pageLoadedList } from '../helpers/legacy-array-list';import { ApiKeyService } from '../services/api-key.service';import type { CreateApiKeyRequest, UpdateApiKeyRequest } from '../types/api-key.type';@@ -23,7 +25,11 @@ export class ApiKeyController extends BaseController {async getApiKeys(c: Context) {try {const service = await this.getService(c);- return this.success(c, await service.getApiKeys(), 'API keys retrieved');+ return this.success(+ c,+ pageLoadedList(await service.getApiKeys(), this.getQuery<LegacyArrayListQuery>(c)),+ 'API keys retrieved',+ );} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/chat-group.controller.ts b/packages/openapi/src/controllers/chat-group.controller.tsindex 7a4669d54a6..b10299d9f4f 100644--- a/packages/openapi/src/controllers/chat-group.controller.ts+++ b/packages/openapi/src/controllers/chat-group.controller.ts@@ -24,7 +24,10 @@ export class ChatGroupController extends BaseController {try {const request = this.getQuery<GetChatGroupsRequest>(c);const service = await this.getService(c);- return this.success(c, await service.listChatGroups(request), 'Chat groups retrieved');+ return this.list(c, 'chatGroups', await service.listChatGroups(request), {+ message: 'Chat groups retrieved',+ pagination: request,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/eval-context.controller.ts b/packages/openapi/src/controllers/eval-context.controller.tsindex c3506d4bdfa..a4121f23c68 100644--- a/packages/openapi/src/controllers/eval-context.controller.ts+++ b/packages/openapi/src/controllers/eval-context.controller.ts@@ -13,7 +13,11 @@ export class EvalContextController extends BaseController {this.getUserId(c)!,this.getWorkspaceId(c),);- return this.success(c, await service.listThreads(topicId, this.getQuery<EvalPagination>(c)));+ return this.list(+ c,+ 'threads',+ await service.listThreads(topicId, this.getQuery<EvalPagination>(c)),+ );} catch (error) {return this.handleError(c, error);}@@ -25,7 +29,7 @@ export class EvalContextController extends BaseController {this.getUserId(c)!,this.getWorkspaceId(c),);- return this.success(c, await service.listPlugins(this.getQuery<EvalPagination>(c)));+ return this.list(c, 'plugins', await service.listPlugins(this.getQuery<EvalPagination>(c)));} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/eval-resource.controller.ts b/packages/openapi/src/controllers/eval-resource.controller.tsindex 56463108c50..cf9044091b0 100644--- a/packages/openapi/src/controllers/eval-resource.controller.ts+++ b/packages/openapi/src/controllers/eval-resource.controller.ts@@ -17,11 +17,11 @@ export class EvalResourceController extends BaseController {this.getUserId(c)!,this.getWorkspaceId(c),);- return this.success(+ return this.list(c,+ 'benchmarks',await service.listBenchmarks(this.getQuery<EvalPagination>(c)),- 'Eval resource retrieved',- 200,+ { message: 'Eval resource retrieved' },);} catch (error) {return this.handleError(c, error);@@ -95,11 +95,11 @@ export class EvalResourceController extends BaseController {this.getUserId(c)!,this.getWorkspaceId(c),);- return this.success(+ return this.list(c,+ 'datasets',await service.listDatasets(this.getQuery<EvalPagination & { benchmarkId?: string }>(c)),- 'Eval resource retrieved',- 200,+ { message: 'Eval resource retrieved' },);} catch (error) {return this.handleError(c, error);@@ -174,11 +174,11 @@ export class EvalResourceController extends BaseController {this.getUserId(c)!,this.getWorkspaceId(c),);- return this.success(+ return this.list(c,+ 'testCases',await service.listTestCases(datasetId, this.getQuery<EvalPagination>(c)),- 'Eval resource retrieved',- 200,+ { message: 'Eval resource retrieved' },);} catch (error) {return this.handleError(c, error);diff --git a/packages/openapi/src/controllers/eval.controller.ts b/packages/openapi/src/controllers/eval.controller.tsindex d583545c132..aeb87bcafc2 100644--- a/packages/openapi/src/controllers/eval.controller.ts+++ b/packages/openapi/src/controllers/eval.controller.ts@@ -33,11 +33,10 @@ export class EvalController extends BaseController {async listRuns(c: Context) {try {const query = this.getQuery<EvalRunListQuery>(c);- return this.success(- c,- await (await this.getService(c)).listRuns(query),- 'Eval runs retrieved',- );+ return this.list(c, 'runs', await (await this.getService(c)).listRuns(query), {+ message: 'Eval runs retrieved',+ pagination: query,+ });} catch (error) {return this.handleError(c, error);}@@ -73,11 +72,10 @@ export class EvalController extends BaseController {try {const { id } = this.getParams<{ id: string }>(c);const query = this.getQuery<EvalRunTopicListQuery>(c);- return this.success(- c,- await (await this.getService(c)).getRunTopics(id, query),- 'Eval run topics retrieved',- );+ return this.list(c, 'topics', await (await this.getService(c)).getRunTopics(id, query), {+ message: 'Eval run topics retrieved',+ pagination: query,+ });} catch (error) {return this.handleError(c, error);}@@ -95,10 +93,11 @@ export class EvalController extends BaseController {async getRunResults(c: Context) {try {const { id } = this.getParams<{ id: string }>(c);- return this.success(+ return this.list(c,+ 'results',await (await this.getService(c)).getRunResults(id, this.getQuery<EvalRunTopicListQuery>(c)),- 'Eval results retrieved',+ { message: 'Eval results retrieved' },);} catch (error) {return this.handleError(c, error);diff --git a/packages/openapi/src/controllers/file.controller.ts b/packages/openapi/src/controllers/file.controller.tsindex e831aa7774f..ecdaca2092c 100644--- a/packages/openapi/src/controllers/file.controller.ts+++ b/packages/openapi/src/controllers/file.controller.ts@@ -129,7 +129,10 @@ export class FileController extends BaseController {const result = await fileService.getFileList(query);- return this.success(c, result, 'Files retrieved successfully');+ return this.list(c, 'files', result, {+ message: 'Files retrieved successfully',+ pagination: query,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/goal.controller.ts b/packages/openapi/src/controllers/goal.controller.tsindex 1c3fefe5b1c..43e575e7eaa 100644--- a/packages/openapi/src/controllers/goal.controller.ts+++ b/packages/openapi/src/controllers/goal.controller.ts@@ -1,7 +1,7 @@import type { Context } from 'hono';import { BaseController } from '../common/base.controller';-import { GoalRestService } from '../services/goal.service';+import { GOAL_LIST_DEFAULT_LIMIT, GoalRestService } from '../services/goal.service';import type {CreateGoalRequest,GoalIdParam,@@ -24,7 +24,11 @@ export class GoalController extends BaseController {try {const query = this.getQuery<GoalListQuery>(c);const service = await this.service(c);- return this.success(c, await service.listGoals(query), 'Goal list retrieved successfully');+ return this.list(c, 'goals', await service.listGoals(query), {+ defaultLimit: GOAL_LIST_DEFAULT_LIMIT,+ message: 'Goal list retrieved successfully',+ pagination: query,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/knowledge-base.controller.ts b/packages/openapi/src/controllers/knowledge-base.controller.tsindex 612af2665b1..658d2a224df 100644--- a/packages/openapi/src/controllers/knowledge-base.controller.ts+++ b/packages/openapi/src/controllers/knowledge-base.controller.ts@@ -31,7 +31,10 @@ export class KnowledgeBaseController extends BaseController {const result = await knowledgeBaseService.getKnowledgeBaseList(query);- return this.success(c, result, 'Knowledge bases retrieved successfully');+ return this.list(c, 'knowledgeBases', result, {+ message: 'Knowledge bases retrieved successfully',+ pagination: query,+ });} catch (error) {return this.handleError(c, error);}@@ -72,7 +75,10 @@ export class KnowledgeBaseController extends BaseController {const result = await fileService.getKnowledgeBaseFileList(id, query);- return this.success(c, result, 'Knowledge base files retrieved successfully');+ return this.list(c, 'files', result, {+ message: 'Knowledge base files retrieved successfully',+ pagination: query,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/mcp-server.controller.ts b/packages/openapi/src/controllers/mcp-server.controller.tsindex d5c2b226ad7..362e53d9057 100644--- a/packages/openapi/src/controllers/mcp-server.controller.ts+++ b/packages/openapi/src/controllers/mcp-server.controller.ts@@ -1,6 +1,8 @@import type { Context } from 'hono';import { BaseController } from '../common/base.controller';+import type { LegacyArrayListQuery } from '../helpers/legacy-array-list';+import { pageLoadedList } from '../helpers/legacy-array-list';import { McpServerService } from '../services/mcp-server.service';import type { CreateMcpServerRequest, UpdateMcpServerRequest } from '../types/mcp-server.type';@@ -14,7 +16,10 @@ export class McpServerController extends BaseController {try {return this.success(c,- await (await this.getService(c)).listServers(),+ pageLoadedList(+ await (await this.getService(c)).listServers(),+ this.getQuery<LegacyArrayListQuery>(c),+ ),'MCP servers retrieved',);} catch (error) {diff --git a/packages/openapi/src/controllers/message.controller.ts b/packages/openapi/src/controllers/message.controller.tsindex 4c3dab765a2..b6c55666f3c 100644--- a/packages/openapi/src/controllers/message.controller.ts+++ b/packages/openapi/src/controllers/message.controller.ts@@ -51,7 +51,10 @@ export class MessageController extends BaseController {const messageService = new MessageService(db, userId, this.getWorkspaceId(c));const result = await messageService.getMessages(request);- return this.success(c, result, 'Message list retrieved successfully');+ return this.list(c, 'messages', result, {+ message: 'Message list retrieved successfully',+ pagination: request,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/model.controller.ts b/packages/openapi/src/controllers/model.controller.tsindex 67bc6d22db9..a68bdacbd39 100644--- a/packages/openapi/src/controllers/model.controller.ts+++ b/packages/openapi/src/controllers/model.controller.ts@@ -19,7 +19,10 @@ export class ModelController extends BaseController {const result = await modelService.getModels(query);- return this.success(c, result, 'Model list retrieved successfully');+ return this.list(c, 'models', result, {+ message: 'Model list retrieved successfully',+ pagination: query,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/permission.controller.ts b/packages/openapi/src/controllers/permission.controller.tsindex 1e523925198..d0e5acbbbce 100644--- a/packages/openapi/src/controllers/permission.controller.ts+++ b/packages/openapi/src/controllers/permission.controller.ts@@ -28,7 +28,10 @@ export class PermissionController extends BaseController {);const permissions = await permissionService.getPermissions(query);- return this.success(c, permissions, 'Get permission list successfully');+ return this.list(c, 'permissions', permissions, {+ message: 'Get permission list successfully',+ pagination: query,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/provider.controller.ts b/packages/openapi/src/controllers/provider.controller.tsindex 089183d0b29..68aa8c03fd2 100644--- a/packages/openapi/src/controllers/provider.controller.ts+++ b/packages/openapi/src/controllers/provider.controller.ts@@ -43,7 +43,10 @@ export class ProviderController extends BaseController {}));}- return this.success(c, result, 'Provider list retrieved successfully');+ return this.list(c, 'providers', result, {+ message: 'Provider list retrieved successfully',+ pagination: query,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/role.controller.ts b/packages/openapi/src/controllers/role.controller.tsindex 6f0e0974831..a5c99507f13 100644--- a/packages/openapi/src/controllers/role.controller.ts+++ b/packages/openapi/src/controllers/role.controller.ts@@ -29,7 +29,10 @@ export class RoleController extends BaseController {const roleService = new RoleService(db, this.getUserId(c), this.getWorkspaceId(c));const roles = await roleService.getRoles(request);- return this.success(c, roles, 'Get roles list successfully');+ return this.list(c, 'roles', roles, {+ message: 'Get roles list successfully',+ pagination: request,+ });} catch (error) {return this.handleError(c, error);}@@ -94,7 +97,10 @@ export class RoleController extends BaseController {const permissions = await roleService.getRolePermissions({ roleId: id, ...request });- return this.success(c, permissions, 'Get role permissions successfully');+ return this.list(c, 'permissions', permissions, {+ message: 'Get role permissions successfully',+ pagination: request,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/task.controller.ts b/packages/openapi/src/controllers/task.controller.tsindex 9ae9959aeca..d6d97edf566 100644--- a/packages/openapi/src/controllers/task.controller.ts+++ b/packages/openapi/src/controllers/task.controller.ts@@ -1,7 +1,7 @@import type { Context } from 'hono';import { BaseController } from '../common/base.controller';-import { TaskRestService } from '../services/task.service';+import { TASK_LIST_DEFAULT_LIMIT, TaskRestService } from '../services/task.service';import type {CreateTaskRequest,RunTaskRequest,@@ -23,7 +23,11 @@ export class TaskController extends BaseController {try {const query = this.getQuery<TaskListQuery>(c);const service = await this.service(c);- return this.success(c, await service.listTasks(query), 'Task list retrieved successfully');+ return this.list(c, 'tasks', await service.listTasks(query), {+ defaultLimit: TASK_LIST_DEFAULT_LIMIT,+ message: 'Task list retrieved successfully',+ pagination: query,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/topic.controller.ts b/packages/openapi/src/controllers/topic.controller.tsindex d429bf2799d..0d3f4a22e1f 100644--- a/packages/openapi/src/controllers/topic.controller.ts+++ b/packages/openapi/src/controllers/topic.controller.ts@@ -21,7 +21,10 @@ export class TopicController extends BaseController {const topics = await topicService.getTopics(request);- return this.success(c, topics, 'Topic list retrieved successfully');+ return this.list(c, 'topics', topics, {+ message: 'Topic list retrieved successfully',+ pagination: request,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/controllers/user.controller.ts b/packages/openapi/src/controllers/user.controller.tsindex 286a510208b..b7738963420 100644--- a/packages/openapi/src/controllers/user.controller.ts+++ b/packages/openapi/src/controllers/user.controller.ts@@ -78,7 +78,10 @@ export class UserController extends BaseController {const userList = await userService.queryUsers(request);- return this.success(c, userList, 'User list retrieved successfully');+ return this.list(c, 'users', userList, {+ message: 'User list retrieved successfully',+ pagination: request,+ });} catch (error) {return this.handleError(c, error);}diff --git a/packages/openapi/src/helpers/fail-open-log.ts b/packages/openapi/src/helpers/fail-open-log.tsnew file mode 100644index 00000000000..9344134a851--- /dev/null+++ b/packages/openapi/src/helpers/fail-open-log.ts@@ -0,0 +1,23 @@+const WINDOW_MS = 60_000;++const lastLogged = new Map<string, { at: number; suppressed: number }>();++/**+ * Report a Redis-backed guard (rate limit, idempotency) that let a request+ * through because Redis failed. During an outage every API-key request takes+ * this path, so each guard logs at most once a minute and counts the requests+ * it admitted unguarded in between.+ */+export const logFailOpen = (guard: string, error: unknown) => {+ const now = Date.now();+ const entry = lastLogged.get(guard);+ if (entry && now - entry.at < WINDOW_MS) {+ entry.suppressed += 1;+ return;+ }+ console.error(+ `[openapi] ${guard} unavailable, admitting requests unguarded (${entry?.suppressed ?? 0} more in the last minute):`,+ error,+ );+ lastLogged.set(guard, { at: now, suppressed: 0 });+};diff --git a/packages/openapi/src/helpers/legacy-array-list.ts b/packages/openapi/src/helpers/legacy-array-list.tsnew file mode 100644index 00000000000..84f1cc0f3f8--- /dev/null+++ b/packages/openapi/src/helpers/legacy-array-list.ts@@ -0,0 +1,39 @@+import { z } from 'zod';++import { buildPageInfo, CursorPaginationQuerySchema, resolvePagination } from './pagination';++/**+ * Query of a list that used to answer a bare array (agent groups, API keys,+ * MCP servers). It now answers the paginated `{ items, total, hasMore,+ * nextCursor }` object; `format=array` restores the old bare array of every+ * item for clients written before the change.+ */+export const LegacyArrayListQuerySchema = CursorPaginationQuerySchema.extend({+ format: z.enum(['array']).optional().meta({+ deprecated: true,+ description:+ 'Deprecated: `array` returns the pre-pagination bare array of every item instead of the paginated object. Migrate to `items` + `nextCursor`.',+ }),+});++export type LegacyArrayListQuery = z.infer<typeof LegacyArrayListQuerySchema>;++/** Route description shared by the three former bare-array lists. */+export const LEGACY_ARRAY_LIST_DESCRIPTION =+ 'Paginated with `limit` + `cursor`; answers `{ items, total, hasMore, nextCursor }`. Clients that still expect the former bare array can pass the deprecated `format=array`, which returns every item as a plain array.';++/**+ * Page an already-loaded list in memory, or hand back the whole array for+ * `format=array`.+ */+export const pageLoadedList = <T>(all: T[], query: LegacyArrayListQuery = {}) => {+ if (query.format === 'array') return all;++ const window = resolvePagination(query);+ const items = all.slice(window.offset, window.offset + window.limit);+ return {+ items,+ total: all.length,+ ...buildPageInfo({ ...window, returned: items.length, total: all.length }),+ };+};diff --git a/packages/openapi/src/helpers/pagination.test.ts b/packages/openapi/src/helpers/pagination.test.tsindex 92742eace0b..38b9e2a573a 100644--- a/packages/openapi/src/helpers/pagination.test.ts+++ b/packages/openapi/src/helpers/pagination.test.ts@@ -1,6 +1,14 @@import { describe, expect, it } from 'vitest';+import { z } from 'zod';-import { processPaginationConditions } from './pagination';+import {+ buildPageInfo,+ decodeOffsetCursor,+ encodeOffsetCursor,+ paginatedListSchema,+ processPaginationConditions,+ resolvePagination,+} from './pagination';describe('processPaginationConditions', () => {it('bounds an omitted pagination request to the first 20 rows', () => {@@ -22,3 +30,62 @@ describe('processPaginationConditions', () => {});});});++describe('resolvePagination', () => {+ it('prefers the cursor over the deprecated offset and page', () => {+ expect(+ resolvePagination({ cursor: encodeOffsetCursor(40), limit: 10, offset: 5, page: 9 }),+ ).toEqual({ limit: 10, offset: 40 });+ });++ it('falls back to offset, then page, sizing pages by limit or pageSize', () => {+ expect(resolvePagination({ limit: 10, offset: 5, page: 3 })).toEqual({ limit: 10, offset: 5 });+ expect(resolvePagination({ page: 3, pageSize: 10 })).toEqual({ limit: 10, offset: 20 });+ });++ it('uses the endpoint default limit when none is sent', () => {+ expect(resolvePagination({}, 50)).toEqual({ limit: 50, offset: 0 });+ });++ it('rejects a cursor it did not issue as a validation error', () => {+ expect(() => decodeOffsetCursor('garbage')).toThrow(+ expect.objectContaining({ code: 'validation_error', status: 400 }),+ );+ expect(() => decodeOffsetCursor(Buffer.from('o:-1').toString('base64url'))).toThrow();+ });+});++describe('buildPageInfo', () => {+ it('points nextCursor at the row after this page while more remain', () => {+ const info = buildPageInfo({ limit: 2, offset: 0, returned: 2, total: 5 });+ expect(info.hasMore).toBe(true);+ expect(decodeOffsetCursor(info.nextCursor!)).toBe(2);+ });++ it('ends with a null cursor on the last page', () => {+ expect(buildPageInfo({ limit: 2, offset: 4, returned: 1, total: 5 })).toEqual({+ hasMore: false,+ nextCursor: null,+ });+ });++ it('assumes a full page has a successor when the total is unknown', () => {+ expect(buildPageInfo({ limit: 2, offset: 0, returned: 2 }).hasMore).toBe(true);+ expect(buildPageInfo({ limit: 2, offset: 0, returned: 1 }).hasMore).toBe(false);+ });+});++describe('paginatedListSchema', () => {+ it('builds the `items` list contract with an optional total', () => {+ const schema = paginatedListSchema(z.object({ id: z.string() }), { total: true });+ expect(+ schema.parse({ hasMore: false, items: [{ id: 'a' }], nextCursor: null, total: 1 }),+ ).toBeTruthy();+ expect(() => schema.parse({ items: [] })).toThrow();+ });++ it('keeps an existing endpoint key', () => {+ const schema = paginatedListSchema(z.string(), { key: 'agents' });+ expect(schema.parse({ agents: ['x'], hasMore: false, nextCursor: null })).toBeTruthy();+ });+});diff --git a/packages/openapi/src/helpers/pagination.ts b/packages/openapi/src/helpers/pagination.tsindex 03e780d96fd..d679bd3211a 100644--- a/packages/openapi/src/helpers/pagination.ts+++ b/packages/openapi/src/helpers/pagination.ts@@ -1,22 +1,173 @@+import { z } from 'zod';++import { ApiException } from '../common/errors';import type { IPaginationQuery } from '../types';-const DEFAULT_PAGE_SIZE = 20;-const MAX_PAGE_SIZE = 100;+/**+ * The list contract every collection endpoint follows:+ *+ * - request: `limit` (1β100, default 20) and an opaque `cursor` taken from the+ * previous page's `nextCursor`. New endpoints accept only these two.+ * - response: `{ <items>, total?, hasMore, nextCursor }` inside `data`, where+ * `<items>` is `items` for new endpoints (existing ones keep their key, e.g.+ * `agents`) and `nextCursor` is `null` on the last page.+ *+ * Endpoints that predate the contract still accept `page`/`pageSize` and+ * `offset`; the spec marks those parameters deprecated.+ */++export const DEFAULT_PAGE_LIMIT = 20;+export const MAX_PAGE_LIMIT = 100;++const OFFSET_CURSOR_PREFIX = 'o:';++/** Opaque cursor for an offset-backed list. Clients must not build or parse it. */+export const encodeOffsetCursor = (offset: number): string =>+ Buffer.from(`${OFFSET_CURSOR_PREFIX}${offset}`).toString('base64url');++/** The offset a cursor from {@link encodeOffsetCursor} stands for; rejects anything else. */+export const decodeOffsetCursor = (cursor: string): number => {+ const decoded = Buffer.from(cursor, 'base64url').toString();+ const offset = decoded.startsWith(OFFSET_CURSOR_PREFIX)+ ? Number(decoded.slice(OFFSET_CURSOR_PREFIX.length))+ : Number.NaN;++ if (!Number.isSafeInteger(offset) || offset < 0) {+ throw new ApiException(400, 'validation_error', 'Invalid request: query.cursor is not valid', [+ { message: 'Not a cursor returned by this endpoint', path: 'query.cursor' },+ ]);+ }+ return offset;+};++const coercedInt = (min: number, max?: number) => {+ const int = z.coerce.number().int().min(min);+ return max === undefined ? int : int.max(max);+};++/** `cursor` + `limit`: the pagination query of every new list endpoint. */+export const CursorPaginationQuerySchema = z.object({+ cursor: z+ .string()+ .min(1)+ .max(512)+ .optional()+ .describe("Opaque cursor from the previous page's `nextCursor`. Omit for the first page."),+ limit: coercedInt(1, MAX_PAGE_LIMIT)+ .optional()+ .describe(`Page size, 1β${MAX_PAGE_LIMIT}. Defaults to ${DEFAULT_PAGE_LIMIT}.`),+});++const deprecated = <T extends z.ZodType>(schema: T, replacement: string) =>+ schema.meta({ deprecated: true, description: `Deprecated: use ${replacement} instead.` });++/** Legacy `page`/`pageSize` parameters, kept for existing clients and marked deprecated. */+export const legacyPageQueryShape = {+ page: deprecated(coercedInt(1).optional(), '`cursor`'),+ pageSize: deprecated(coercedInt(1, MAX_PAGE_LIMIT).optional(), '`limit`'),+};++/** Legacy `offset` parameter, kept for existing clients and marked deprecated. */+export const legacyOffsetQueryShape = {+ offset: deprecated(coercedInt(0).optional(), '`cursor`'),+};++/**+ * What every list response carries next to its items. Each field is a shared+ * spec component (`PageHasMore`, `PageNextCursor`, `PageTotal`), so every list+ * payload references the same definitions while staying a closed object.+ */+export const pageInfoShape = {+ hasMore: z.boolean().meta({+ description: 'Whether another page follows this one.',+ id: 'PageHasMore',+ }),+ nextCursor: z.string().nullable().meta({+ description: 'Pass as `cursor` to fetch the next page; `null` on the last page.',+ id: 'PageNextCursor',+ }),+};++export const totalShape = {+ total: z.number().int().min(0).meta({+ description: 'Number of items across all pages.',+ id: 'PageTotal',+ }),+};++/**+ * Schema factory for a list payload: `{ [key]: T[], hasMore, nextCursor, total? }`.+ * New endpoints use the default `items` key.+ */+export const paginatedListSchema = <T extends z.ZodType, K extends string = 'items'>(+ item: T,+ { key = 'items' as K, total = false }: { key?: K; total?: boolean } = {},+) =>+ z+ .object({+ [key]: z.array(item),+ ...pageInfoShape,+ ...(total ? totalShape : {}),+ } as { [P in K]: z.ZodArray<T> } & typeof pageInfoShape & Partial<typeof totalShape>)+ .strict();++export interface PaginationRequest {+ cursor?: string;+ limit?: number;+ offset?: number;+ page?: number;+ pageSize?: number;+}++export interface ResolvedPagination {+ limit: number;+ offset: number;+}++const clamp = (value: number, min: number, max: number) => Math.min(max, Math.max(min, value));++/**+ * Resolve any accepted pagination style to a bounded `limit`/`offset`:+ * `cursor` wins, then the deprecated `offset`, then the deprecated `page`.+ */+export const resolvePagination = (+ request: PaginationRequest,+ defaultLimit: number = DEFAULT_PAGE_LIMIT,+): ResolvedPagination => {+ const limit = clamp(request.limit ?? request.pageSize ?? defaultLimit, 1, MAX_PAGE_LIMIT);++ if (request.cursor) return { limit, offset: decodeOffsetCursor(request.cursor) };+ if (request.offset !== undefined) return { limit, offset: Math.max(0, request.offset) };++ return { limit, offset: (Math.max(1, request.page ?? 1) - 1) * limit };+};++export interface PageInfo {+ hasMore: boolean;+ nextCursor: string | null;+}++/**+ * `hasMore`/`nextCursor` for one offset-backed page. With a `total` the answer+ * is exact; without one, a full page is assumed to have a successor.+ */+export const buildPageInfo = ({+ limit,+ offset,+ returned,+ total,+}: ResolvedPagination & { returned: number; total?: number }): PageInfo => {+ const hasMore = total === undefined ? returned >= limit : offset + returned < total;+ return { hasMore, nextCursor: hasMore ? encodeOffsetCursor(offset + returned) : null };+};/*** Process pagination query parameters* @param request Query parameter object* @returns a bounded limit/offset pair; omitted pagination defaults to page 1 / 20 items*/-export function processPaginationConditions(request: Record<string, any> & IPaginationQuery): {- limit?: number;- offset?: number;-} {- const page = Math.max(1, request.page ?? 1);- const pageSize = Math.min(MAX_PAGE_SIZE, Math.max(1, request.pageSize ?? DEFAULT_PAGE_SIZE));-- return {- limit: pageSize,- offset: (page - 1) * pageSize,- };+export function processPaginationConditions(+ request: Record<string, any> & IPaginationQuery & PaginationRequest,+): ResolvedPagination {+ return resolvePagination(request);}diff --git a/packages/openapi/src/middleware/idempotency.test.ts b/packages/openapi/src/middleware/idempotency.test.tsnew file mode 100644index 00000000000..8e1b96fdb17--- /dev/null+++ b/packages/openapi/src/middleware/idempotency.test.ts@@ -0,0 +1,299 @@+import { Hono } from 'hono';+import { streamSSE } from 'hono/streaming';+import { beforeEach, describe, expect, it, vi } from 'vitest';++import { renderApiError } from '../common/errors';+import { idempotencyMiddleware } from './idempotency';++const store = vi.hoisted(() => new Map<string, any>());+const openapi = vi.hoisted(() => ({+ claimIdempotency: vi.fn(+ async (scope: { fingerprint: string; keyHash: string; userId: string }) => {+ const key = `${scope.userId}:${scope.keyHash}`;+ const entry = store.get(key);+ if (!entry) {+ store.set(key, { fingerprint: scope.fingerprint, state: 'pending' });+ return { state: 'claimed', token: `t-${key}` };+ }+ const sameRequest = entry.fingerprint === scope.fingerprint;+ return entry.state === 'completed'+ ? { response: entry.response, sameRequest, state: 'completed' }+ : { sameRequest, state: 'pending' };+ },+ ),+ completeIdempotency: vi.fn(async (scope: any, response: any) => {+ store.set(`${scope.userId}:${scope.keyHash}`, {+ fingerprint: scope.fingerprint,+ response,+ state: 'completed',+ });+ }),+ releaseIdempotency: vi.fn(async (scope: any) => {+ store.delete(`${scope.userId}:${scope.keyHash}`);+ }),+}));+vi.mock('@/server/services/redis', () => ({ redisService: { openapi } }));++let created = 0;++interface Caller {+ apiKeyId?: string;+ scopes?: string[] | null;+ userId?: string | null;+ workspaceId?: string;+ workspaceRole?: string;+}++const createApp = ({+ apiKeyId = 'key-1',+ scopes,+ userId = 'user-1',+ workspaceId,+ workspaceRole,+}: Caller = {}) => {+ const app = new Hono();+ app.use('*', async (c, next) => {+ c.set('userId', userId);+ c.set('authType', 'apikey');+ c.set('authData', { apiKeyId });+ c.set('workspaceId', workspaceId);+ c.set('workspaceRole', workspaceRole);+ c.set('apiKeyScopes', scopes);+ await next();+ });+ // Mirrors `requestIdMiddleware`: every request gets the id it echoes back.+ app.use('*', async (c, next) => {+ c.set('requestId', c.req.header('X-Request-Id') ?? 'req_test');+ await next();+ });+ app.use('*', idempotencyMiddleware);+ app.post('/items', async (c) => {+ created += 1;+ const body = await c.req.json();+ return c.json({ data: { id: `item_${created}`, ...body }, success: true }, 201);+ });+ app.post('/fail', (c) => c.json({ success: false }, 500));+ app.post('/reject', (c) =>+ renderApiError(c, { code: 'conflict', message: 'Already exists', status: 422 }),+ );+ // Synthesized audio is raw bytes: 0x00 and 0xFF sequences are not valid UTF-8.+ app.post('/audio', (c) =>+ c.body(Buffer.from([0x49, 0x44, 0x33, 0x00, 0x80, 0xff, 0xfe]), 200, {+ 'Content-Type': 'audio/mpeg',+ }),+ );+ app.post('/stream', (c) => streamSSE(c, async (stream) => stream.writeSSE({ data: 'x' })));+ app.post('/slow', async (c) => {+ // A concurrent replay arrives while this one is still in flight.+ const replay = await app.request('/slow', post({}, 'k-slow'));+ return c.json({ replayStatus: replay.status, replayBody: await replay.json() });+ });+ return app;+};++const post = (body: unknown, key?: string, headers: Record<string, string> = {}) => ({+ body: JSON.stringify(body),+ headers: {+ 'Content-Type': 'application/json',+ ...(key === undefined ? {} : { 'Idempotency-Key': key }),+ ...headers,+ },+ method: 'POST',+});++describe('idempotencyMiddleware', () => {+ beforeEach(() => {+ store.clear();+ created = 0;+ vi.clearAllMocks();+ });++ it('replays the first response for a retry with the same key and request', async () => {+ const app = createApp();++ const first = await app.request('/items', post({ name: 'a' }, 'k1'));+ const retry = await app.request('/items', post({ name: 'a' }, 'k1'));++ expect(first.status).toBe(201);+ expect(retry.status).toBe(201);+ expect(await retry.json()).toEqual(await first.json());+ expect(retry.headers.get('Idempotent-Replayed')).toBe('true');+ expect(first.headers.get('Idempotent-Replayed')).toBeNull();+ expect(created).toBe(1);+ });++ it('runs every request that carries no key', async () => {+ const app = createApp();+ await app.request('/items', post({ name: 'a' }));+ await app.request('/items', post({ name: 'a' }));+ expect(created).toBe(2);+ expect(openapi.claimIdempotency).not.toHaveBeenCalled();+ });++ it('scopes keys to the user', async () => {+ await createApp({ userId: 'user-1' }).request('/items', post({ name: 'a' }, 'k1'));+ await createApp({ userId: 'user-2' }).request('/items', post({ name: 'a' }, 'k1'));+ expect(created).toBe(2);+ });++ it('never replays across API keys or workspaces of the same user', async () => {+ const first = await createApp().request('/items', post({ name: 'a' }, 'k1'));+ // A second (e.g. scope-restricted) key must go through its own route guards,+ // not receive the first key's stored response.+ const otherKey = await createApp({ apiKeyId: 'key-2' }).request(+ '/items',+ post({ name: 'a' }, 'k1'),+ );+ const otherWorkspace = await createApp({ workspaceId: 'ws-1' }).request(+ '/items',+ post({ name: 'a' }, 'k1'),+ );++ expect(otherKey.headers.get('Idempotent-Replayed')).toBeNull();+ expect(otherWorkspace.headers.get('Idempotent-Replayed')).toBeNull();+ expect(await otherKey.json()).not.toEqual(await first.json());+ expect(created).toBe(3);+ });++ it('replays for the same credential holding the same scopes in any order', async () => {+ await createApp({ scopes: ['api-keys:read', 'messages:write'] }).request(+ '/items',+ post({ name: 'a' }, 'k1'),+ );+ const retry = await createApp({ scopes: ['messages:write', 'api-keys:read'] }).request(+ '/items',+ post({ name: 'a' }, 'k1'),+ );++ expect(retry.headers.get('Idempotent-Replayed')).toBe('true');+ expect(created).toBe(1);+ });++ it('never replays a response cached before the credential was narrowed', async () => {+ // A full-access key caches a privileged answer, then is restricted; the+ // replay must miss the cache and run the route's current guards instead.+ await createApp({ scopes: null }).request('/items', post({ name: 'a' }, 'k1'));+ const narrowed = await createApp({ scopes: ['api-keys:read'] }).request(+ '/items',+ post({ name: 'a' }, 'k1'),+ );++ expect(narrowed.headers.get('Idempotent-Replayed')).toBeNull();+ expect(created).toBe(2);+ });++ it('never replays a response cached while the caller held a higher workspace role', async () => {+ // An administrator caches a privileged answer, then is demoted; the retry+ // must reach the route's current guards instead of the stored answer.+ await createApp({ workspaceId: 'ws-1', workspaceRole: 'admin' }).request(+ '/items',+ post({ name: 'a' }, 'k1'),+ );+ const demoted = await createApp({ workspaceId: 'ws-1', workspaceRole: 'member' }).request(+ '/items',+ post({ name: 'a' }, 'k1'),+ );++ expect(demoted.headers.get('Idempotent-Replayed')).toBeNull();+ expect(created).toBe(2);+ });++ it('replays for the same credential holding the same workspace role', async () => {+ const caller = { workspaceId: 'ws-1', workspaceRole: 'admin' } as const;+ await createApp(caller).request('/items', post({ name: 'a' }, 'k1'));+ const retry = await createApp(caller).request('/items', post({ name: 'a' }, 'k1'));++ expect(retry.headers.get('Idempotent-Replayed')).toBe('true');+ expect(created).toBe(1);+ });++ it('stamps a replayed refusal with the retrying request id', async () => {+ const app = createApp();+ const first = await app.request(+ '/reject',+ post({ name: 'a' }, 'k-reject', { 'X-Request-Id': 'req_first' }),+ );+ const retry = await app.request(+ '/reject',+ post({ name: 'a' }, 'k-reject', { 'X-Request-Id': 'req_second' }),+ );++ expect(retry.status).toBe(422);+ expect(retry.headers.get('Idempotent-Replayed')).toBe('true');+ await expect(first.json()).resolves.toMatchObject({ requestId: 'req_first' });+ // The cached outcome is unchanged, only the correlation id follows the retry.+ await expect(retry.json()).resolves.toMatchObject({+ code: 'conflict',+ requestId: 'req_second',+ });+ });++ it('replays binary responses byte for byte', async () => {+ const first = await createApp().request('/audio', post({}, 'k-audio'));+ const retry = await createApp().request('/audio', post({}, 'k-audio'));++ expect(retry.headers.get('Idempotent-Replayed')).toBe('true');+ expect(retry.headers.get('Content-Type')).toContain('audio/mpeg');+ expect(new Uint8Array(await retry.arrayBuffer())).toEqual(+ new Uint8Array(await first.arrayBuffer()),+ );+ });++ it('answers 422 idempotency_conflict when the key is reused for a different request', async () => {+ const app = createApp();+ await app.request('/items', post({ name: 'a' }, 'k1'));++ for (const [path, init] of [+ ['/items', post({ name: 'b' }, 'k1')],+ ['/items?dryRun=true', post({ name: 'a' }, 'k1')],+ ] as const) {+ const response = await app.request(path, init);+ expect(response.status).toBe(422);+ await expect(response.json()).resolves.toMatchObject({ code: 'idempotency_conflict' });+ }+ expect(created).toBe(1);+ });++ it('answers 409 idempotency_conflict while the first request is still running', async () => {+ const response = await createApp().request('/slow', post({}, 'k-slow'));+ const body = await response.json();+ expect(body.replayStatus).toBe(409);+ expect(body.replayBody).toMatchObject({ code: 'idempotency_conflict', success: false });+ });++ it('frees the key after a server error or a stream so the client can retry', async () => {+ const app = createApp();+ await app.request('/fail', post({}, 'k-fail'));+ await app.request('/stream', post({}, 'k-stream'));++ expect(openapi.completeIdempotency).not.toHaveBeenCalled();+ expect(openapi.releaseIdempotency).toHaveBeenCalledTimes(2);+ expect(openapi.releaseIdempotency).toHaveBeenCalledWith(+ expect.objectContaining({ token: expect.stringMatching(/^t-/) }),+ );+ expect(store.size).toBe(0);+ });++ it('rejects an over-long key with validation_error', async () => {+ const response = await createApp().request('/items', post({}, 'x'.repeat(256)));+ expect(response.status).toBe(400);+ await expect(response.json()).resolves.toMatchObject({+ code: 'validation_error',+ details: [{ path: 'header.Idempotency-Key' }],+ });+ });++ it('runs the request unguarded when Redis is unavailable', async () => {+ openapi.claimIdempotency.mockResolvedValueOnce(undefined as never);+ const response = await createApp().request('/items', post({ name: 'a' }, 'k1'));+ expect(response.status).toBe(201);+ expect(openapi.completeIdempotency).not.toHaveBeenCalled();+ });++ it('keeps the handler answer when storing it fails', async () => {+ openapi.completeIdempotency.mockRejectedValueOnce(new Error('down'));+ const response = await createApp().request('/items', post({ name: 'a' }, 'k1'));+ expect(response.status).toBe(201);+ expect(openapi.releaseIdempotency).toHaveBeenCalled();+ });+});diff --git a/packages/openapi/src/middleware/idempotency.ts b/packages/openapi/src/middleware/idempotency.tsnew file mode 100644index 00000000000..34e95303041--- /dev/null+++ b/packages/openapi/src/middleware/idempotency.ts@@ -0,0 +1,221 @@+import { createHash } from 'node:crypto';++import type { Context, Next } from 'hono';++import { redisService } from '@/server/services/redis';++import { getRequestId, renderApiError } from '../common/errors';+import { logFailOpen } from '../helpers/fail-open-log';++export const IDEMPOTENCY_KEY_HEADER = 'Idempotency-Key';+/** Set on a response replayed from the stored first result of its key. */+export const IDEMPOTENT_REPLAYED_HEADER = 'Idempotent-Replayed';++const MAX_KEY_LENGTH = 255;++type IdempotentResponseRecord = Parameters<typeof redisService.openapi.completeIdempotency>[1];++const sha256 = (value: string | ArrayBuffer) =>+ createHash('sha256')+ .update(typeof value === 'string' ? value : Buffer.from(value))+ .digest('hex');++/**+ * Only answers a client would want replayed are stored: server errors and+ * rate-limit refusals stay retryable, and a stream cannot be replayed.+ */+const isReplayable = (response: Response) => {+ const contentType = response.headers.get('Content-Type') ?? '';+ return (+ response.status < 500 &&+ response.status !== 429 &&+ !contentType.includes('text/event-stream') &&+ response.body !== null+ );+};++/**+ * Responses are stored as base64 so that binary answers (`POST /audio/speech`+ * returns MP3/AAC/Opus bytes) replay byte for byte instead of being decoded and+ * re-encoded as UTF-8 text, which replaces invalid sequences.+ */+const encodeBody = async (response: Response) =>+ Buffer.from(await response.arrayBuffer()).toString('base64');++const decodeBody = (record: IdempotentResponseRecord) => {+ // Records written before responses were stored as base64 stay readable.+ if (record.encoding !== 'base64') return record.body;+ // `Uint8Array.from` copies out of Node's pooled Buffer, so the whole array+ // buffer belongs to this response.+ return Uint8Array.from(Buffer.from(record.body, 'base64')).buffer;+};++/**+ * A stored refusal carries the first request's `requestId`, while+ * `requestIdMiddleware` stamps the retry's own id on `X-Request-Id`. Header and+ * body would then name different requests, so the replayed error takes the+ * current id: the cached outcome (status, code, message) is unchanged, only the+ * correlation id belongs to the caller asking now.+ */+const withCurrentRequestId = (+ c: Context,+ record: IdempotentResponseRecord,+ body: string | ArrayBuffer,+): string | ArrayBuffer => {+ if (record.status < 400) return body;+ if (!(record.contentType ?? '').includes('application/json')) return body;++ try {+ const parsed: unknown = JSON.parse(+ typeof body === 'string' ? body : new TextDecoder().decode(body),+ );+ if (typeof parsed !== 'object' || parsed === null) return body;++ const error = parsed as { requestId?: unknown };+ if (typeof error.requestId !== 'string') return body;++ error.requestId = getRequestId(c);+ return new TextEncoder().encode(JSON.stringify(error)).buffer as ArrayBuffer;+ } catch {+ // A 4xx that is not JSON, or no longer parseable, replays untouched.+ return body;+ }+};++const replay = (c: Context, record: IdempotentResponseRecord) => {+ const headers = new Headers({ [IDEMPOTENT_REPLAYED_HEADER]: 'true' });+ if (record.contentType) headers.set('Content-Type', record.contentType);+ return c.body(+ withCurrentRequestId(c, record, decodeBody(record)) as never,+ record.status as never,+ Object.fromEntries(headers),+ );+};++/**+ * The authorization a request carried. Narrowing a credential's scopes is an+ * authorization change, and this middleware runs before route guards, so the+ * snapshot is part of who a stored response belongs to: a key restricted after+ * its first request must not be answered from that key's earlier, privileged+ * result β it gets its own key space and runs through the guards instead.+ */+const authorizationOf = (c: Context) => {+ const scopes = c.get('apiKeyScopes') as string[] | null | undefined;+ // `undefined` = not API-key auth, where the token's own grants bound it.+ if (scopes === undefined) return 'token';+ // `null` = full-access key, which is not the same key space as any scope set.+ return scopes === null ? 'all' : JSON.stringify([...scopes].sort());+};++/**+ * Who a stored response belongs to, beyond the user: the credential that sent+ * the request, the workspace it resolved to, and the authorization it carried.+ * This middleware runs before route guards, so a replay must never cross any of+ * them β another (possibly scope-restricted) API key of the same user, the same+ * key in another workspace, the same key after its scopes were narrowed, or the+ * same key after the caller's workspace role changed, each gets its own key+ * space instead of the first caller's response.+ */+const principalOf = (c: Context) => {+ const apiKeyId = (c.get('authData') as { apiKeyId?: number | string } | null)?.apiKeyId;+ return [+ c.get('authType') ?? '',+ apiKeyId ?? '',+ c.get('workspaceId') ?? '',+ // The role is authorization too: the route guards that read it run after+ // this middleware, so an administrator demoted to member must not keep+ // replaying the privileged answer cached while they still held the role.+ c.get('workspaceRole') ?? '',+ authorizationOf(c),+ ].join(':');+};++/**+ * `Idempotency-Key` support for POST: the first request with a key runs and+ * its response is stored for 24 hours (in Redis through `redisService.openapi`,+ * scoped to the user, credential and workspace); a retry with the same key and+ * the same request gets that response back with `Idempotent-Replayed: true`+ * instead of running again. A retry while the first is still running answers+ * 409, and reusing a key for a different request (method, path or body)+ * answers 422 β both `idempotency_conflict`. Requests without the header are+ * untouched.+ */+export const idempotencyMiddleware = async (c: Context, next: Next) => {+ const clientKey = c.req.header(IDEMPOTENCY_KEY_HEADER);+ const userId = c.get('userId') as string | null | undefined;+ if (c.req.method !== 'POST' || clientKey === undefined || !userId) return next();++ if (!clientKey.trim() || clientKey.length > MAX_KEY_LENGTH) {+ return renderApiError(c, {+ code: 'validation_error',+ details: [+ {+ message: `Must be 1β${MAX_KEY_LENGTH} characters`,+ path: `header.${IDEMPOTENCY_KEY_HEADER}`,+ },+ ],+ message: `Invalid request: ${IDEMPOTENCY_KEY_HEADER} must be 1β${MAX_KEY_LENGTH} characters`,+ status: 400,+ });+ }++ const url = new URL(c.req.url);+ const body = await c.req.raw.clone().arrayBuffer();+ const scope = {+ fingerprint: sha256([c.req.method, url.pathname + url.search, sha256(body)].join('\n')),+ keyHash: sha256(`${principalOf(c)}\n${clientKey}`),+ userId,+ };++ const claim = await redisService.openapi.claimIdempotency(scope).catch((error) => {+ logFailOpen('idempotency', error);+ return undefined;+ });+ if (!claim) return next();++ if (claim.state !== 'claimed') {+ if (!claim.sameRequest) {+ return renderApiError(c, {+ code: 'idempotency_conflict',+ message: `This ${IDEMPOTENCY_KEY_HEADER} was already used for a different request`,+ status: 422,+ });+ }+ if (claim.state === 'pending') {+ return renderApiError(c, {+ code: 'idempotency_conflict',+ message: `A request with this ${IDEMPOTENCY_KEY_HEADER} is still in progress; retry later`,+ status: 409,+ });+ }+ return replay(c, claim.response);+ }++ const owned = { ...scope, token: claim.token };+ let stored = false;+ try {+ await next();++ if (isReplayable(c.res)) {+ // The handler already ran: a failed write must not turn its answer into an error.+ stored = await redisService.openapi+ .completeIdempotency(owned, {+ body: await encodeBody(c.res.clone()),+ contentType: c.res.headers.get('Content-Type'),+ encoding: 'base64',+ status: c.res.status,+ })+ .then(() => true)+ .catch((error) => {+ console.error('[openapi] failed to store idempotent response:', error);+ return false;+ });+ }+ } finally {+ if (!stored) {+ await redisService.openapi.releaseIdempotency(owned).catch((error) => {+ console.error('[openapi] failed to release idempotency claim:', error);+ });+ }+ }+};diff --git a/packages/openapi/src/middleware/open-responses-errors.ts b/packages/openapi/src/middleware/open-responses-errors.tsnew file mode 100644index 00000000000..6c66caa546d--- /dev/null+++ b/packages/openapi/src/middleware/open-responses-errors.ts@@ -0,0 +1,55 @@+import type { Context, Next } from 'hono';+import { z } from 'zod';++import type { ErrorRenderer } from '../common/errors';+import { ApiErrorCodeSchema, getRequestId } from '../common/errors';++const OPEN_RESPONSES_ERROR_TYPES = [+ 'invalid_request_error',+ 'not_found',+ 'rate_limit_error',+ 'server_error',+] as const;++type OpenResponsesErrorType = (typeof OPEN_RESPONSES_ERROR_TYPES)[number];++/**+ * The HTTP error body of the OpenResponses routes. The protocol owns the+ * `error` object (`type` + `message`); `code` is our catalogue code and+ * `requestId` matches the `X-Request-Id` header, as on every other route.+ */+export const OpenResponsesHttpErrorSchema = z+ .object({+ error: z+ .object({+ code: ApiErrorCodeSchema,+ message: z.string(),+ param: z.string().nullable(),+ type: z.enum(OPEN_RESPONSES_ERROR_TYPES),+ })+ .strict(),+ requestId: z.string(),+ })+ .strict();++const typeForStatus = (status: number): OpenResponsesErrorType => {+ if (status === 404) return 'not_found';+ if (status === 429) return 'rate_limit_error';+ if (status >= 500) return 'server_error';+ return 'invalid_request_error';+};++const renderOpenResponsesError: ErrorRenderer = ({ code, message, status }, c) => ({+ error: { code, message, param: null, type: typeForStatus(status) },+ requestId: getRequestId(c),+});++/**+ * Switch the error format to the OpenResponses one for the routes below it.+ * Registered on the app before authentication, so even a workspace refusal+ * reaches an OpenResponses client in the shape its SDK parses.+ */+export const openResponsesErrors = async (c: Context, next: Next) => {+ c.set('errorRenderer', renderOpenResponsesError);+ return next();+};diff --git a/packages/openapi/src/middleware/rate-limit.test.ts b/packages/openapi/src/middleware/rate-limit.test.tsnew file mode 100644index 00000000000..74557a8037d--- /dev/null+++ b/packages/openapi/src/middleware/rate-limit.test.ts@@ -0,0 +1,87 @@+import { Hono } from 'hono';+import { beforeEach, describe, expect, it, vi } from 'vitest';++import { ApiErrorSchema } from '../common/errors';+import { rateLimit } from './rate-limit';+import { requestIdMiddleware } from './request-id';++const { hitRateLimit } = vi.hoisted(() => ({ hitRateLimit: vi.fn() }));+vi.mock('@/server/services/redis', () => ({ redisService: { openapi: { hitRateLimit } } }));++const createApp = (auth: { apiKeyId?: number; authType: string | null }) => {+ const app = new Hono();+ app.use('*', requestIdMiddleware);+ app.use('*', async (c, next) => {+ c.set('authType', auth.authType);+ c.set('authData', auth.apiKeyId ? { apiKeyId: auth.apiKeyId } : null);+ await next();+ });+ app.use('*', rateLimit({ bucket: 'test', limit: 2, windowSeconds: 60 }));+ app.get('/', (c) => c.json({ ok: true }));+ app.get('/raw', () => new Response('raw'));+ return app;+};++const resetAt = Math.floor(Date.now() / 1000) + 30;++describe('rateLimit middleware', () => {+ beforeEach(() => {+ hitRateLimit.mockReset();+ });++ it('counts API-key requests per key and reports the window in headers', async () => {+ hitRateLimit.mockResolvedValue({ allowed: true, limit: 2, remaining: 1, resetAt });++ const response = await createApp({ apiKeyId: 7, authType: 'apikey' }).request('/');++ expect(response.status).toBe(200);+ expect(hitRateLimit).toHaveBeenCalledWith({+ bucket: 'test',+ identity: 'key:7',+ limit: 2,+ windowSeconds: 60,+ });+ expect(response.headers.get('X-RateLimit-Limit')).toBe('2');+ expect(response.headers.get('X-RateLimit-Remaining')).toBe('1');+ expect(response.headers.get('X-RateLimit-Reset')).toBe(String(resetAt));+ });++ it('refuses past the limit with 429 rate_limited and Retry-After', async () => {+ hitRateLimit.mockResolvedValue({ allowed: false, limit: 2, remaining: 0, resetAt });++ const response = await createApp({ apiKeyId: 7, authType: 'apikey' }).request('/');+ const body = await response.json();++ expect(response.status).toBe(429);+ expect(ApiErrorSchema.parse(body).code).toBe('rate_limited');+ expect(body.requestId).toBe(response.headers.get('X-Request-Id'));+ expect(Number(response.headers.get('Retry-After'))).toBeGreaterThanOrEqual(1);+ expect(Number(response.headers.get('Retry-After'))).toBeLessThanOrEqual(30);+ expect(response.headers.get('X-RateLimit-Remaining')).toBe('0');+ });++ it('keeps the headers on a handler that returns a raw Response', async () => {+ hitRateLimit.mockResolvedValue({ allowed: true, limit: 2, remaining: 1, resetAt });++ const response = await createApp({ apiKeyId: 7, authType: 'apikey' }).request('/raw');++ expect(response.headers.get('X-RateLimit-Limit')).toBe('2');+ });++ it('does not limit requests that are not authenticated by an API key', async () => {+ for (const authType of ['oidc', null]) {+ const response = await createApp({ authType }).request('/');+ expect(response.status).toBe(200);+ expect(response.headers.get('X-RateLimit-Limit')).toBeNull();+ }+ expect(hitRateLimit).not.toHaveBeenCalled();+ });++ it('admits the request when Redis is unavailable or failing', async () => {+ hitRateLimit.mockResolvedValueOnce(undefined).mockRejectedValueOnce(new Error('down'));+ const app = createApp({ apiKeyId: 7, authType: 'apikey' });++ expect((await app.request('/')).status).toBe(200);+ expect((await app.request('/')).status).toBe(200);+ });+});diff --git a/packages/openapi/src/middleware/rate-limit.ts b/packages/openapi/src/middleware/rate-limit.tsnew file mode 100644index 00000000000..8d53ebc8aaf--- /dev/null+++ b/packages/openapi/src/middleware/rate-limit.ts@@ -0,0 +1,95 @@+import type { Context, Next } from 'hono';++import { redisService } from '@/server/services/redis';++import { renderApiError } from '../common/errors';+import { logFailOpen } from '../helpers/fail-open-log';++export const RATE_LIMIT_HEADERS = {+ limit: 'X-RateLimit-Limit',+ remaining: 'X-RateLimit-Remaining',+ reset: 'X-RateLimit-Reset',+ retryAfter: 'Retry-After',+} as const;++export interface RateLimitPolicy {+ /** Separates counters, so a stricter route limit never spends the default one. */+ bucket: string;+ limit: number;+ windowSeconds: number;+}++const readLimit = (value: string | undefined, fallback: number) => {+ const parsed = Number(value);+ return Number.isSafeInteger(parsed) && parsed > 0 ? parsed : fallback;+};++/** The limit every API-key request shares; `OPENAPI_RATE_LIMIT_PER_MINUTE` overrides it. */+export const DEFAULT_RATE_LIMIT_POLICY: RateLimitPolicy = {+ bucket: 'default',+ limit: readLimit(process.env.OPENAPI_RATE_LIMIT_PER_MINUTE, 600),+ windowSeconds: 60,+};++/** Requests are counted per API key; other credentials (OIDC, operation JWTs) are not limited. */+const rateLimitIdentity = (c: Context): string | undefined => {+ if (c.get('authType') !== 'apikey') return;+ const apiKeyId = (c.get('authData') as { apiKeyId?: number | string } | null)?.apiKeyId;+ return apiKeyId === undefined || apiKeyId === null ? undefined : `key:${apiKeyId}`;+};++const setHeaders = (c: Context, headers: Record<string, string>) => {+ for (const [name, value] of Object.entries(headers)) c.header(name, value);+};++/**+ * Fixed-window rate limit per API key, counted in Redis through+ * `redisService.openapi`. Every limited response carries+ * `X-RateLimit-Limit/Remaining/Reset` (reset is a Unix time in seconds); a+ * refused one answers 429 `rate_limited` with `Retry-After` in seconds.+ * Without Redis the request is admitted without headers.+ */+export const rateLimit =+ (policy: RateLimitPolicy = DEFAULT_RATE_LIMIT_POLICY) =>+ async (c: Context, next: Next) => {+ const identity = rateLimitIdentity(c);+ if (!identity) return next();++ const window = await redisService.openapi+ .hitRateLimit({ ...policy, identity })+ .catch((error) => {+ logFailOpen('rate limit', error);+ return undefined;+ });+ if (!window) return next();++ const headers = {+ [RATE_LIMIT_HEADERS.limit]: String(window.limit),+ [RATE_LIMIT_HEADERS.remaining]: String(window.remaining),+ [RATE_LIMIT_HEADERS.reset]: String(window.resetAt),+ };+ setHeaders(c, headers);++ if (!window.allowed) {+ const retryAfter = Math.max(1, window.resetAt - Math.floor(Date.now() / 1000));+ c.header(RATE_LIMIT_HEADERS.retryAfter, String(retryAfter));+ return renderApiError(c, {+ code: 'rate_limited',+ message: `Rate limit of ${window.limit} requests per ${policy.windowSeconds}s exceeded for this API key; retry after ${retryAfter}s`,+ status: 429,+ });+ }++ await next();++ // A handler that returns a raw `Response` skips the prepared headers.+ for (const [name, value] of Object.entries(headers)) {+ if (!c.res.headers.has(name)) {+ try {+ c.res.headers.set(name, value);+ } catch {+ // Immutable upstream headers: the limit still applied, only the hint is lost.+ }+ }+ }+ };diff --git a/packages/openapi/src/middleware/request-id.test.ts b/packages/openapi/src/middleware/request-id.test.tsnew file mode 100644index 00000000000..1d296ce414c--- /dev/null+++ b/packages/openapi/src/middleware/request-id.test.ts@@ -0,0 +1,42 @@+import { Hono } from 'hono';+import { describe, expect, it } from 'vitest';++import { REQUEST_ID_HEADER, requestIdMiddleware } from './request-id';++const createApp = () => {+ const app = new Hono();+ app.use('*', requestIdMiddleware);+ app.get('/', (c) => c.json({ requestId: c.get('requestId') }));+ app.get('/raw', () => new Response('raw'));+ app.get('/frozen', async () => {+ const upstream = await fetch('data:text/plain,frozen');+ return upstream;+ });+ return app;+};++describe('requestIdMiddleware', () => {+ it('assigns an id, exposes it in the context and echoes it in the header', async () => {+ const response = await createApp().request('/');+ const { requestId } = await response.json();++ expect(requestId).toMatch(/^req_[\da-f]{32}$/);+ expect(response.headers.get(REQUEST_ID_HEADER)).toBe(requestId);+ });++ it('keeps a well-formed client id and replaces a malformed one', async () => {+ const app = createApp();++ const kept = await app.request('/', { headers: { [REQUEST_ID_HEADER]: 'client-123.a:b' } });+ expect(kept.headers.get(REQUEST_ID_HEADER)).toBe('client-123.a:b');++ const replaced = await app.request('/', { headers: { [REQUEST_ID_HEADER]: 'bad id\n' } });+ expect(replaced.headers.get(REQUEST_ID_HEADER)).toMatch(/^req_/);+ });++ it('sets the header on raw and immutable responses too', async () => {+ const app = createApp();+ expect((await app.request('/raw')).headers.get(REQUEST_ID_HEADER)).toMatch(/^req_/);+ expect((await app.request('/frozen')).headers.get(REQUEST_ID_HEADER)).toMatch(/^req_/);+ });+});diff --git a/packages/openapi/src/middleware/request-id.ts b/packages/openapi/src/middleware/request-id.tsnew file mode 100644index 00000000000..d5f6e32c6cf--- /dev/null+++ b/packages/openapi/src/middleware/request-id.ts@@ -0,0 +1,41 @@+import type { Context, Next } from 'hono';++export const REQUEST_ID_HEADER = 'X-Request-Id';++const MAX_LENGTH = 128;++/**+ * Give every request an id, echoed in the `X-Request-Id` response header and+ * in every error body's `requestId`. A caller-supplied id is kept when it is a+ * short token, so a client can correlate its own logs with ours.+ *+ * Runs before authentication so even a 401 carries the id. The header is set+ * again after the handler because a route that returns a raw `Response` (relay+ * streams) bypasses the context's prepared headers.+ */+export const requestIdMiddleware = async (c: Context, next: Next) => {+ const incoming = c.req.header(REQUEST_ID_HEADER);+ const requestId =+ incoming && incoming.length <= MAX_LENGTH && /^[\w.:-]+$/.test(incoming)+ ? incoming+ : `req_${crypto.randomUUID().replaceAll('-', '')}`;++ c.set('requestId', requestId);+ c.header(REQUEST_ID_HEADER, requestId);++ await next();++ if (c.res.headers.get(REQUEST_ID_HEADER) === requestId) return;+ try {+ c.res.headers.set(REQUEST_ID_HEADER, requestId);+ } catch {+ // Immutable headers (a proxied upstream response): re-wrap it.+ const headers = new Headers(c.res.headers);+ headers.set(REQUEST_ID_HEADER, requestId);+ c.res = new Response(c.res.body, {+ headers,+ status: c.res.status,+ statusText: c.res.statusText,+ });+ }+};diff --git a/packages/openapi/src/middleware/workspace.test.ts b/packages/openapi/src/middleware/workspace.test.tsindex 97c1d3bddbe..d16b6eaab05 100644--- a/packages/openapi/src/middleware/workspace.test.ts+++ b/packages/openapi/src/middleware/workspace.test.ts@@ -2,6 +2,7 @@ import { Hono } from 'hono';import { HTTPException } from 'hono/http-exception';import { beforeEach, describe, expect, it, vi } from 'vitest';+import { errorInitFromException, renderApiError } from '../common/errors';import {OPENAPI_WORKSPACE_HEADER,requireWorkspaceRoleWhenScoped,@@ -298,3 +299,45 @@ describe('OpenAPI workspace middleware', () => {});});});++describe('OpenAPI workspace middleware error codes', () => {+ beforeEach(() => {+ mockCanUseWorkspaceApiKeys.mockResolvedValue(true);+ mockGetServerDB.mockResolvedValue({+ query: {+ workspaceMembers: { findFirst: mockWorkspaceMembersFindFirst },+ workspaces: { findFirst: mockWorkspacesFindFirst },+ },+ });+ mockWorkspacesFindFirst.mockResolvedValue({ id: 'workspace-1' });+ mockWorkspaceMembersFindFirst.mockResolvedValue(null);+ });++ const codeOf = async (context: TestAuthContext, workspaceId: string) => {+ const app = createApp(context);+ app.onError((error, c) =>+ error instanceof HTTPException+ ? renderApiError(c, errorInitFromException(error))+ : c.text(error.message, 500),+ );+ const response = await app.request('/workspace', {+ headers: { [OPENAPI_WORKSPACE_HEADER]: workspaceId },+ });+ expect(response.status).toBe(403);+ return ((await response.json()) as { code: string }).code;+ };++ it.each([+ [+ 'a personal API Key sends a workspace header',+ { apiKeyWorkspaceId: null, authType: 'apikey' },+ ],+ [+ 'a workspace API Key targets another workspace',+ { apiKeyWorkspaceId: 'workspace-2', authType: 'apikey' },+ ],+ ['the caller is not a member', { authType: 'oidc' }],+ ])('answers workspace_mismatch when %s', async (_, context) => {+ expect(await codeOf(context as TestAuthContext, 'workspace-1')).toBe('workspace_mismatch');+ });+});diff --git a/packages/openapi/src/middleware/workspace.ts b/packages/openapi/src/middleware/workspace.tsindex e636cef782d..4c0bc597188 100644--- a/packages/openapi/src/middleware/workspace.ts+++ b/packages/openapi/src/middleware/workspace.ts@@ -7,6 +7,8 @@ import { canUseWorkspaceApiKeys } from '@/business/server/workspaceApiKey';import { getServerDB } from '@/database/core/db-adaptor';import { workspaceMembers, workspaces } from '@/database/schemas';+import { ApiException } from '../common/errors';+const log = debug('lobe-hono:workspace-middleware');export const OPENAPI_WORKSPACE_HEADER = 'X-Workspace-Id';@@ -20,18 +22,22 @@ const resolveWorkspaceId = (c: Context): string | undefined => {if (!apiKeyWorkspaceId) {if (requestedWorkspaceId) {- throw new HTTPException(403, {- message: 'Personal API Key cannot access workspace data',- });+ throw new ApiException(+ 403,+ 'workspace_mismatch',+ 'Personal API Key cannot access workspace data',+ );}return;}if (requestedWorkspaceId && requestedWorkspaceId !== apiKeyWorkspaceId) {- throw new HTTPException(403, {- message: 'Workspace API Key cannot access a different workspace',- });+ throw new ApiException(+ 403,+ 'workspace_mismatch',+ 'Workspace API Key cannot access a different workspace',+ );}return apiKeyWorkspaceId;@@ -105,9 +111,7 @@ export const workspaceAuthMiddleware = async (c: Context, next: Next) => {if (!membership) {log('Workspace membership check failed for user %s workspace %s', userId, workspaceId);- throw new HTTPException(403, {- message: 'Not a member of this workspace',- });+ throw new ApiException(403, 'workspace_mismatch', 'Not a member of this workspace');}if (c.get('authType') === 'apikey' && !(await canUseWorkspaceApiKeys(workspaceId))) {diff --git a/packages/openapi/src/routes/agent-groups.route.test.ts b/packages/openapi/src/routes/agent-groups.route.test.tsindex 31b43e66017..12af4af41aa 100644--- a/packages/openapi/src/routes/agent-groups.route.test.ts+++ b/packages/openapi/src/routes/agent-groups.route.test.ts@@ -21,6 +21,7 @@ vi.mock('../middleware/auth', () => ({const { default: AgentGroupRoutes } = await import('./agent-groups.route');const { AgentGroupSchema, CreatedAgentGroupSchema } = await import('../types/agent-group.type');const { DeletedResourceSchema } = await import('../types/common.type');+const { paginatedListSchema } = await import('../helpers/pagination');const USER = 'agent-group-user';@@ -61,7 +62,58 @@ describe('agent groups', () => {expect(() => AgentGroupSchema.parse(detail)).not.toThrow();const list = await json(await request('/'));- expect(() => AgentGroupSchema.array().parse(list)).not.toThrow();+ expect(() => paginatedListSchema(AgentGroupSchema, { total: true }).parse(list)).not.toThrow();+ expect(list).toMatchObject({ hasMore: false, nextCursor: null, total: 1 });+ });++ describe('pagination', () => {+ const seed = async (count: number) => {+ for (let i = 0; i < count; i++) {+ await request('/', { body: { name: `G${i}`, sort: i }, method: 'POST' });+ }+ };++ it('pages with limit + cursor until nextCursor is null', async () => {+ await seed(3);++ const first = await json(await request('/?limit=2'));+ expect(first.items).toHaveLength(2);+ expect(first).toMatchObject({ hasMore: true, total: 3 });+ expect(first.nextCursor).toEqual(expect.any(String));++ const second = await json(+ await request(`/?limit=2&cursor=${encodeURIComponent(first.nextCursor)}`),+ );+ expect(second).toMatchObject({ hasMore: false, nextCursor: null, total: 3 });+ expect(second.items).toHaveLength(1);++ const seen = [...first.items, ...second.items].map((group: { id: string }) => group.id);+ expect(new Set(seen).size).toBe(3);+ });++ it('rejects a cursor it did not issue as a validation error', async () => {+ const res = await request('/?cursor=not-a-cursor');+ expect(res.status).toBe(400);+ await expect(res.json()).resolves.toMatchObject({+ code: 'validation_error',+ success: false,+ });+ });++ it('rejects a limit above the maximum', async () => {+ const res = await request('/?limit=101');+ expect(res.status).toBe(400);+ await expect(res.json()).resolves.toMatchObject({ code: 'validation_error' });+ });++ it('still answers the legacy bare array of every group for format=array', async () => {+ await seed(3);++ const legacy = await json(await request('/?format=array&limit=1'));+ expect(Array.isArray(legacy)).toBe(true);+ expect(legacy).toHaveLength(3);+ expect(() => AgentGroupSchema.array().parse(legacy)).not.toThrow();+ });});it('answers an update with the updated group', async () => {diff --git a/packages/openapi/src/routes/agent-groups.route.ts b/packages/openapi/src/routes/agent-groups.route.tsindex 7f11a621cb5..24c4ded2f92 100644--- a/packages/openapi/src/routes/agent-groups.route.ts+++ b/packages/openapi/src/routes/agent-groups.route.ts@@ -1,11 +1,15 @@import { Hono } from 'hono';-import { z } from 'zod';import { getAllScopePermissions } from '@/utils/rbac';import { routeDoc } from '../common/openapi';import { zValidator } from '../common/validator';import { AgentGroupController } from '../controllers/agent-group.controller';+import {+ LEGACY_ARRAY_LIST_DESCRIPTION,+ LegacyArrayListQuerySchema,+} from '../helpers/legacy-array-list';+import { paginatedListSchema } from '../helpers/pagination';import { requireAuth } from '../middleware/auth';import { requireAnyPermission } from '../middleware/permission-check';import {@@ -28,7 +32,8 @@ const AgentGroupRoutes = new Hono();AgentGroupRoutes.get('/',routeDoc({- data: z.array(AgentGroupSchema),+ data: paginatedListSchema(AgentGroupSchema, { total: true }),+ description: LEGACY_ARRAY_LIST_DESCRIPTION,summary: 'List agent groups',tags: ['agent-groups'],}),@@ -37,6 +42,7 @@ AgentGroupRoutes.get(getAllScopePermissions('AGENT_READ'),'You do not have permission to view agent group list',),+ zValidator('query', LegacyArrayListQuerySchema),async (c) => {const controller = new AgentGroupController();return await controller.getAgentGroups(c);diff --git a/packages/openapi/src/routes/agents.route.test.ts b/packages/openapi/src/routes/agents.route.test.tsindex 9435da5c7b7..576e28985b5 100644--- a/packages/openapi/src/routes/agents.route.test.ts+++ b/packages/openapi/src/routes/agents.route.test.ts@@ -163,3 +163,45 @@ describe('agent detail and deletion', () => {expect(await db.select().from(agents).where(eq(agents.id, agent.id))).toHaveLength(0);});});++describe('agent list pagination', () => {+ const seed = async (count: number) => {+ for (let i = 0; i < count; i++) {+ await request('/', { body: { title: `Agent ${i}` }, method: 'POST' });+ }+ };+ const titles = (page: { agents: { title: string }[] }) => page.agents.map((agent) => agent.title);++ it('reports hasMore and a nextCursor that fetches the next offset', async () => {+ await seed(3);++ const first = await json(await request('/?limit=2'));+ expect(first).toMatchObject({ hasMore: true, total: 3 });+ expect(first.agents).toHaveLength(2);+ expect(() => AgentListSchema.parse(first)).not.toThrow();++ const second = await json(+ await request(`/?limit=2&cursor=${encodeURIComponent(first.nextCursor)}`),+ );+ expect(second).toMatchObject({ hasMore: false, nextCursor: null, total: 3 });+ expect(second.agents).toHaveLength(1);+ expect(new Set([...titles(first), ...titles(second)]).size).toBe(3);+ });++ it('still honors the deprecated page/pageSize and matches the cursor pages', async () => {+ await seed(3);++ const byCursor = await json(await request('/?limit=2'));+ const next = await json(await request(`/?limit=2&cursor=${byCursor.nextCursor}`));+ const byPage = await json(await request('/?page=2&pageSize=2'));++ expect(titles(byPage)).toEqual(titles(next));+ expect(byPage).toMatchObject({ hasMore: false, nextCursor: null, total: 3 });+ });++ it('rejects a cursor it did not issue', async () => {+ const res = await request('/?cursor=garbage');+ expect(res.status).toBe(400);+ await expect(res.json()).resolves.toMatchObject({ code: 'validation_error' });+ });+});diff --git a/packages/openapi/src/routes/api-keys.route.test.ts b/packages/openapi/src/routes/api-keys.route.test.tsnew file mode 100644index 00000000000..45f1a5b77ee--- /dev/null+++ b/packages/openapi/src/routes/api-keys.route.test.ts@@ -0,0 +1,101 @@+// @vitest-environment node+import { Hono } from 'hono';+import { HTTPException } from 'hono/http-exception';+import { beforeEach, describe, expect, it, vi } from 'vitest';++const { getApiKeys } = vi.hoisted(() => ({ getApiKeys: vi.fn() }));++vi.mock('@/database/core/db-adaptor', () => ({ getServerDB: async () => ({}) }));+vi.mock('@/database/models/rbac', () => ({+ RbacModel: class {+ hasAnyPermission = async () => true;+ },+}));+vi.mock('../services/api-key.service', () => ({+ ApiKeyService: class {+ getApiKeys = getApiKeys;+ },+}));++const { default: ApiKeysRoutes } = await import('./api-keys.route');+const { ApiKeySchema } = await import('../types/api-key.type');+const { paginatedListSchema } = await import('../helpers/pagination');++const apiKey = (i: number) => ({+ createdAt: new Date(2026, 0, i + 1).toISOString(),+ enabled: true,+ expiresAt: null,+ id: `key_${i}`,+ lastUsedAt: null,+ name: `Key ${i}`,+ scopes: null,+ updatedAt: new Date(2026, 0, i + 1).toISOString(),+});++const request = (path: string, { userId = 'user-1' }: { userId?: string | null } = {}) => {+ const app = new Hono();+ app.use('*', async (c, next) => {+ if (userId) c.set('userId' as never, userId as never);+ await next();+ });+ app.route('/', ApiKeysRoutes);+ app.onError((error, c) =>+ c.json({ error: error.message }, error instanceof HTTPException ? error.status : 500),+ );+ return app.request(path);+};++const data = async (res: Response) => ((await res.json()) as { data: any }).data;++beforeEach(() => {+ getApiKeys.mockReset();+ getApiKeys.mockResolvedValue([0, 1, 2, 3, 4].map(apiKey));+});++describe('GET /api-keys', () => {+ it('requires authentication', async () => {+ expect((await request('/', { userId: null })).status).toBe(401);+ expect(getApiKeys).not.toHaveBeenCalled();+ });++ it('answers the paginated list object by default', async () => {+ const res = await request('/');+ expect(res.status).toBe(200);+ const page = await data(res);+ expect(() => paginatedListSchema(ApiKeySchema, { total: true }).parse(page)).not.toThrow();+ expect(page).toMatchObject({ hasMore: false, nextCursor: null, total: 5 });+ expect(page.items).toHaveLength(5);+ });++ it('pages through the keys with limit + cursor', async () => {+ const first = await data(await request('/?limit=2'));+ expect(first.items.map((k: { id: string }) => k.id)).toEqual(['key_0', 'key_1']);+ expect(first).toMatchObject({ hasMore: true, total: 5 });++ const second = await data(await request(`/?limit=2&cursor=${first.nextCursor}`));+ expect(second.items.map((k: { id: string }) => k.id)).toEqual(['key_2', 'key_3']);++ const last = await data(await request(`/?limit=2&cursor=${second.nextCursor}`));+ expect(last.items.map((k: { id: string }) => k.id)).toEqual(['key_4']);+ expect(last).toMatchObject({ hasMore: false, nextCursor: null });+ });++ it('rejects an invalid cursor with validation_error', async () => {+ const res = await request('/?cursor=bogus');+ expect(res.status).toBe(400);+ await expect(res.json()).resolves.toMatchObject({ code: 'validation_error' });+ });++ it('keeps the legacy bare array behind format=array', async () => {+ const legacy = await data(await request('/?format=array'));+ expect(Array.isArray(legacy)).toBe(true);+ expect(() => ApiKeySchema.array().parse(legacy)).not.toThrow();+ expect(legacy).toHaveLength(5);+ });++ it('rejects an unknown format value', async () => {+ const res = await request('/?format=csv');+ expect(res.status).toBe(400);+ await expect(res.json()).resolves.toMatchObject({ code: 'validation_error' });+ });+});diff --git a/packages/openapi/src/routes/api-keys.route.ts b/packages/openapi/src/routes/api-keys.route.tsindex 9f251f2f729..6d6332484a6 100644--- a/packages/openapi/src/routes/api-keys.route.ts+++ b/packages/openapi/src/routes/api-keys.route.ts@@ -1,11 +1,15 @@import { Hono } from 'hono';-import { z } from 'zod';import { getAllScopePermissions } from '@/utils/rbac';import { routeDoc } from '../common/openapi';import { zValidator } from '../common/validator';import { ApiKeyController } from '../controllers/api-key.controller';+import {+ LEGACY_ARRAY_LIST_DESCRIPTION,+ LegacyArrayListQuerySchema,+} from '../helpers/legacy-array-list';+import { paginatedListSchema } from '../helpers/pagination';import { requireAuth } from '../middleware/auth';import { requireAnyPermission } from '../middleware/permission-check';import { requireWorkspaceRoleWhenScoped } from '../middleware/workspace';@@ -28,10 +32,16 @@ const requireWorkspaceAdmin = requireWorkspaceRoleWhenScoped('admin');app.get('/',- routeDoc({ data: z.array(ApiKeySchema), summary: 'List API keys', tags: ['api-keys'] }),+ routeDoc({+ data: paginatedListSchema(ApiKeySchema, { total: true }),+ description: LEGACY_ARRAY_LIST_DESCRIPTION,+ summary: 'List API keys',+ tags: ['api-keys'],+ }),requireAuth,requireWorkspaceAdmin,requireAnyPermission(getAllScopePermissions('API_KEY_READ')),+ zValidator('query', LegacyArrayListQuerySchema),async (c) => new ApiKeyController().getApiKeys(c),);diff --git a/packages/openapi/src/routes/chat-groups.route.test.ts b/packages/openapi/src/routes/chat-groups.route.test.tsindex 30c752d5356..69e26813a7f 100644--- a/packages/openapi/src/routes/chat-groups.route.test.ts+++ b/packages/openapi/src/routes/chat-groups.route.test.ts@@ -178,6 +178,8 @@ describe('GET /chat-groups', () => {expect(await json(await request('/', { userId: OTHER }))).toEqual({chatGroups: [],+ hasMore: false,+ nextCursor: null,total: 0,});expect((await request(`/${group.id}`, { userId: OTHER })).status).toBe(404);diff --git a/packages/openapi/src/routes/mcp-servers.route.test.ts b/packages/openapi/src/routes/mcp-servers.route.test.tsnew file mode 100644index 00000000000..b233f305928--- /dev/null+++ b/packages/openapi/src/routes/mcp-servers.route.test.ts@@ -0,0 +1,105 @@+// @vitest-environment node+import { Hono } from 'hono';+import { HTTPException } from 'hono/http-exception';+import { beforeEach, describe, expect, it, vi } from 'vitest';++const { listServers } = vi.hoisted(() => ({ listServers: vi.fn() }));++vi.mock('@/database/core/db-adaptor', () => ({ getServerDB: async () => ({}) }));+vi.mock('@/database/models/rbac', () => ({+ RbacModel: class {+ hasAnyPermission = async () => true;+ },+}));+vi.mock('../services/mcp-server.service', () => ({+ McpServerService: class {+ listServers = listServers;+ },+}));++const { default: McpServersRoutes } = await import('./mcp-servers.route');+const { McpServerSchema } = await import('../types/mcp-server.type');+const { paginatedListSchema } = await import('../helpers/pagination');++const server = (i: number) => ({+ createdAt: new Date(2026, 0, i + 1).toISOString(),+ description: null,+ hasCredentials: false,+ id: `00000000-0000-4000-8000-00000000000${i}`,+ identifier: `server-${i}`,+ isEnabled: true,+ name: `Server ${i}`,+ serverUrl: `https://mcp${i}.example.com/mcp`,+ status: 'connected' as const,+ tools: [],+ updatedAt: new Date(2026, 0, i + 1).toISOString(),+});++const request = (+ path: string,+ { scopes = null, userId = 'user-1' }: { scopes?: string[] | null; userId?: string | null } = {},+) => {+ const app = new Hono();+ app.use('*', async (c, next) => {+ if (userId) c.set('userId' as never, userId as never);+ if (scopes) {+ c.set('authType' as never, 'apikey' as never);+ c.set('apiKeyScopes' as never, scopes as never);+ }+ await next();+ });+ app.route('/', McpServersRoutes);+ app.onError((error, c) =>+ c.json({ error: error.message }, error instanceof HTTPException ? error.status : 500),+ );+ return app.request(path);+};++const data = async (res: Response) => ((await res.json()) as { data: any }).data;++beforeEach(() => {+ listServers.mockReset();+ listServers.mockResolvedValue([0, 1, 2].map(server));+});++describe('GET /mcp-servers', () => {+ it('requires authentication', async () => {+ expect((await request('/', { userId: null })).status).toBe(401);+ expect(listServers).not.toHaveBeenCalled();+ });++ it('refuses a restricted API key without mcp:read', async () => {+ const res = await request('/', { scopes: ['agent:read'] });+ expect(res.status).toBe(403);+ expect(listServers).not.toHaveBeenCalled();+ });++ it('answers the paginated list object by default', async () => {+ const page = await data(await request('/'));+ expect(() => paginatedListSchema(McpServerSchema, { total: true }).parse(page)).not.toThrow();+ expect(page).toMatchObject({ hasMore: false, nextCursor: null, total: 3 });+ });++ it('pages with limit + cursor', async () => {+ const first = await data(await request('/?limit=2'));+ expect(first).toMatchObject({ hasMore: true, total: 3 });+ expect(first.items).toHaveLength(2);++ const second = await data(await request(`/?limit=2&cursor=${first.nextCursor}`));+ expect(second.items.map((s: { identifier: string }) => s.identifier)).toEqual(['server-2']);+ expect(second).toMatchObject({ hasMore: false, nextCursor: null });+ });++ it('rejects an invalid cursor with validation_error', async () => {+ const res = await request('/?cursor=%2F%2F%2F');+ expect(res.status).toBe(400);+ await expect(res.json()).resolves.toMatchObject({ code: 'validation_error' });+ });++ it('keeps the legacy bare array behind format=array', async () => {+ const legacy = await data(await request('/?format=array'));+ expect(Array.isArray(legacy)).toBe(true);+ expect(() => McpServerSchema.array().parse(legacy)).not.toThrow();+ expect(legacy).toHaveLength(3);+ });+});diff --git a/packages/openapi/src/routes/mcp-servers.route.ts b/packages/openapi/src/routes/mcp-servers.route.tsindex 2c2f219b8f1..93f300b8a0c 100644--- a/packages/openapi/src/routes/mcp-servers.route.ts+++ b/packages/openapi/src/routes/mcp-servers.route.ts@@ -1,11 +1,15 @@import { Hono } from 'hono';-import { z } from 'zod';import { getAllScopePermissions } from '@/utils/rbac';import { routeDoc } from '../common/openapi';import { zValidator } from '../common/validator';import { McpServerController } from '../controllers/mcp-server.controller';+import {+ LEGACY_ARRAY_LIST_DESCRIPTION,+ LegacyArrayListQuerySchema,+} from '../helpers/legacy-array-list';+import { paginatedListSchema } from '../helpers/pagination';import { requireAuth } from '../middleware/auth';import { requireAnyPermissionWithApiKeyScope } from '../middleware/permission-check';import { DeletedResourceSchema } from '../types/common.type';@@ -30,12 +34,14 @@ const requireWrite = requireAnyPermissionWithApiKeyScope(app.get('/',routeDoc({- data: z.array(McpServerSchema),+ data: paginatedListSchema(McpServerSchema, { total: true }),+ description: LEGACY_ARRAY_LIST_DESCRIPTION,summary: 'List remote MCP servers',tags: ['mcp-servers'],}),requireAuth,requireRead,+ zValidator('query', LegacyArrayListQuerySchema),async (c) => new McpServerController().listServers(c),);diff --git a/packages/openapi/src/routes/responses.route.test.ts b/packages/openapi/src/routes/responses.route.test.tsindex 030148a133f..67b2a99f6b5 100644--- a/packages/openapi/src/routes/responses.route.test.ts+++ b/packages/openapi/src/routes/responses.route.test.ts@@ -1,6 +1,11 @@import { Hono } from 'hono';import { describe, expect, it, vi } from 'vitest';+import {+ openResponsesErrors,+ OpenResponsesHttpErrorSchema,+} from '../middleware/open-responses-errors';+import { requestIdMiddleware } from '../middleware/request-id';import { ResponseObjectSchema } from '../types/responses.type';const { createResponseMock } = vi.hoisted(() => ({ createResponseMock: vi.fn() }));@@ -91,4 +96,50 @@ describe('POST /responses', () => {expect(body).not.toHaveProperty('success');expect(() => ResponseObjectSchema.parse(body)).not.toThrow();});++ const errorApp = () => {+ const app = new Hono();+ app.use('*', requestIdMiddleware);+ app.use('*', openResponsesErrors);+ app.use('*', async (c, next) => {+ c.set('userId' as never, 'user-1' as never);+ c.set('authType' as never, 'oidc' as never);+ await next();+ });+ app.route('/', ResponsesRoutes);+ return app;+ };++ it('answers a validation failure in the OpenResponses error shape with a requestId', async () => {+ const res = await errorApp().request('/', {+ body: JSON.stringify({ input: 'hi' }),+ headers: { 'content-type': 'application/json' },+ method: 'POST',+ });+ const body = await res.json();++ expect(res.status).toBe(400);+ expect(OpenResponsesHttpErrorSchema.parse(body)).toMatchObject({+ error: { code: 'validation_error', type: 'invalid_request_error' },+ });+ expect(body.requestId).toBe(res.headers.get('X-Request-Id'));+ expect(body).not.toHaveProperty('success');+ });++ it('answers a thrown service error in the OpenResponses error shape', async () => {+ createResponseMock.mockRejectedValue(+ Object.assign(new Error('agent not found'), { code: 'NOT_FOUND', name: 'TRPCError' }),+ );+ const res = await errorApp().request('/', {+ body: JSON.stringify({ input: 'hi', model: 'agt_missing' }),+ headers: { 'content-type': 'application/json' },+ method: 'POST',+ });++ expect(res.status).toBe(404);+ expect(await res.json()).toMatchObject({+ error: { code: 'not_found', message: 'agent not found', param: null, type: 'not_found' },+ requestId: res.headers.get('X-Request-Id'),+ });+ });});diff --git a/packages/openapi/src/routes/responses.route.ts b/packages/openapi/src/routes/responses.route.tsindex 98f9ce09d20..5b0d52ad69d 100644--- a/packages/openapi/src/routes/responses.route.ts+++ b/packages/openapi/src/routes/responses.route.ts@@ -4,6 +4,7 @@ import { routeDoc } from '../common/openapi';import { zValidator } from '../common/validator';import { ResponsesController } from '../controllers/responses.controller';import { requireAuth } from '../middleware/auth';+import { OpenResponsesHttpErrorSchema } from '../middleware/open-responses-errors';import { requireApiKeyScope } from '../middleware/permission-check';import { CreateResponseRequestSchema, ResponseObjectSchema } from '../types/responses.type';@@ -26,6 +27,10 @@ ResponsesRoutes.post('OpenResponses-compatible: `model` takes an agent id. Without `stream` the response object is the whole JSON body (no success envelope); a run that fails still answers 200 with `status: "failed"` and `error`. With `stream: true` the same object arrives through `response.*` server-sent events.',// The handler answers `c.json(response)` directly, not `this.success(...)`.envelope: false,+ // OpenResponses clients parse `error.message`/`error.type`, so HTTP errors+ // keep the protocol's shape (plus `requestId`) instead of `ApiError`.+ errorSchema: OpenResponsesHttpErrorSchema,+ errors: [400],streamContent: { 'text/event-stream': { schema: { type: 'string' } } },summary: 'Create a model response',tags: ['responses'],diff --git a/packages/openapi/src/services/__tests__/knowledge-base.service.test.ts b/packages/openapi/src/services/__tests__/knowledge-base.service.test.tsindex 2831f8cbbb8..f9821dff084 100644--- a/packages/openapi/src/services/__tests__/knowledge-base.service.test.ts+++ b/packages/openapi/src/services/__tests__/knowledge-base.service.test.ts@@ -7,6 +7,9 @@ import {} from '../../types/knowledge-base.type';import { KnowledgeBaseService } from '../knowledge-base.service';+// Services return the page's rows and total; the controller adds `hasMore`/`nextCursor`.+const SERVICE_PAGE_FIELDS = { hasMore: true, nextCursor: true } as const;+const { deleteWithFilesMock, deleteFilesMock, findByIdMock } = vi.hoisted(() => ({deleteFilesMock: vi.fn(),deleteWithFilesMock: vi.fn(),@@ -90,7 +93,9 @@ describe('KnowledgeBaseService response payloads', () => {const result = asJson(await buildService(db).getKnowledgeBaseList({}));- expect(() => KnowledgeBaseListResponseSchema.parse(result)).not.toThrow();+ expect(() =>+ KnowledgeBaseListResponseSchema.omit(SERVICE_PAGE_FIELDS).parse(result),+ ).not.toThrow();expect(result.knowledgeBases[0].accessType).toBe('owner');});});diff --git a/packages/openapi/src/services/eval-resource.service.test.ts b/packages/openapi/src/services/eval-resource.service.test.tsindex ecd65abf767..dd2d8aa35b8 100644--- a/packages/openapi/src/services/eval-resource.service.test.ts+++ b/packages/openapi/src/services/eval-resource.service.test.ts@@ -19,6 +19,9 @@ import {} from '../types/eval-response.type';import { EvalResourceService } from './eval-resource.service';+// Services return the page's rows and total; the controller adds `hasMore`/`nextCursor`.+const SERVICE_PAGE_FIELDS = { hasMore: true, nextCursor: true } as const;+/** What the client receives: `c.json` serializes Dates and drops undefined keys. */const toJson = (value: unknown) => JSON.parse(JSON.stringify(value));@@ -102,11 +105,17 @@ describe('public eval resources', () => {owner.listTestCases(dataset.id, {}),]);expect(() => EvalBenchmarkSchema.parse(toJson(benchmark))).not.toThrow();- expect(() => EvalBenchmarkListSchema.parse(toJson(benchmarks))).not.toThrow();+ expect(() =>+ EvalBenchmarkListSchema.omit(SERVICE_PAGE_FIELDS).parse(toJson(benchmarks)),+ ).not.toThrow();expect(() => EvalDatasetSchema.parse(toJson(dataset))).not.toThrow();- expect(() => EvalDatasetListSchema.parse(toJson(datasetList))).not.toThrow();+ expect(() =>+ EvalDatasetListSchema.omit(SERVICE_PAGE_FIELDS).parse(toJson(datasetList)),+ ).not.toThrow();expect(() => EvalTestCaseSchema.parse(toJson(testCase))).not.toThrow();- expect(() => EvalTestCaseListSchema.parse(toJson(testCases))).not.toThrow();+ expect(() =>+ EvalTestCaseListSchema.omit(SERVICE_PAGE_FIELDS).parse(toJson(testCases)),+ ).not.toThrow();const deletedCase = await member.deleteTestCase(testCase.id);expect(deletedCase).toEqual({ deleted: true, id: testCase.id });expect(() => DeletedResourceSchema.parse(deletedCase)).not.toThrow();diff --git a/packages/openapi/src/services/eval.service.test.ts b/packages/openapi/src/services/eval.service.test.tsindex 8df957daa57..a27bbce474f 100644--- a/packages/openapi/src/services/eval.service.test.ts+++ b/packages/openapi/src/services/eval.service.test.ts@@ -10,6 +10,9 @@ import {} from '../types/eval-response.type';import { EvalService } from './eval.service';+// Services return the page's rows and total; the controller adds `hasMore`/`nextCursor`.+const SERVICE_PAGE_FIELDS = { hasMore: true, nextCursor: true } as const;+/** What the client receives: `c.json` serializes Dates and drops undefined keys. */const toJson = (value: unknown) => JSON.parse(JSON.stringify(value));@@ -144,7 +147,7 @@ describe('EvalService.listRuns', () => {expect(result.runs[0]).not.toHaveProperty('workspaceId');expect(result.runs[0]).not.toHaveProperty('clientId');expect(result.runs[0]).toMatchObject({ datasetId: 'ds-1', id: 'run-1', status: 'completed' });- expect(() => EvalRunListSchema.parse(toJson(result))).not.toThrow();+ expect(() => EvalRunListSchema.omit(SERVICE_PAGE_FIELDS).parse(toJson(result))).not.toThrow();});});@@ -263,7 +266,9 @@ describe('EvalService.getRunTopics', () => {testCaseId: 'tc-1',topicId: 'topic-1',});- expect(() => EvalRunTopicListSchema.parse(toJson(result))).not.toThrow();+ expect(() =>+ EvalRunTopicListSchema.omit(SERVICE_PAGE_FIELDS).parse(toJson(result)),+ ).not.toThrow();});});@@ -294,6 +299,6 @@ describe('EvalService.getRunResults', () => {expect(result.results[0].result).not.toHaveProperty('executionId');expect(result.results[0].result.threads[0]).not.toHaveProperty('executionId');- expect(() => EvalRunResultListSchema.parse(result)).not.toThrow();+ expect(() => EvalRunResultListSchema.omit(SERVICE_PAGE_FIELDS).parse(result)).not.toThrow();});});diff --git a/packages/openapi/src/services/goal.service.ts b/packages/openapi/src/services/goal.service.tsindex 0abe15a7cb9..95d530edcf9 100644--- a/packages/openapi/src/services/goal.service.ts+++ b/packages/openapi/src/services/goal.service.ts@@ -6,6 +6,7 @@ import { advanceGoal } from '@/server/services/goal/advanceGoal';import { scheduleGoalAdvance } from '@/server/services/goal/scheduler';import { BaseService } from '../common/base.service';+import { resolvePagination } from '../helpers/pagination';import type { ServiceResult } from '../types';import type { DeletedResource } from '../types/common.type';import type {@@ -15,6 +16,9 @@ import type {UpdateGoalRequest,} from '../types/goal.type';+/** The model's own default page size, kept so omitting `limit` still returns 50 rows. */+export const GOAL_LIST_DEFAULT_LIMIT = 50;+/*** Goals REST service.*@@ -47,11 +51,12 @@ export class GoalRestService extends BaseService {return goal;}- async listGoals(query: GoalListQuery): ServiceResult<unknown> {+ async listGoals(query: GoalListQuery) {+ const { limit, offset } = resolvePagination(query, GOAL_LIST_DEFAULT_LIMIT);return this.goalModel.list({agentId: query.agentId,- limit: query.limit,- offset: query.offset,+ limit,+ offset,projectId: query.projectId,statuses: query.statuses,topicId: query.topicId,diff --git a/packages/openapi/src/services/model.service.ts b/packages/openapi/src/services/model.service.tsindex ced6064855b..b176a82cc96 100644--- a/packages/openapi/src/services/model.service.ts+++ b/packages/openapi/src/services/model.service.ts@@ -55,7 +55,7 @@ export class ModelService extends BaseService {if (permissionWhere) conditions.push(permissionWhere);// Handle ModelsListQuery-specific parameters- const { page, pageSize, keyword, provider, type, enabled } = request;+ const { keyword, provider, type, enabled } = request;// If a keyword is provided, add it to the query conditionsif (keyword) {@@ -90,7 +90,7 @@ export class ModelService extends BaseService {const finalWhereCondition = conditions.length > 0 ? and(...conditions) : undefined;// Calculate offset- const { limit, offset } = processPaginationConditions({ page, pageSize });+ const { limit, offset } = processPaginationConditions(request);// Execute query and count in parallelconst [result, totalResult] = await Promise.all([diff --git a/packages/openapi/src/services/permission.service.test.ts b/packages/openapi/src/services/permission.service.test.tsindex a8427b43812..f9769b17a56 100644--- a/packages/openapi/src/services/permission.service.test.ts+++ b/packages/openapi/src/services/permission.service.test.ts@@ -7,6 +7,9 @@ import { DeletedResourceSchema } from '../types/common.type';import { PermissionListSchema, PermissionSchema } from '../types/permission.type';import { PermissionService } from './permission.service';+// Services return the page's rows and total; the controller adds `hasMore`/`nextCursor`.+const SERVICE_PAGE_FIELDS = { hasMore: true, nextCursor: true } as const;+vi.mock('@/database/models/rbac', () => ({ RbacModel: class {} }));const now = new Date('2026-01-01T00:00:00.000Z');@@ -50,7 +53,7 @@ describe('PermissionService response payloads', () => {const list = await service().getPermissions({});const detail = await service().getPermissionById(PERMISSION_ROW.id);- expect(() => PermissionListSchema.parse(json(list))).not.toThrow();+ expect(() => PermissionListSchema.omit(SERVICE_PAGE_FIELDS).parse(json(list))).not.toThrow();expect(() => PermissionSchema.parse(json(detail))).not.toThrow();});diff --git a/packages/openapi/src/services/role.service.test.ts b/packages/openapi/src/services/role.service.test.tsindex 98230140a4c..ebd3eb20bff 100644--- a/packages/openapi/src/services/role.service.test.ts+++ b/packages/openapi/src/services/role.service.test.ts@@ -7,6 +7,9 @@ import { DeletedResourceSchema, DeletedResourcesSchema } from '../types/common.timport { RoleListSchema, RolePermissionsUpdateResultSchema } from '../types/role.type';import { RoleService } from './role.service';+// Services return the page's rows and total; the controller adds `hasMore`/`nextCursor`.+const SERVICE_PAGE_FIELDS = { hasMore: true, nextCursor: true } as const;+vi.mock('@/database/models/rbac', () => ({RbacModel: class {hasAnyPermission = vi.fn().mockResolvedValue(true);@@ -60,7 +63,7 @@ describe('RoleService response payloads', () => {const result = await service().getRoles({});expect(result.roles[0]).not.toHaveProperty('workspaceId');- expect(() => RoleListSchema.parse(json(result))).not.toThrow();+ expect(() => RoleListSchema.omit(SERVICE_PAGE_FIELDS).parse(json(result))).not.toThrow();});it('deletes a role and answers with the deleted id', async () => {diff --git a/packages/openapi/src/services/task.service.ts b/packages/openapi/src/services/task.service.tsindex 129617c7d57..6f68b5bd384 100644--- a/packages/openapi/src/services/task.service.ts+++ b/packages/openapi/src/services/task.service.ts@@ -16,6 +16,7 @@ import { normalizeTaskConfig, resolveTaskOrThrow } from '@/server/services/task/import { TaskRunnerService } from '@/server/services/taskRunner';import { BaseService } from '../common/base.service';+import { resolvePagination } from '../helpers/pagination';import type { ServiceResult } from '../types';import type { DeletedResource } from '../types/common.type';import type {@@ -27,6 +28,9 @@ import type {UpdateTaskStatusRequest,} from '../types/task.type';+/** The model's own default page size, kept so omitting `limit` still returns 50 rows. */+export const TASK_LIST_DEFAULT_LIMIT = 50;+const DEFAULT_RUN_LIMIT = 20;type TaskRunRow = Awaited<ReturnType<TaskTopicModel['findWithHandoff']>>[number];@@ -73,11 +77,12 @@ export class TaskRestService extends BaseService {this.taskTopicModel = new TaskTopicModel(db, userId ?? '', workspaceId);}- async listTasks(query: TaskListQuery): ServiceResult<unknown> {+ async listTasks(query: TaskListQuery) {+ const { limit, offset } = resolvePagination(query, TASK_LIST_DEFAULT_LIMIT);return this.taskModel.list({assigneeAgentId: query.assigneeAgentId,- limit: query.limit,- offset: query.offset,+ limit,+ offset,projectId: query.projectId,statuses: query.statuses,});diff --git a/packages/openapi/src/spec.test.ts b/packages/openapi/src/spec.test.tsindex d537acb0452..8910c34f0b1 100644--- a/packages/openapi/src/spec.test.ts+++ b/packages/openapi/src/spec.test.ts@@ -143,6 +143,139 @@ describe('generated OpenAPI document', () => {it('references components only, never local $defs', () => {expect(JSON.stringify(spec)).not.toContain('#/$defs/');});++ it('publishes ApiError with a stable code catalogue and requestId', () => {+ const schemas = spec.components?.schemas as Record<string, Schema>;+ const apiError = schemas.ApiError as { properties: Record<string, Schema>; required: string[] };++ expect(apiError.required).toEqual(+ expect.arrayContaining(['code', 'error', 'message', 'requestId', 'success', 'timestamp']),+ );+ expect(apiError.properties.code).toEqual({ $ref: '#/components/schemas/ApiErrorCode' });+ expect(apiError.properties.details).toBeDefined();+ expect(schemas.ApiErrorCode.enum).toEqual(+ expect.arrayContaining([+ 'validation_error',+ 'unauthorized',+ 'forbidden',+ 'not_found',+ 'conflict',+ 'rate_limited',+ 'workspace_mismatch',+ 'insufficient_scope',+ 'internal_error',+ 'idempotency_conflict',+ ]),+ );+ });++ const operations = () =>+ Object.entries(spec.paths ?? {}).flatMap(([path, item]) =>+ Object.entries(item as Record<string, any>)+ .filter(([method]) => HTTP_METHODS.has(method))+ .map(([method, op]) => ({ key: `${method.toUpperCase()} ${path}`, method, op })),+ );++ it('documents X-Request-Id on every response', () => {+ const missing = operations().flatMap(({ key, op }) =>+ Object.entries(op.responses as Record<string, { headers?: Schema }>)+ .filter(([, response]) => !response.headers?.['X-Request-Id'])+ .map(([status]) => `${key} ${status}`),+ );+ expect(missing).toEqual([]);+ });++ it('declares Idempotency-Key on every authenticated POST and nowhere else', () => {+ const declares = (op: any) =>+ (op.parameters ?? []).some(+ (parameter: Schema) => parameter.$ref === '#/components/parameters/IdempotencyKey',+ );+ const posts = operations().filter(({ method }) => method === 'post');+ expect(posts.length).toBeGreaterThan(0);+ expect(posts.filter(({ op }) => !declares(op)).map(({ key }) => key)).toEqual([]);+ expect(+ operations()+ .filter(({ method, op }) => method !== 'post' && declares(op))+ .map(({ key }) => key),+ ).toEqual([]);+ });++ it('pairs every 429 with Retry-After and the rate-limit headers', () => {+ const limited = operations().filter(({ op }) => op.responses['429']);+ expect(limited.length).toBeGreaterThan(0);+ for (const { op } of limited) {+ expect(Object.keys(op.responses['429'].headers)).toEqual(+ expect.arrayContaining([+ 'Retry-After',+ 'X-RateLimit-Limit',+ 'X-RateLimit-Remaining',+ 'X-RateLimit-Reset',+ ]),+ );+ }+ });++ it('keeps the public health check out of rate limiting', () => {+ const health = (spec.paths as Record<string, any>)['/api/v1/health'].get;+ expect(health.security).toEqual([]);+ expect(health.responses['429']).toBeUndefined();+ expect(health.responses['200'].headers['X-RateLimit-Limit']).toBeUndefined();+ });++ it('marks the legacy page/pageSize/offset query parameters deprecated', () => {+ const legacy = operations().flatMap(({ key, op }) =>+ (op.parameters ?? [])+ .filter(+ (parameter: Schema) =>+ parameter.in === 'query' &&+ ['offset', 'page', 'pageSize'].includes(parameter.name as string),+ )+ .map((parameter: Schema) => ({+ deprecated: parameter.deprecated,+ key,+ name: parameter.name,+ })),+ );+ expect(legacy.length).toBeGreaterThan(0);+ expect(legacy.filter(({ deprecated }) => !deprecated)).toEqual([]);+ });++ it('shapes every list through the shared page components', () => {+ const lists = [+ '/api/v1/agents',+ '/api/v1/agent-groups',+ '/api/v1/api-keys',+ '/api/v1/mcp-servers',+ '/api/v1/tasks',+ '/api/v1/topics',+ ];+ for (const path of lists) {+ const body = (spec.paths as Record<string, any>)[path].get.responses['200'].content[+ 'application/json'+ ].schema;+ const data = payloadOf(spec, body).properties as Record<string, Schema>;+ expect({+ path,+ hasMore: data.hasMore,+ nextCursor: data.nextCursor,+ total: data.total,+ }).toEqual({+ hasMore: { $ref: '#/components/schemas/PageHasMore' },+ nextCursor: { $ref: '#/components/schemas/PageNextCursor' },+ path,+ total: { $ref: '#/components/schemas/PageTotal' },+ });+ }+ });++ it('keeps the OpenResponses error shape on POST /responses', () => {+ const op = (spec.paths as Record<string, any>)['/api/v1/responses'].post;+ const schema = op.responses['400'].content['application/json'].schema;+ expect(JSON.stringify(schema)).not.toContain('#/components/schemas/ApiError"');+ expect(Object.keys(resolveRef(spec, schema).properties as Schema)).toEqual(+ expect.arrayContaining(['error', 'requestId']),+ );+ });});describe('route-declared responses', () => {@@ -171,8 +304,8 @@ describe('route-declared responses', () => {const created = (spec.paths?.['/api/v1/things'] as any).post.responses;const accepted = (spec.paths?.['/api/v1/things/{id}/runs'] as any).post.responses;- expect(Object.keys(created)).toEqual(['201', '401', '403', '500']);- expect(Object.keys(accepted)).toEqual(['202', '401', '403', '404', '409', '500']);+ expect(Object.keys(created)).toEqual(['201', '401', '403', '429', '500']);+ expect(Object.keys(accepted)).toEqual(['202', '401', '403', '404', '409', '429', '500']);expect(created['201'].content['application/json'].schema.properties.data).toMatchObject({properties: { id: { type: 'string' } },required: ['id'],diff --git a/packages/openapi/src/spec.ts b/packages/openapi/src/spec.tsindex 7f0892d917c..9f1d3297a39 100644--- a/packages/openapi/src/spec.ts+++ b/packages/openapi/src/spec.ts@@ -2,22 +2,125 @@ import { API_KEY_PREFIX } from '@lobechat/utils/apiKey';import { generateSpecs } from 'hono-openapi';import { z } from 'zod';+import { API_ERROR_CODES, ApiErrorCodeSchema } from './common/errors';import { ApiErrorSchema, errorResponse } from './common/openapi';+import { DEFAULT_PAGE_LIMIT, MAX_PAGE_LIMIT } from './helpers/pagination';+import { IDEMPOTENCY_KEY_HEADER, IDEMPOTENT_REPLAYED_HEADER } from './middleware/idempotency';+import { RATE_LIMIT_HEADERS } from './middleware/rate-limit';+import { REQUEST_ID_HEADER } from './middleware/request-id';const HTTP_METHODS = new Set(['DELETE', 'GET', 'PATCH', 'POST', 'PUT']);type GenerateSpecsApp = Parameters<typeof generateSpecs>[0];+interface ParameterObject {+ $ref?: string;+ deprecated?: boolean;+ in?: string;+ name?: string;+ schema?: { deprecated?: boolean };+}++interface ResponseObject {+ content?: unknown;+ description?: string;+ headers?: Record<string, unknown>;+}+interface OperationObject {operationId?: string;- responses?: Record<string, { content?: unknown; description?: string }>;+ parameters?: ParameterObject[];+ responses?: Record<string, ResponseObject>;+ security?: unknown[];tags?: string[];}-const { $schema: _, ...apiErrorJsonSchema } = z.toJSONSchema(ApiErrorSchema) as Record<- string,- unknown->;+const toComponentSchema = (schema: z.ZodType) => {+ const { $schema: _, ...json } = z.toJSONSchema(schema) as Record<string, unknown>;+ return json;+};++const errorCodeCatalogue = Object.entries(API_ERROR_CODES)+ .map(([code, { description }]) => `- \`${code}\`: ${description}`)+ .join('\n');++const apiErrorCodeJsonSchema = {+ ...toComponentSchema(ApiErrorCodeSchema),+ description: `Stable machine-readable error code. Codes are only ever added.\n\n${errorCodeCatalogue}`,+};++const apiErrorJsonSchema = (() => {+ const json = toComponentSchema(ApiErrorSchema) as {+ properties: Record<string, Record<string, unknown>>;+ };+ json.properties.code = { $ref: '#/components/schemas/ApiErrorCode' };+ json.properties.error = {+ description: 'Deprecated alias of `message`, kept for clients written before `code`.',+ type: 'string',+ };+ json.properties.requestId = {+ description: `Same value as the \`${REQUEST_ID_HEADER}\` response header; quote it when reporting an issue.`,+ type: 'string',+ };+ return json;+})();++const headerRef = (name: string) => ({ $ref: `#/components/headers/${name}` });++const RATE_LIMIT_RESPONSE_HEADERS = {+ [RATE_LIMIT_HEADERS.limit]: headerRef('RateLimitLimit'),+ [RATE_LIMIT_HEADERS.remaining]: headerRef('RateLimitRemaining'),+ [RATE_LIMIT_HEADERS.reset]: headerRef('RateLimitReset'),+};++const integerHeader = (description: string) => ({+ description,+ schema: { type: 'integer' as const },+});++const SHARED_HEADERS = {+ IdempotentReplayed: {+ description: `\`true\` when this response was replayed from the first request sent with the same \`${IDEMPOTENCY_KEY_HEADER}\`.`,+ schema: { enum: ['true'], type: 'string' as const },+ },+ RateLimitLimit: integerHeader('Requests this API key may send per window.'),+ RateLimitRemaining: integerHeader('Requests left in the current window.'),+ RateLimitReset: integerHeader('Unix time (seconds) the current window resets.'),+ RequestId: {+ description:+ 'Unique id of this request, also returned as `requestId` in error bodies. A client-supplied `X-Request-Id` (β€128 chars of `[A-Za-z0-9_.:-]`) is echoed back.',+ schema: { type: 'string' as const },+ },+ RetryAfter: integerHeader('Seconds to wait before retrying.'),+};++const IDEMPOTENCY_KEY_PARAMETER = {+ description: `Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with \`${IDEMPOTENT_REPLAYED_HEADER}: true\`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both \`idempotency_conflict\`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.`,+ in: 'header',+ name: IDEMPOTENCY_KEY_HEADER,+ required: false,+ schema: { maxLength: 255, minLength: 1, type: 'string' as const },+};++const API_DESCRIPTION = `LobeHub platform REST API. Generated from \`packages/openapi\` routes β do not edit openapi.yml by hand; run \`bun generate:openapi\` instead.++## Errors++Every error answers with the \`ApiError\` body: \`{ success: false, code, message, details?, requestId, timestamp, error }\`. Branch on \`code\` (see \`ApiErrorCode\`), not on \`message\`. Validation failures use \`validation_error\` and list each failing field in \`details\` as \`{ path, message }\`, where \`path\` is dotted and starts with the request part (\`json\`, \`query\`, \`param\`, \`header\`). \`error\` is a deprecated alias of \`message\`. The OpenResponses route (\`POST /api/v1/responses\`) keeps the protocol's \`{ error: { type, message, code, param } }\` body, plus \`requestId\`.++Every response carries an \`${REQUEST_ID_HEADER}\` header.++## Pagination++List endpoints take \`limit\` (1β${MAX_PAGE_LIMIT}, default ${DEFAULT_PAGE_LIMIT}) and an opaque \`cursor\`, and answer \`{ data: { <items>, total?, hasMore, nextCursor } }\`: pass \`nextCursor\` as \`cursor\` to read the next page; it is \`null\` on the last page. New endpoints name the item array \`items\`; older ones keep their own key (e.g. \`agents\`). The older \`page\`/\`pageSize\` and \`offset\` parameters still work but are deprecated.++## Rate limits++Requests authenticated with an API key are limited per key (default 600 per minute). Responses carry \`${RATE_LIMIT_HEADERS.limit}\`, \`${RATE_LIMIT_HEADERS.remaining}\` and \`${RATE_LIMIT_HEADERS.reset}\` (Unix seconds); a refused request answers 429 \`rate_limited\` with \`${RATE_LIMIT_HEADERS.retryAfter}\` in seconds.++## Idempotency++\`POST\` operations accept an \`${IDEMPOTENCY_KEY_HEADER}\` header; see the parameter description.`;/*** Build the OpenAPI 3.1 document from the live Hono app.@@ -55,7 +158,9 @@ export const collectSpecDocument = async (app: GenerateSpecsApp) => {defaultValidationErrorResponse: errorResponse(400),documentation: {components: {- schemas: { ApiError: apiErrorJsonSchema },+ headers: SHARED_HEADERS,+ parameters: { IdempotencyKey: IDEMPOTENCY_KEY_PARAMETER },+ schemas: { ApiError: apiErrorJsonSchema, ApiErrorCode: apiErrorCodeJsonSchema },securitySchemes: {bearerAuth: {bearerFormat: `API Key (${API_KEY_PREFIX}...) or OIDC JWT`,@@ -65,8 +170,7 @@ export const collectSpecDocument = async (app: GenerateSpecsApp) => {},},info: {- description:- 'LobeHub platform REST API. Generated from `packages/openapi` routes β do not edit openapi.yml by hand; run `bun generate:openapi` instead.',+ description: API_DESCRIPTION,title: 'LobeHub API',version: '1.0.0',},@@ -96,7 +200,32 @@ export const collectSpecDocument = async (app: GenerateSpecsApp) => {);if (!hasTypedSuccess) undocumented.push(`${method.toUpperCase()} ${path}`);- for (const response of Object.values(responses)) response.description ??= 'Response';+ // Public operations (health) opt out of auth with `security: []`; only+ // authenticated ones are rate limited and accept an Idempotency-Key.+ const authenticated = !(Array.isArray(op.security) && op.security.length === 0);++ for (const parameter of op.parameters ?? []) {+ if (parameter.schema?.deprecated) parameter.deprecated = true;+ }+ if (authenticated && method === 'post') {+ op.parameters = [+ ...(op.parameters ?? []),+ { $ref: '#/components/parameters/IdempotencyKey' },+ ];+ }++ for (const [status, response] of Object.entries(responses)) {+ response.description ??= 'Response';+ response.headers = {+ ...response.headers,+ [REQUEST_ID_HEADER]: headerRef('RequestId'),+ ...(authenticated ? RATE_LIMIT_RESPONSE_HEADERS : {}),+ ...(status === '429' ? { [RATE_LIMIT_HEADERS.retryAfter]: headerRef('RetryAfter') } : {}),+ ...(authenticated && method === 'post' && status.startsWith('2')+ ? { [IDEMPOTENT_REPLAYED_HEADER]: headerRef('IdempotentReplayed') }+ : {}),+ };+ }}}diff --git a/packages/openapi/src/types/agent.type.ts b/packages/openapi/src/types/agent.type.tsindex 524d58b066e..dffa30fade1 100644--- a/packages/openapi/src/types/agent.type.ts+++ b/packages/openapi/src/types/agent.type.ts@@ -5,6 +5,7 @@ import { z } from 'zod';import { KNOWLEDGE_BASE_VISIBILITY } from '@/database/schemas';+import { pageInfoShape, totalShape } from '../helpers/pagination';import type { PublicAgent, PublicFile, PublicKnowledgeBase } from '../helpers/public-fields';import type { IPaginationQuery, PaginationQueryResponse } from './common.type';import { dateTimeSchema, jsonObjectSchema, PaginationQuerySchema } from './common.type';@@ -295,6 +296,6 @@ export const AgentDetailSchema = AgentSchema.extend({.meta({ id: 'AgentDetail' });export const AgentListSchema = z- .object({ agents: z.array(AgentSchema), total: z.number().int().min(0) })+ .object({ ...pageInfoShape, agents: z.array(AgentSchema), ...totalShape }).strict().meta({ id: 'AgentList' });diff --git a/packages/openapi/src/types/chat-group.type.ts b/packages/openapi/src/types/chat-group.type.tsindex e5eedea705b..f38ec5a4219 100644--- a/packages/openapi/src/types/chat-group.type.ts+++ b/packages/openapi/src/types/chat-group.type.ts@@ -1,5 +1,6 @@import { z } from 'zod';+import { pageInfoShape, totalShape } from '../helpers/pagination';import type { PublicChatGroup, PublicChatGroupMember } from '../helpers/public-fields';import type { IPaginationQuery } from './common.type';import { dateTimeSchema, PaginationQuerySchema } from './common.type';@@ -9,6 +10,8 @@ import { dateTimeSchema, PaginationQuerySchema } from './common.type';export const CHAT_GROUP_MEMBER_ROLES = ['participant', 'assistant'] as const;export const ChatGroupListQuerySchema = PaginationQuerySchema.pick({+ cursor: true,+ limit: true,page: true,pageSize: true,}).extend({@@ -100,6 +103,10 @@ export const ChatGroupSchema = z.meta({ id: 'ChatGroup' });export const ChatGroupListSchema = z- .object({ chatGroups: z.array(ChatGroupSchema), total: z.number().int().min(0) })+ .object({+ ...pageInfoShape,+ chatGroups: z.array(ChatGroupSchema),+ ...totalShape,+ }).strict().meta({ id: 'ChatGroupList' });diff --git a/packages/openapi/src/types/common.type.ts b/packages/openapi/src/types/common.type.tsindex e086c5de01b..4fc14e1e9e3 100644--- a/packages/openapi/src/types/common.type.ts+++ b/packages/openapi/src/types/common.type.ts@@ -1,21 +1,28 @@// Import zod for common schemasimport { z } from 'zod';+import { CursorPaginationQuerySchema, legacyPageQueryShape } from '../helpers/pagination';+// ==================== Common Pagination Query Parameters ====================/*** Common pagination query parameter interface*/export interface IPaginationQuery {+ cursor?: string;keyword?: string;+ limit?: number;page?: number;pageSize?: number;}/**- * Common pagination query parameter Schema+ * Common pagination query parameter Schema: `cursor` + `limit`, plus the+ * deprecated `page`/`pageSize` existing clients still send. See+ * `helpers/pagination.ts` for the list contract.*/export const PaginationQuerySchema = z.object({+ ...CursorPaginationQuerySchema.shape,keyword: z.string().optional()@@ -24,16 +31,7 @@ export const PaginationQuerySchema = z.object({return val.trim();}).refine((val) => val.length <= 100, 'Search keyword cannot exceed 100 characters'),- page: z- .string()- .transform((val) => parseInt(val, 10))- .pipe(z.number().min(1))- .optional(),- pageSize: z- .string()- .transform((val) => parseInt(val, 10))- .pipe(z.number().min(1).max(100))- .optional(),+ ...legacyPageQueryShape,});export type PaginationQueryResponse<T = any> = {diff --git a/packages/openapi/src/types/eval-resource.type.ts b/packages/openapi/src/types/eval-resource.type.tsindex f1ccb3224f2..f7342458b22 100644--- a/packages/openapi/src/types/eval-resource.type.ts+++ b/packages/openapi/src/types/eval-resource.type.ts@@ -1,18 +1,23 @@import { z } from 'zod';+import {+ CursorPaginationQuerySchema,+ legacyOffsetQueryShape,+ legacyPageQueryShape,+ resolvePagination,+} from '../helpers/pagination';+export const EvalIdSchema = z.string().min(1).max(128);export const EvalResourceIdSchema = z.object({ id: EvalIdSchema });export const EvalDatasetPathSchema = z.object({ datasetId: EvalIdSchema });+/** `cursor` + `limit`, plus the deprecated `offset` and `page`/`pageSize`. */export const EvalPaginationSchema = z.object({- limit: z.coerce.number().int().min(1).max(100).optional(),- offset: z.coerce.number().int().min(0).max(1000000).optional(),- page: z.coerce.number().int().min(1).max(1000000).optional(),- pageSize: z.coerce.number().int().min(1).max(100).optional(),-});-export const evalPagination = (query: z.infer<typeof EvalPaginationSchema>) => ({- limit: query.limit ?? query.pageSize ?? 20,- offset: query.offset ?? ((query.page ?? 1) - 1) * (query.limit ?? query.pageSize ?? 20),+ ...CursorPaginationQuerySchema.shape,+ ...legacyOffsetQueryShape,+ ...legacyPageQueryShape,});+export const evalPagination = (query: z.infer<typeof EvalPaginationSchema>) =>+ resolvePagination(query);export const EvalModeSchema = z.enum(['equals','contains',diff --git a/packages/openapi/src/types/eval-response.type.ts b/packages/openapi/src/types/eval-response.type.tsindex a1d80373c7f..d679ade9a5f 100644--- a/packages/openapi/src/types/eval-response.type.ts+++ b/packages/openapi/src/types/eval-response.type.ts@@ -1,5 +1,6 @@import { z } from 'zod';+import { pageInfoShape, totalShape } from '../helpers/pagination';import { dateTimeSchema, jsonObjectSchema } from './common.type';import { AnswerExtractorSchema, EvalMessageSchema, RubricConfigSchema } from './eval-resource.type';@@ -85,7 +86,7 @@ export const EvalBenchmarkSchema = z.meta({ id: 'EvalBenchmark' });export const EvalBenchmarkListSchema = z- .object({ benchmarks: z.array(EvalBenchmarkSchema), total })+ .object({ ...pageInfoShape, benchmarks: z.array(EvalBenchmarkSchema), ...totalShape }).strict();/** `projectPublicEvalDataset` + the dataset's case count (eval-resource.service). */@@ -108,7 +109,7 @@ export const EvalDatasetSchema = z.meta({ id: 'EvalDataset' });export const EvalDatasetListSchema = z- .object({ datasets: z.array(EvalDatasetSchema), total })+ .object({ ...pageInfoShape, datasets: z.array(EvalDatasetSchema), ...totalShape }).strict();/** A history message restored before the case input (`ImportedMessage`). */@@ -153,7 +154,7 @@ export const EvalTestCaseSchema = z.meta({ id: 'EvalTestCase' });export const EvalTestCaseListSchema = z- .object({ testCases: z.array(EvalTestCaseSchema), total })+ .object({ ...pageInfoShape, testCases: z.array(EvalTestCaseSchema), ...totalShape }).strict();// ---------- Runs ----------@@ -228,7 +229,9 @@ export const EvalRunSchema = z.strict().meta({ id: 'EvalRun' });-export const EvalRunListSchema = z.object({ runs: z.array(EvalRunSchema), total }).strict();+export const EvalRunListSchema = z+ .object({ ...pageInfoShape, runs: z.array(EvalRunSchema), ...totalShape })+ .strict();export const EvalRubricScoreSchema = z.object({@@ -360,7 +363,12 @@ export const EvalRunResultSchema = z.meta({ id: 'EvalRunResult' });export const EvalRunResultListSchema = z- .object({ results: z.array(EvalRunResultSchema), runId: z.string(), total })+ .object({+ ...pageInfoShape,+ results: z.array(EvalRunResultSchema),+ runId: z.string(),+ ...totalShape,+ }).strict();/** One case topic of a run in `GET /runs/{id}/topics`. */@@ -380,7 +388,12 @@ export const EvalRunTopicSchema = z.meta({ id: 'EvalRunTopic' });export const EvalRunTopicListSchema = z- .object({ runId: z.string(), topics: z.array(EvalRunTopicSchema), total })+ .object({+ ...pageInfoShape,+ runId: z.string(),+ topics: z.array(EvalRunTopicSchema),+ ...totalShape,+ }).strict();// ---------- External worker lifecycle ----------diff --git a/packages/openapi/src/types/file.type.ts b/packages/openapi/src/types/file.type.tsindex 3c3661e4a29..0404562b3d7 100644--- a/packages/openapi/src/types/file.type.ts+++ b/packages/openapi/src/types/file.type.ts@@ -1,5 +1,6 @@import { z } from 'zod';+import { pageInfoShape, totalShape } from '../helpers/pagination';import type { PUBLIC_FILE_FIELDS, PublicFile, PublicKnowledgeBase } from '../helpers/public-fields';import type { IPaginationQuery, PaginationQueryResponse } from './common.type';import { dateTimeSchema, jsonObjectSchema, PaginationQuerySchema } from './common.type';@@ -477,9 +478,10 @@ export const FileListItemSchema = FileSchema.extend({export const FileListResponseSchema = z.object({+ ...pageInfoShape,/** Files sharing the same content hash are listed once. */files: z.array(FileListItemSchema),- total: z.number().int().min(0),+ ...totalShape,/** Sum of the matched files' sizes in bytes, as a decimal string. */totalSize: z.string(),})diff --git a/packages/openapi/src/types/goal.type.test.ts b/packages/openapi/src/types/goal.type.test.tsindex 173318c5fa8..e8499df5c02 100644--- a/packages/openapi/src/types/goal.type.test.ts+++ b/packages/openapi/src/types/goal.type.test.ts@@ -8,6 +8,9 @@ import {GoalSupervisionSchema,} from './goal.type';+// Services return the page's rows and total; the controller adds `hasMore`/`nextCursor`.+const SERVICE_PAGE_FIELDS = { hasMore: true, nextCursor: true } as const;+/** What `c.json` does to a payload: Dates become ISO strings, `undefined` keys vanish. */// A JSON round trip on purpose: `structuredClone` would keep the Dates the wire turns into strings.// eslint-disable-next-line unicorn/prefer-structured-clone@@ -182,7 +185,7 @@ describe('goal response schemas', () => {total: 1,};- expect(() => GoalListResponseSchema.parse(wire(list))).not.toThrow();+ expect(() => GoalListResponseSchema.omit(SERVICE_PAGE_FIELDS).parse(wire(list))).not.toThrow();});it('accepts supervision with and without a ledger', () => {diff --git a/packages/openapi/src/types/goal.type.ts b/packages/openapi/src/types/goal.type.tsindex f3e0ed34dcf..f31d05fbd78 100644--- a/packages/openapi/src/types/goal.type.ts+++ b/packages/openapi/src/types/goal.type.ts@@ -39,6 +39,12 @@ import { goalStatuses, goalSubjectTypes } from '@/const/goal';import type { GoalListItem } from '@/database/models/goal';import type { GoalItem as GoalRow } from '@/database/schemas';+import {+ CursorPaginationQuerySchema,+ legacyOffsetQueryShape,+ pageInfoShape,+ totalShape,+} from '../helpers/pagination';import { dateTimeSchema, jsonObjectSchema } from './common.type';// ==================== Path / Query Schemas ====================@@ -55,8 +61,8 @@ export type GoalIdParam = z.infer<typeof GoalIdParamSchema>;*/export const GoalListQuerySchema = z.object({agentId: z.string().optional(),- limit: z.coerce.number().int().min(1).max(100).optional(),- offset: z.coerce.number().int().min(0).optional(),+ ...CursorPaginationQuerySchema.shape,+ ...legacyOffsetQueryShape,projectId: z.string().optional(),statuses: z.string()@@ -310,7 +316,7 @@ export const GoalListItemSchema = z.meta({ id: 'GoalListItem' });export const GoalListResponseSchema = z- .object({ goals: z.array(GoalListItemSchema), total: z.number().int() })+ .object({ ...pageInfoShape, goals: z.array(GoalListItemSchema), ...totalShape }).strict().meta({ id: 'GoalList' });diff --git a/packages/openapi/src/types/knowledge-base.type.ts b/packages/openapi/src/types/knowledge-base.type.tsindex a88e726ded0..ed7ca41e788 100644--- a/packages/openapi/src/types/knowledge-base.type.ts+++ b/packages/openapi/src/types/knowledge-base.type.ts@@ -1,5 +1,6 @@import { z } from 'zod';+import { pageInfoShape, totalShape } from '../helpers/pagination';import type { PUBLIC_KNOWLEDGE_BASE_FIELDS, PublicKnowledgeBase } from '../helpers/public-fields';import type { IPaginationQuery, PaginationQueryResponse } from './common.type';import { dateTimeSchema, jsonObjectSchema, PaginationQuerySchema } from './common.type';@@ -193,8 +194,9 @@ export const KnowledgeBaseListItemSchema = KnowledgeBaseSchema.extend({export const KnowledgeBaseListResponseSchema = z.object({+ ...pageInfoShape,knowledgeBases: z.array(KnowledgeBaseListItemSchema),- total: z.number().int().min(0),+ ...totalShape,}).strict().meta({ id: 'KnowledgeBaseList' });diff --git a/packages/openapi/src/types/message.type.ts b/packages/openapi/src/types/message.type.tsindex 0d84a1c1ede..4848153a4c5 100644--- a/packages/openapi/src/types/message.type.ts+++ b/packages/openapi/src/types/message.type.ts@@ -3,6 +3,7 @@ import { z } from 'zod';import { files } from '@/database/schemas/file';import { SESSION_TYPE } from '@/database/schemas/session';+import { pageInfoShape, totalShape } from '../helpers/pagination';import type {PublicFile,PublicMessage,@@ -316,7 +317,7 @@ export const MessageSchema = z.meta({ id: 'Message' });export const MessageListSchema = z- .object({ messages: z.array(MessageSchema), total: z.number().int().min(0) })+ .object({ ...pageInfoShape, messages: z.array(MessageSchema), ...totalShape }).strict();export const MessageCountSchema = z.object({ count: z.number().int().min(0) }).strict();diff --git a/packages/openapi/src/types/model.type.ts b/packages/openapi/src/types/model.type.tsindex 016477f0311..ae4d04ecde4 100644--- a/packages/openapi/src/types/model.type.ts+++ b/packages/openapi/src/types/model.type.ts@@ -1,5 +1,6 @@import { z } from 'zod';+import { pageInfoShape, totalShape } from '../helpers/pagination';import type { PublicModel } from '../helpers/public-fields';import type { IPaginationQuery, PaginationQueryResponse } from './common.type';import { dateTimeSchema, jsonObjectSchema, PaginationQuerySchema } from './common.type';@@ -126,5 +127,5 @@ export const ModelSchema = z.meta({ id: 'Model' });export const ModelListSchema = z- .object({ models: z.array(ModelSchema), total: z.number().int().min(0) })+ .object({ ...pageInfoShape, models: z.array(ModelSchema), ...totalShape }).strict();diff --git a/packages/openapi/src/types/permission.type.ts b/packages/openapi/src/types/permission.type.tsindex 72044aa08c9..e5901ec6306 100644--- a/packages/openapi/src/types/permission.type.ts+++ b/packages/openapi/src/types/permission.type.ts@@ -1,5 +1,6 @@import { z } from 'zod';+import { pageInfoShape, totalShape } from '../helpers/pagination';import type { PublicPermission } from '../helpers/public-fields';import type { IPaginationQuery, PaginationQueryResponse } from './common.type';import { dateTimeSchema, PaginationQuerySchema } from './common.type';@@ -81,6 +82,10 @@ export const PermissionSchema = z.meta({ id: 'Permission' });export const PermissionListSchema = z- .object({ permissions: z.array(PermissionSchema), total: z.number().int().min(0) })+ .object({+ ...pageInfoShape,+ permissions: z.array(PermissionSchema),+ ...totalShape,+ }).strict().meta({ id: 'PermissionList' });diff --git a/packages/openapi/src/types/plugin.type.ts b/packages/openapi/src/types/plugin.type.tsindex a9bad0efc44..4ab838d94bc 100644--- a/packages/openapi/src/types/plugin.type.ts+++ b/packages/openapi/src/types/plugin.type.ts@@ -1,5 +1,6 @@import { z } from 'zod';+import { pageInfoShape, totalShape } from '../helpers/pagination';import { dateTimeSchema } from './common.type';// ==================== Response Schemas ====================@@ -20,6 +21,10 @@ export const InstalledPluginSchema = z.meta({ id: 'InstalledPlugin' });export const InstalledPluginListSchema = z- .object({ plugins: z.array(InstalledPluginSchema), total: z.number().int().min(0) })+ .object({+ ...pageInfoShape,+ plugins: z.array(InstalledPluginSchema),+ ...totalShape,+ }).strict().meta({ id: 'InstalledPluginList' });diff --git a/packages/openapi/src/types/provider.type.ts b/packages/openapi/src/types/provider.type.tsindex 5ee523f79d1..0c85543a87e 100644--- a/packages/openapi/src/types/provider.type.ts+++ b/packages/openapi/src/types/provider.type.ts@@ -2,6 +2,7 @@ import { z } from 'zod';import type { AiProviderConfig, AiProviderSettings } from '@/types/aiProvider';+import { pageInfoShape, totalShape } from '../helpers/pagination';import type { PublicProvider } from '../helpers/public-fields';import type { IPaginationQuery, PaginationQueryResponse } from './common.type';import { dateTimeSchema, jsonObjectSchema, PaginationQuerySchema } from './common.type';@@ -137,5 +138,5 @@ export const ProviderSchema = z.meta({ id: 'Provider' });export const ProviderListSchema = z- .object({ providers: z.array(ProviderSchema), total: z.number().int().min(0) })+ .object({ ...pageInfoShape, providers: z.array(ProviderSchema), ...totalShape }).strict();diff --git a/packages/openapi/src/types/role.type.ts b/packages/openapi/src/types/role.type.tsindex 5b830c297f2..d69e4c1527c 100644--- a/packages/openapi/src/types/role.type.ts+++ b/packages/openapi/src/types/role.type.ts@@ -1,5 +1,6 @@import { z } from 'zod';+import { pageInfoShape, totalShape } from '../helpers/pagination';import type { PublicPermission, PublicRole } from '../helpers/public-fields';import type { IPaginationQuery, PaginationQueryResponse } from './common.type';import { dateTimeSchema, PaginationQuerySchema } from './common.type';@@ -123,7 +124,7 @@ export const RoleSchema = z.meta({ id: 'Role' });export const RoleListSchema = z- .object({ roles: z.array(RoleSchema), total: z.number().int().min(0) })+ .object({ ...pageInfoShape, roles: z.array(RoleSchema), ...totalShape }).strict().meta({ id: 'RoleList' });@@ -141,7 +142,11 @@ export const RolePermissionSchema = z.meta({ id: 'RolePermission' });export const RolePermissionListSchema = z- .object({ permissions: z.array(RolePermissionSchema), total: z.number().int().min(0) })+ .object({+ ...pageInfoShape,+ permissions: z.array(RolePermissionSchema),+ ...totalShape,+ }).strict().meta({ id: 'RolePermissionList' });diff --git a/packages/openapi/src/types/task.type.test.ts b/packages/openapi/src/types/task.type.test.tsindex 1cf92021206..380441d0656 100644--- a/packages/openapi/src/types/task.type.test.ts+++ b/packages/openapi/src/types/task.type.test.ts@@ -9,6 +9,9 @@ import {UpdateTaskRequestSchema,} from './task.type';+// Services return the page's rows and total; the controller adds `hasMore`/`nextCursor`.+const SERVICE_PAGE_FIELDS = { hasMore: true, nextCursor: true } as const;+/*** A schedule the dispatcher cannot evaluate must be refused at the boundary:* `TaskService.createTask` assumes the caller already validated it, so an@@ -127,7 +130,7 @@ describe('task response schemas', () => {total: 1,};- expect(() => TaskListResponseSchema.parse(wire(page))).not.toThrow();+ expect(() => TaskListResponseSchema.omit(SERVICE_PAGE_FIELDS).parse(wire(page))).not.toThrow();});it('accepts a detail with nested subtasks and a topic activity', () => {diff --git a/packages/openapi/src/types/task.type.ts b/packages/openapi/src/types/task.type.tsindex 789e7384b07..044bb4b3793 100644--- a/packages/openapi/src/types/task.type.ts+++ b/packages/openapi/src/types/task.type.ts@@ -21,6 +21,12 @@ import {scheduleTimezoneSchema,} from '@/server/services/task/scheduleValidation';+import {+ CursorPaginationQuerySchema,+ legacyOffsetQueryShape,+ pageInfoShape,+ totalShape,+} from '../helpers/pagination';import { dateTimeSchema, jsonObjectSchema } from './common.type';export const TaskIdParamSchema = z.object({@@ -31,8 +37,8 @@ export type TaskIdParam = z.infer<typeof TaskIdParamSchema>;/** Query strings carry lists as comma-separated text: `?statuses=running,paused`. */export const TaskListQuerySchema = z.object({assigneeAgentId: z.string().optional(),- limit: z.coerce.number().int().min(1).max(100).optional(),- offset: z.coerce.number().int().min(0).optional(),+ ...CursorPaginationQuerySchema.shape,+ ...legacyOffsetQueryShape,projectId: z.string().optional(),statuses: z.string()@@ -210,7 +216,7 @@ export const TaskListItemSchema = z.meta({ id: 'TaskListItem' });export const TaskListResponseSchema = z- .object({ tasks: z.array(TaskListItemSchema), total: z.number().int() })+ .object({ ...pageInfoShape, tasks: z.array(TaskListItemSchema), ...totalShape }).strict().meta({ id: 'TaskList' });diff --git a/packages/openapi/src/types/topic.type.ts b/packages/openapi/src/types/topic.type.tsindex fb9be75ec05..ea424789059 100644--- a/packages/openapi/src/types/topic.type.ts+++ b/packages/openapi/src/types/topic.type.ts@@ -3,6 +3,7 @@ import { z } from 'zod';import { THREAD_STATUS, THREAD_TYPE, topics } from '@/database/schemas/topic';+import { pageInfoShape, totalShape } from '../helpers/pagination';import type { PublicTopic, PublicUser } from '../helpers/public-fields';import type { IPaginationQuery, PaginationQueryResponse } from './common.type';import { dateTimeSchema, jsonObjectSchema, PaginationQuerySchema } from './common.type';@@ -158,7 +159,7 @@ export const TopicSchema = TopicSummarySchema.extend({.meta({ id: 'Topic' });export const TopicListSchema = z- .object({ topics: z.array(TopicSchema), total: z.number().int().min(0) })+ .object({ ...pageInfoShape, topics: z.array(TopicSchema), ...totalShape }).strict();export const TopicThreadSchema = z@@ -176,5 +177,5 @@ export const TopicThreadSchema = z.meta({ id: 'TopicThread' });export const TopicThreadListSchema = z- .object({ threads: z.array(TopicThreadSchema), total: z.number().int().min(0) })+ .object({ ...pageInfoShape, threads: z.array(TopicThreadSchema), ...totalShape }).strict();diff --git a/packages/openapi/src/types/user.type.ts b/packages/openapi/src/types/user.type.tsindex f8713175190..93753e7f797 100644--- a/packages/openapi/src/types/user.type.ts+++ b/packages/openapi/src/types/user.type.ts@@ -2,6 +2,7 @@ import { z } from 'zod';import type { UserRoleItem } from '@/database/schemas';+import { pageInfoShape, totalShape } from '../helpers/pagination';import type { PublicRole, PublicUser } from '../helpers/public-fields';import type { IPaginationQuery, PaginationQueryResponse } from './common.type';import { dateTimeSchema } from './common.type';@@ -219,7 +220,7 @@ export const UserIdentitySchema = zexport const CurrentUserSchema = z.union([UserSchema, UserIdentitySchema]);export const UserListSchema = z- .object({ total: z.number().int().min(0), users: z.array(UserSchema) })+ .object({ ...pageInfoShape, ...totalShape, users: z.array(UserSchema) }).strict().meta({ id: 'UserList' });diff --git a/packages/sdk/src/generated/index.ts b/packages/sdk/src/generated/index.tsindex 6cc9a7b6f00..9ef48128936 100644--- a/packages/sdk/src/generated/index.ts+++ b/packages/sdk/src/generated/index.ts@@ -1,4 +1,4 @@// This file is auto-generated by @hey-api/openapi-tsexport { AgentGroups, Agents, ApiKeys, Audio, Chat, ChatGroups, Eval, Files, Goals, Health, Im, KnowledgeBases, LobeHub, McpServers, Memories, Messages, MessageTranslations, Models, Notifications, type Options, Permissions, Plugins, Providers, PushTokens, Responses, Roles, Signals, Tasks, Topics, Usage as Usage2, Users } from './sdk.gen';-export type { Agent, AgentAccount, AgentAccountCapabilities, AgentAccountList, AgentDetail, AgentFile, AgentGroup, AgentKnowledgeBase, AgentList, AgentPlugin, AgentSignalEmission, AgentSignalReceipt, AgentSignalReceiptList, ApiError, ApiKey, AsyncTaskError, BatchFileUploadResult, BatchGetFilesResult, ChatGenerateReplyResponse, ChatGroup, ChatGroupList, ChatGroupMember, ChatResponse, ChatTranslateResponse, ClientOptions, CreatedAgentGroup, CreatedApiKey, DeleteApiV1AgentGroupsByIdData, DeleteApiV1AgentGroupsByIdError, DeleteApiV1AgentGroupsByIdErrors, DeleteApiV1AgentGroupsByIdResponse, DeleteApiV1AgentGroupsByIdResponses, DeleteApiV1AgentsByIdAccountsByAccountIdData, DeleteApiV1AgentsByIdAccountsByAccountIdError, DeleteApiV1AgentsByIdAccountsByAccountIdErrors, DeleteApiV1AgentsByIdAccountsByAccountIdResponse, DeleteApiV1AgentsByIdAccountsByAccountIdResponses, DeleteApiV1AgentsByIdData, DeleteApiV1AgentsByIdError, DeleteApiV1AgentsByIdErrors, DeleteApiV1AgentsByIdResponse, DeleteApiV1AgentsByIdResponses, DeleteApiV1ApiKeysByIdData, DeleteApiV1ApiKeysByIdError, DeleteApiV1ApiKeysByIdErrors, DeleteApiV1ApiKeysByIdResponse, DeleteApiV1ApiKeysByIdResponses, DeleteApiV1ChatGroupsByIdData, DeleteApiV1ChatGroupsByIdError, DeleteApiV1ChatGroupsByIdErrors, DeleteApiV1ChatGroupsByIdMembersData, DeleteApiV1ChatGroupsByIdMembersError, DeleteApiV1ChatGroupsByIdMembersErrors, DeleteApiV1ChatGroupsByIdMembersResponse, DeleteApiV1ChatGroupsByIdMembersResponses, DeleteApiV1ChatGroupsByIdResponse, DeleteApiV1ChatGroupsByIdResponses, DeleteApiV1EvalBenchmarksByIdData, DeleteApiV1EvalBenchmarksByIdError, DeleteApiV1EvalBenchmarksByIdErrors, DeleteApiV1EvalBenchmarksByIdResponse, DeleteApiV1EvalBenchmarksByIdResponses, DeleteApiV1EvalDatasetsByIdData, DeleteApiV1EvalDatasetsByIdError, DeleteApiV1EvalDatasetsByIdErrors, DeleteApiV1EvalDatasetsByIdResponse, DeleteApiV1EvalDatasetsByIdResponses, DeleteApiV1EvalTestCasesByIdData, DeleteApiV1EvalTestCasesByIdError, DeleteApiV1EvalTestCasesByIdErrors, DeleteApiV1EvalTestCasesByIdResponse, DeleteApiV1EvalTestCasesByIdResponses, DeleteApiV1FilesByIdData, DeleteApiV1FilesByIdError, DeleteApiV1FilesByIdErrors, DeleteApiV1FilesByIdResponse, DeleteApiV1FilesByIdResponses, DeleteApiV1GoalsByIdData, DeleteApiV1GoalsByIdError, DeleteApiV1GoalsByIdErrors, DeleteApiV1GoalsByIdResponse, DeleteApiV1GoalsByIdResponses, DeleteApiV1KnowledgeBasesByIdData, DeleteApiV1KnowledgeBasesByIdError, DeleteApiV1KnowledgeBasesByIdErrors, DeleteApiV1KnowledgeBasesByIdFilesBatchData, DeleteApiV1KnowledgeBasesByIdFilesBatchError, DeleteApiV1KnowledgeBasesByIdFilesBatchErrors, DeleteApiV1KnowledgeBasesByIdFilesBatchResponse, DeleteApiV1KnowledgeBasesByIdFilesBatchResponses, DeleteApiV1KnowledgeBasesByIdResponse, DeleteApiV1KnowledgeBasesByIdResponses, DeleteApiV1McpServersByIdData, DeleteApiV1McpServersByIdError, DeleteApiV1McpServersByIdErrors, DeleteApiV1McpServersByIdResponse, DeleteApiV1McpServersByIdResponses, DeleteApiV1MemoriesByCategoryByIdData, DeleteApiV1MemoriesByCategoryByIdError, DeleteApiV1MemoriesByCategoryByIdErrors, DeleteApiV1MemoriesByCategoryByIdResponse, DeleteApiV1MemoriesByCategoryByIdResponses, DeleteApiV1MemoriesData, DeleteApiV1MemoriesError, DeleteApiV1MemoriesErrors, DeleteApiV1MemoriesResponse, DeleteApiV1MemoriesResponses, DeleteApiV1MessagesByIdData, DeleteApiV1MessagesByIdError, DeleteApiV1MessagesByIdErrors, DeleteApiV1MessagesByIdResponse, DeleteApiV1MessagesByIdResponses, DeleteApiV1MessagesData, DeleteApiV1MessagesError, DeleteApiV1MessagesErrors, DeleteApiV1MessagesResponse, DeleteApiV1MessagesResponses, DeleteApiV1MessageTranslationsByMessageIdData, DeleteApiV1MessageTranslationsByMessageIdError, DeleteApiV1MessageTranslationsByMessageIdErrors, DeleteApiV1MessageTranslationsByMessageIdResponse, DeleteApiV1MessageTranslationsByMessageIdResponses, DeleteApiV1PermissionsByIdData, DeleteApiV1PermissionsByIdError, DeleteApiV1PermissionsByIdErrors, DeleteApiV1PermissionsByIdResponse, DeleteApiV1PermissionsByIdResponses, DeleteApiV1ProvidersByIdData, DeleteApiV1ProvidersByIdError, DeleteApiV1ProvidersByIdErrors, DeleteApiV1ProvidersByIdResponse, DeleteApiV1ProvidersByIdResponses, DeleteApiV1PushTokensByDeviceIdData, DeleteApiV1PushTokensByDeviceIdError, DeleteApiV1PushTokensByDeviceIdErrors, DeleteApiV1PushTokensByDeviceIdResponse, DeleteApiV1PushTokensByDeviceIdResponses, DeleteApiV1RolesByIdData, DeleteApiV1RolesByIdError, DeleteApiV1RolesByIdErrors, DeleteApiV1RolesByIdPermissionsData, DeleteApiV1RolesByIdPermissionsError, DeleteApiV1RolesByIdPermissionsErrors, DeleteApiV1RolesByIdPermissionsResponse, DeleteApiV1RolesByIdPermissionsResponses, DeleteApiV1RolesByIdResponse, DeleteApiV1RolesByIdResponses, DeleteApiV1TasksByIdData, DeleteApiV1TasksByIdError, DeleteApiV1TasksByIdErrors, DeleteApiV1TasksByIdResponse, DeleteApiV1TasksByIdResponses, DeleteApiV1TopicsByIdData, DeleteApiV1TopicsByIdError, DeleteApiV1TopicsByIdErrors, DeleteApiV1TopicsByIdResponse, DeleteApiV1TopicsByIdResponses, DeleteApiV1UsersByIdData, DeleteApiV1UsersByIdError, DeleteApiV1UsersByIdErrors, DeleteApiV1UsersByIdResponse, DeleteApiV1UsersByIdResponses, DeleteApiV1UsersByIdRolesData, DeleteApiV1UsersByIdRolesError, DeleteApiV1UsersByIdRolesErrors, DeleteApiV1UsersByIdRolesResponse, DeleteApiV1UsersByIdRolesResponses, DeletedResource, DeletedResources, EvalBatchReportResult, EvalBenchmark, EvalBenchmarkRubric, EvalCaseResult, EvalDataset, EvalReportReceipt, EvalReportResult, EvalRetryErrors, EvalRubricScore, EvalRun, EvalRunMetrics, EvalRunResult, EvalRunTopic, EvalStoredResult, EvalTestCase, EvalThreadResult, File, FileAsyncTask, FileChunkStatus, FileChunkTask, FileDetail, FileKnowledgeBaseRef, FileList, FileListItem, FileParseResult, FileUrl, FileUser, GetApiV1AgentGroupsByIdData, GetApiV1AgentGroupsByIdError, GetApiV1AgentGroupsByIdErrors, GetApiV1AgentGroupsByIdResponse, GetApiV1AgentGroupsByIdResponses, GetApiV1AgentGroupsData, GetApiV1AgentGroupsError, GetApiV1AgentGroupsErrors, GetApiV1AgentGroupsResponse, GetApiV1AgentGroupsResponses, GetApiV1AgentsByIdAccountsByAccountIdData, GetApiV1AgentsByIdAccountsByAccountIdError, GetApiV1AgentsByIdAccountsByAccountIdErrors, GetApiV1AgentsByIdAccountsByAccountIdResponse, GetApiV1AgentsByIdAccountsByAccountIdResponses, GetApiV1AgentsByIdAccountsData, GetApiV1AgentsByIdAccountsError, GetApiV1AgentsByIdAccountsErrors, GetApiV1AgentsByIdAccountsResponse, GetApiV1AgentsByIdAccountsResponses, GetApiV1AgentsByIdData, GetApiV1AgentsByIdError, GetApiV1AgentsByIdErrors, GetApiV1AgentsByIdResponse, GetApiV1AgentsByIdResponses, GetApiV1AgentsData, GetApiV1AgentsError, GetApiV1AgentsErrors, GetApiV1AgentsResponse, GetApiV1AgentsResponses, GetApiV1ApiKeysByIdData, GetApiV1ApiKeysByIdError, GetApiV1ApiKeysByIdErrors, GetApiV1ApiKeysByIdResponse, GetApiV1ApiKeysByIdResponses, GetApiV1ApiKeysData, GetApiV1ApiKeysError, GetApiV1ApiKeysErrors, GetApiV1ApiKeysResponse, GetApiV1ApiKeysResponses, GetApiV1ChatGroupsByIdData, GetApiV1ChatGroupsByIdError, GetApiV1ChatGroupsByIdErrors, GetApiV1ChatGroupsByIdResponse, GetApiV1ChatGroupsByIdResponses, GetApiV1ChatGroupsData, GetApiV1ChatGroupsError, GetApiV1ChatGroupsErrors, GetApiV1ChatGroupsResponse, GetApiV1ChatGroupsResponses, GetApiV1EvalBenchmarksByIdData, GetApiV1EvalBenchmarksByIdError, GetApiV1EvalBenchmarksByIdErrors, GetApiV1EvalBenchmarksByIdResponse, GetApiV1EvalBenchmarksByIdResponses, GetApiV1EvalBenchmarksData, GetApiV1EvalBenchmarksError, GetApiV1EvalBenchmarksErrors, GetApiV1EvalBenchmarksResponse, GetApiV1EvalBenchmarksResponses, GetApiV1EvalDatasetsByDatasetIdTestCasesData, GetApiV1EvalDatasetsByDatasetIdTestCasesError, GetApiV1EvalDatasetsByDatasetIdTestCasesErrors, GetApiV1EvalDatasetsByDatasetIdTestCasesResponse, GetApiV1EvalDatasetsByDatasetIdTestCasesResponses, GetApiV1EvalDatasetsByIdData, GetApiV1EvalDatasetsByIdError, GetApiV1EvalDatasetsByIdErrors, GetApiV1EvalDatasetsByIdResponse, GetApiV1EvalDatasetsByIdResponses, GetApiV1EvalDatasetsData, GetApiV1EvalDatasetsError, GetApiV1EvalDatasetsErrors, GetApiV1EvalDatasetsResponse, GetApiV1EvalDatasetsResponses, GetApiV1EvalRunsByIdData, GetApiV1EvalRunsByIdError, GetApiV1EvalRunsByIdErrors, GetApiV1EvalRunsByIdResponse, GetApiV1EvalRunsByIdResponses, GetApiV1EvalRunsByIdResultsData, GetApiV1EvalRunsByIdResultsError, GetApiV1EvalRunsByIdResultsErrors, GetApiV1EvalRunsByIdResultsResponse, GetApiV1EvalRunsByIdResultsResponses, GetApiV1EvalRunsByIdTopicsData, GetApiV1EvalRunsByIdTopicsError, GetApiV1EvalRunsByIdTopicsErrors, GetApiV1EvalRunsByIdTopicsResponse, GetApiV1EvalRunsByIdTopicsResponses, GetApiV1EvalRunsData, GetApiV1EvalRunsError, GetApiV1EvalRunsErrors, GetApiV1EvalRunsResponse, GetApiV1EvalRunsResponses, GetApiV1EvalTestCasesByIdData, GetApiV1EvalTestCasesByIdError, GetApiV1EvalTestCasesByIdErrors, GetApiV1EvalTestCasesByIdResponse, GetApiV1EvalTestCasesByIdResponses, GetApiV1FilesByIdChunksData, GetApiV1FilesByIdChunksError, GetApiV1FilesByIdChunksErrors, GetApiV1FilesByIdChunksResponse, GetApiV1FilesByIdChunksResponses, GetApiV1FilesByIdData, GetApiV1FilesByIdError, GetApiV1FilesByIdErrors, GetApiV1FilesByIdResponse, GetApiV1FilesByIdResponses, GetApiV1FilesByIdUrlData, GetApiV1FilesByIdUrlError, GetApiV1FilesByIdUrlErrors, GetApiV1FilesByIdUrlResponse, GetApiV1FilesByIdUrlResponses, GetApiV1FilesData, GetApiV1FilesError, GetApiV1FilesErrors, GetApiV1FilesResponse, GetApiV1FilesResponses, GetApiV1GoalsByIdData, GetApiV1GoalsByIdError, GetApiV1GoalsByIdErrors, GetApiV1GoalsByIdResponse, GetApiV1GoalsByIdResponses, GetApiV1GoalsByIdSupervisionData, GetApiV1GoalsByIdSupervisionError, GetApiV1GoalsByIdSupervisionErrors, GetApiV1GoalsByIdSupervisionResponse, GetApiV1GoalsByIdSupervisionResponses, GetApiV1GoalsData, GetApiV1GoalsError, GetApiV1GoalsErrors, GetApiV1GoalsResponse, GetApiV1GoalsResponses, GetApiV1HealthData, GetApiV1HealthResponse, GetApiV1HealthResponses, GetApiV1ImTopicsByTopicIdSyncData, GetApiV1ImTopicsByTopicIdSyncError, GetApiV1ImTopicsByTopicIdSyncErrors, GetApiV1ImTopicsByTopicIdSyncResponse, GetApiV1ImTopicsByTopicIdSyncResponses, GetApiV1KnowledgeBasesByIdData, GetApiV1KnowledgeBasesByIdError, GetApiV1KnowledgeBasesByIdErrors, GetApiV1KnowledgeBasesByIdFilesData, GetApiV1KnowledgeBasesByIdFilesError, GetApiV1KnowledgeBasesByIdFilesErrors, GetApiV1KnowledgeBasesByIdFilesResponse, GetApiV1KnowledgeBasesByIdFilesResponses, GetApiV1KnowledgeBasesByIdResponse, GetApiV1KnowledgeBasesByIdResponses, GetApiV1KnowledgeBasesData, GetApiV1KnowledgeBasesError, GetApiV1KnowledgeBasesErrors, GetApiV1KnowledgeBasesResponse, GetApiV1KnowledgeBasesResponses, GetApiV1McpServersByIdData, GetApiV1McpServersByIdError, GetApiV1McpServersByIdErrors, GetApiV1McpServersByIdResponse, GetApiV1McpServersByIdResponses, GetApiV1McpServersData, GetApiV1McpServersError, GetApiV1McpServersErrors, GetApiV1McpServersResponse, GetApiV1McpServersResponses, GetApiV1MemoriesByCategoryData, GetApiV1MemoriesByCategoryError, GetApiV1MemoriesByCategoryErrors, GetApiV1MemoriesByCategoryResponse, GetApiV1MemoriesByCategoryResponses, GetApiV1MemoriesPersonaData, GetApiV1MemoriesPersonaError, GetApiV1MemoriesPersonaErrors, GetApiV1MemoriesPersonaResponse, GetApiV1MemoriesPersonaResponses, GetApiV1MemoriesPersonaVersionsData, GetApiV1MemoriesPersonaVersionsError, GetApiV1MemoriesPersonaVersionsErrors, GetApiV1MemoriesPersonaVersionsResponse, GetApiV1MemoriesPersonaVersionsResponses, GetApiV1MessagesByIdData, GetApiV1MessagesByIdError, GetApiV1MessagesByIdErrors, GetApiV1MessagesByIdResponse, GetApiV1MessagesByIdResponses, GetApiV1MessagesCountData, GetApiV1MessagesCountError, GetApiV1MessagesCountErrors, GetApiV1MessagesCountResponse, GetApiV1MessagesCountResponses, GetApiV1MessagesData, GetApiV1MessagesError, GetApiV1MessagesErrors, GetApiV1MessagesResponse, GetApiV1MessagesResponses, GetApiV1MessageTranslationsByMessageIdData, GetApiV1MessageTranslationsByMessageIdError, GetApiV1MessageTranslationsByMessageIdErrors, GetApiV1MessageTranslationsByMessageIdResponse, GetApiV1MessageTranslationsByMessageIdResponses, GetApiV1ModelsByProviderIdByModelIdData, GetApiV1ModelsByProviderIdByModelIdError, GetApiV1ModelsByProviderIdByModelIdErrors, GetApiV1ModelsByProviderIdByModelIdResponse, GetApiV1ModelsByProviderIdByModelIdResponses, GetApiV1ModelsData, GetApiV1ModelsError, GetApiV1ModelsErrors, GetApiV1ModelsResponse, GetApiV1ModelsResponses, GetApiV1NotificationsCountsData, GetApiV1NotificationsCountsError, GetApiV1NotificationsCountsErrors, GetApiV1NotificationsCountsResponse, GetApiV1NotificationsCountsResponses, GetApiV1NotificationsData, GetApiV1NotificationsError, GetApiV1NotificationsErrors, GetApiV1NotificationsResponse, GetApiV1NotificationsResponses, GetApiV1NotificationsSettingsData, GetApiV1NotificationsSettingsError, GetApiV1NotificationsSettingsErrors, GetApiV1NotificationsSettingsResponse, GetApiV1NotificationsSettingsResponses, GetApiV1NotificationsUnreadCountData, GetApiV1NotificationsUnreadCountError, GetApiV1NotificationsUnreadCountErrors, GetApiV1NotificationsUnreadCountResponse, GetApiV1NotificationsUnreadCountResponses, GetApiV1PermissionsByIdData, GetApiV1PermissionsByIdError, GetApiV1PermissionsByIdErrors, GetApiV1PermissionsByIdResponse, GetApiV1PermissionsByIdResponses, GetApiV1PermissionsData, GetApiV1PermissionsError, GetApiV1PermissionsErrors, GetApiV1PermissionsResponse, GetApiV1PermissionsResponses, GetApiV1PluginsData, GetApiV1PluginsError, GetApiV1PluginsErrors, GetApiV1PluginsResponse, GetApiV1PluginsResponses, GetApiV1ProvidersByIdData, GetApiV1ProvidersByIdError, GetApiV1ProvidersByIdErrors, GetApiV1ProvidersByIdResponse, GetApiV1ProvidersByIdResponses, GetApiV1ProvidersData, GetApiV1ProvidersError, GetApiV1ProvidersErrors, GetApiV1ProvidersResponse, GetApiV1ProvidersResponses, GetApiV1RolesByIdData, GetApiV1RolesByIdError, GetApiV1RolesByIdErrors, GetApiV1RolesByIdPermissionsData, GetApiV1RolesByIdPermissionsError, GetApiV1RolesByIdPermissionsErrors, GetApiV1RolesByIdPermissionsResponse, GetApiV1RolesByIdPermissionsResponses, GetApiV1RolesByIdResponse, GetApiV1RolesByIdResponses, GetApiV1RolesData, GetApiV1RolesError, GetApiV1RolesErrors, GetApiV1RolesResponse, GetApiV1RolesResponses, GetApiV1SignalsReceiptsData, GetApiV1SignalsReceiptsError, GetApiV1SignalsReceiptsErrors, GetApiV1SignalsReceiptsResponse, GetApiV1SignalsReceiptsResponses, GetApiV1TasksByIdData, GetApiV1TasksByIdError, GetApiV1TasksByIdErrors, GetApiV1TasksByIdResponse, GetApiV1TasksByIdResponses, GetApiV1TasksByIdRunsData, GetApiV1TasksByIdRunsError, GetApiV1TasksByIdRunsErrors, GetApiV1TasksByIdRunsResponse, GetApiV1TasksByIdRunsResponses, GetApiV1TasksData, GetApiV1TasksError, GetApiV1TasksErrors, GetApiV1TasksResponse, GetApiV1TasksResponses, GetApiV1TopicsByIdData, GetApiV1TopicsByIdError, GetApiV1TopicsByIdErrors, GetApiV1TopicsByIdResponse, GetApiV1TopicsByIdResponses, GetApiV1TopicsByTopicIdThreadsData, GetApiV1TopicsByTopicIdThreadsError, GetApiV1TopicsByTopicIdThreadsErrors, GetApiV1TopicsByTopicIdThreadsResponse, GetApiV1TopicsByTopicIdThreadsResponses, GetApiV1TopicsData, GetApiV1TopicsError, GetApiV1TopicsErrors, GetApiV1TopicsResponse, GetApiV1TopicsResponses, GetApiV1UsageData, GetApiV1UsageError, GetApiV1UsageErrors, GetApiV1UsageResponse, GetApiV1UsageResponses, GetApiV1UsersByIdData, GetApiV1UsersByIdError, GetApiV1UsersByIdErrors, GetApiV1UsersByIdResponse, GetApiV1UsersByIdResponses, GetApiV1UsersByIdRolesData, GetApiV1UsersByIdRolesError, GetApiV1UsersByIdRolesErrors, GetApiV1UsersByIdRolesResponse, GetApiV1UsersByIdRolesResponses, GetApiV1UsersData, GetApiV1UsersError, GetApiV1UsersErrors, GetApiV1UsersMeData, GetApiV1UsersMeError, GetApiV1UsersMeErrors, GetApiV1UsersMeResponse, GetApiV1UsersMeResponses, GetApiV1UsersResponse, GetApiV1UsersResponses, Goal, GoalAdvanceResult, GoalDecisionOption, GoalGraph, GoalGraphDecision, GoalGraphEdge, GoalGraphEvent, GoalGraphNode, GoalGraphSnapshot, GoalGraphWorkVersionLink, GoalList, GoalListItem, GoalRestartResult, GoalSupervision, ImMessage, ImReadResult, ImSendResult, ImSyncResult, InstalledPlugin, InstalledPluginList, KnowledgeBase, KnowledgeBaseDetail, KnowledgeBaseFileOperationResult, KnowledgeBaseList, KnowledgeBaseListItem, McpServer, McpServerSyncResult, McpServerTool, MemoryActivity, MemoryCategoryEntries, MemoryContext, MemoryExperience, MemoryIdentity, MemoryPersona, MemoryPersonaVersion, MemoryPreference, Message, MessageTranslation, MessageTranslationWrite, Model, Notification, NotificationCategoryCount, NotificationSettings, NotificationUnreadCount, PatchApiV1AgentGroupsByIdData, PatchApiV1AgentGroupsByIdError, PatchApiV1AgentGroupsByIdErrors, PatchApiV1AgentGroupsByIdResponse, PatchApiV1AgentGroupsByIdResponses, PatchApiV1AgentsByIdAccountsByAccountIdData, PatchApiV1AgentsByIdAccountsByAccountIdError, PatchApiV1AgentsByIdAccountsByAccountIdErrors, PatchApiV1AgentsByIdAccountsByAccountIdResponse, PatchApiV1AgentsByIdAccountsByAccountIdResponses, PatchApiV1AgentsByIdData, PatchApiV1AgentsByIdError, PatchApiV1AgentsByIdErrors, PatchApiV1AgentsByIdResponse, PatchApiV1AgentsByIdResponses, PatchApiV1ApiKeysByIdData, PatchApiV1ApiKeysByIdError, PatchApiV1ApiKeysByIdErrors, PatchApiV1ApiKeysByIdResponse, PatchApiV1ApiKeysByIdResponses, PatchApiV1ChatGroupsByIdData, PatchApiV1ChatGroupsByIdError, PatchApiV1ChatGroupsByIdErrors, PatchApiV1ChatGroupsByIdResponse, PatchApiV1ChatGroupsByIdResponses, PatchApiV1EvalBenchmarksByIdData, PatchApiV1EvalBenchmarksByIdError, PatchApiV1EvalBenchmarksByIdErrors, PatchApiV1EvalBenchmarksByIdResponse, PatchApiV1EvalBenchmarksByIdResponses, PatchApiV1EvalDatasetsByIdData, PatchApiV1EvalDatasetsByIdError, PatchApiV1EvalDatasetsByIdErrors, PatchApiV1EvalDatasetsByIdResponse, PatchApiV1EvalDatasetsByIdResponses, PatchApiV1EvalRunsByIdStatusData, PatchApiV1EvalRunsByIdStatusError, PatchApiV1EvalRunsByIdStatusErrors, PatchApiV1EvalRunsByIdStatusResponse, PatchApiV1EvalRunsByIdStatusResponses, PatchApiV1EvalTestCasesByIdData, PatchApiV1EvalTestCasesByIdError, PatchApiV1EvalTestCasesByIdErrors, PatchApiV1EvalTestCasesByIdResponse, PatchApiV1EvalTestCasesByIdResponses, PatchApiV1FilesByIdData, PatchApiV1FilesByIdError, PatchApiV1FilesByIdErrors, PatchApiV1FilesByIdResponse, PatchApiV1FilesByIdResponses, PatchApiV1GoalsByIdData, PatchApiV1GoalsByIdError, PatchApiV1GoalsByIdErrors, PatchApiV1GoalsByIdResponse, PatchApiV1GoalsByIdResponses, PatchApiV1KnowledgeBasesByIdData, PatchApiV1KnowledgeBasesByIdError, PatchApiV1KnowledgeBasesByIdErrors, PatchApiV1KnowledgeBasesByIdResponse, PatchApiV1KnowledgeBasesByIdResponses, PatchApiV1McpServersByIdData, PatchApiV1McpServersByIdError, PatchApiV1McpServersByIdErrors, PatchApiV1McpServersByIdResponse, PatchApiV1McpServersByIdResponses, PatchApiV1MessageTranslationsByMessageIdData, PatchApiV1MessageTranslationsByMessageIdError, PatchApiV1MessageTranslationsByMessageIdErrors, PatchApiV1MessageTranslationsByMessageIdResponse, PatchApiV1MessageTranslationsByMessageIdResponses, PatchApiV1ModelsByProviderIdByModelIdData, PatchApiV1ModelsByProviderIdByModelIdError, PatchApiV1ModelsByProviderIdByModelIdErrors, PatchApiV1ModelsByProviderIdByModelIdResponse, PatchApiV1ModelsByProviderIdByModelIdResponses, PatchApiV1NotificationsSettingsData, PatchApiV1NotificationsSettingsError, PatchApiV1NotificationsSettingsErrors, PatchApiV1NotificationsSettingsResponse, PatchApiV1NotificationsSettingsResponses, PatchApiV1PermissionsByIdData, PatchApiV1PermissionsByIdError, PatchApiV1PermissionsByIdErrors, PatchApiV1PermissionsByIdResponse, PatchApiV1PermissionsByIdResponses, PatchApiV1ProvidersByIdData, PatchApiV1ProvidersByIdError, PatchApiV1ProvidersByIdErrors, PatchApiV1ProvidersByIdResponse, PatchApiV1ProvidersByIdResponses, PatchApiV1RolesByIdData, PatchApiV1RolesByIdError, PatchApiV1RolesByIdErrors, PatchApiV1RolesByIdPermissionsData, PatchApiV1RolesByIdPermissionsError, PatchApiV1RolesByIdPermissionsErrors, PatchApiV1RolesByIdPermissionsResponse, PatchApiV1RolesByIdPermissionsResponses, PatchApiV1RolesByIdResponse, PatchApiV1RolesByIdResponses, PatchApiV1TasksByIdData, PatchApiV1TasksByIdError, PatchApiV1TasksByIdErrors, PatchApiV1TasksByIdResponse, PatchApiV1TasksByIdResponses, PatchApiV1TasksByIdStatusData, PatchApiV1TasksByIdStatusError, PatchApiV1TasksByIdStatusErrors, PatchApiV1TasksByIdStatusResponse, PatchApiV1TasksByIdStatusResponses, PatchApiV1TopicsByIdData, PatchApiV1TopicsByIdError, PatchApiV1TopicsByIdErrors, PatchApiV1TopicsByIdResponse, PatchApiV1TopicsByIdResponses, PatchApiV1UsersByIdData, PatchApiV1UsersByIdError, PatchApiV1UsersByIdErrors, PatchApiV1UsersByIdResponse, PatchApiV1UsersByIdResponses, PatchApiV1UsersByIdRolesData, PatchApiV1UsersByIdRolesError, PatchApiV1UsersByIdRolesErrors, PatchApiV1UsersByIdRolesResponse, PatchApiV1UsersByIdRolesResponses, Permission, PermissionList, PostApiV1AgentGroupsData, PostApiV1AgentGroupsError, PostApiV1AgentGroupsErrors, PostApiV1AgentGroupsResponse, PostApiV1AgentGroupsResponses, PostApiV1AgentsByIdAccountsData, PostApiV1AgentsByIdAccountsError, PostApiV1AgentsByIdAccountsErrors, PostApiV1AgentsByIdAccountsResponse, PostApiV1AgentsByIdAccountsResponses, PostApiV1AgentsByIdDuplicateData, PostApiV1AgentsByIdDuplicateError, PostApiV1AgentsByIdDuplicateErrors, PostApiV1AgentsByIdDuplicateResponse, PostApiV1AgentsByIdDuplicateResponses, PostApiV1AgentsData, PostApiV1AgentsError, PostApiV1AgentsErrors, PostApiV1AgentsResponse, PostApiV1AgentsResponses, PostApiV1ApiKeysData, PostApiV1ApiKeysError, PostApiV1ApiKeysErrors, PostApiV1ApiKeysResponse, PostApiV1ApiKeysResponses, PostApiV1AudioSpeechData, PostApiV1AudioSpeechError, PostApiV1AudioSpeechErrors, PostApiV1AudioSpeechResponse, PostApiV1AudioSpeechResponses, PostApiV1ChatData, PostApiV1ChatError, PostApiV1ChatErrors, PostApiV1ChatGenerateReplyData, PostApiV1ChatGenerateReplyError, PostApiV1ChatGenerateReplyErrors, PostApiV1ChatGenerateReplyResponse, PostApiV1ChatGenerateReplyResponses, PostApiV1ChatGroupsByIdMembersData, PostApiV1ChatGroupsByIdMembersError, PostApiV1ChatGroupsByIdMembersErrors, PostApiV1ChatGroupsByIdMembersResponse, PostApiV1ChatGroupsByIdMembersResponses, PostApiV1ChatGroupsData, PostApiV1ChatGroupsError, PostApiV1ChatGroupsErrors, PostApiV1ChatGroupsResponse, PostApiV1ChatGroupsResponses, PostApiV1ChatResponse, PostApiV1ChatResponses, PostApiV1ChatTranslateData, PostApiV1ChatTranslateError, PostApiV1ChatTranslateErrors, PostApiV1ChatTranslateResponse, PostApiV1ChatTranslateResponses, PostApiV1EvalBenchmarksData, PostApiV1EvalBenchmarksError, PostApiV1EvalBenchmarksErrors, PostApiV1EvalBenchmarksResponse, PostApiV1EvalBenchmarksResponses, PostApiV1EvalDatasetsByDatasetIdTestCasesData, PostApiV1EvalDatasetsByDatasetIdTestCasesError, PostApiV1EvalDatasetsByDatasetIdTestCasesErrors, PostApiV1EvalDatasetsByDatasetIdTestCasesResponse, PostApiV1EvalDatasetsByDatasetIdTestCasesResponses, PostApiV1EvalDatasetsData, PostApiV1EvalDatasetsError, PostApiV1EvalDatasetsErrors, PostApiV1EvalDatasetsResponse, PostApiV1EvalDatasetsResponses, PostApiV1EvalRunsByIdClaimData, PostApiV1EvalRunsByIdClaimError, PostApiV1EvalRunsByIdClaimErrors, PostApiV1EvalRunsByIdClaimResponse, PostApiV1EvalRunsByIdClaimResponses, PostApiV1EvalRunsByIdResultsData, PostApiV1EvalRunsByIdResultsError, PostApiV1EvalRunsByIdResultsErrors, PostApiV1EvalRunsByIdResultsResponse, PostApiV1EvalRunsByIdResultsResponses, PostApiV1EvalRunsByIdRetryErrorsData, PostApiV1EvalRunsByIdRetryErrorsError, PostApiV1EvalRunsByIdRetryErrorsErrors, PostApiV1EvalRunsByIdRetryErrorsResponse, PostApiV1EvalRunsByIdRetryErrorsResponses, PostApiV1EvalRunsData, PostApiV1EvalRunsError, PostApiV1EvalRunsErrors, PostApiV1EvalRunsResponse, PostApiV1EvalRunsResponses, PostApiV1FilesBatchesData, PostApiV1FilesBatchesError, PostApiV1FilesBatchesErrors, PostApiV1FilesBatchesResponse, PostApiV1FilesBatchesResponses, PostApiV1FilesByIdChunksData, PostApiV1FilesByIdChunksError, PostApiV1FilesByIdChunksErrors, PostApiV1FilesByIdChunksResponse, PostApiV1FilesByIdChunksResponses, PostApiV1FilesByIdParsesData, PostApiV1FilesByIdParsesError, PostApiV1FilesByIdParsesErrors, PostApiV1FilesByIdParsesResponse, PostApiV1FilesByIdParsesResponses, PostApiV1FilesData, PostApiV1FilesError, PostApiV1FilesErrors, PostApiV1FilesQueriesData, PostApiV1FilesQueriesError, PostApiV1FilesQueriesErrors, PostApiV1FilesQueriesResponse, PostApiV1FilesQueriesResponses, PostApiV1FilesResponse, PostApiV1FilesResponses, PostApiV1GoalsByIdAdvanceData, PostApiV1GoalsByIdAdvanceError, PostApiV1GoalsByIdAdvanceErrors, PostApiV1GoalsByIdAdvanceResponse, PostApiV1GoalsByIdAdvanceResponses, PostApiV1GoalsByIdPauseData, PostApiV1GoalsByIdPauseError, PostApiV1GoalsByIdPauseErrors, PostApiV1GoalsByIdPauseResponse, PostApiV1GoalsByIdPauseResponses, PostApiV1GoalsByIdRestartData, PostApiV1GoalsByIdRestartError, PostApiV1GoalsByIdRestartErrors, PostApiV1GoalsByIdRestartResponse, PostApiV1GoalsByIdRestartResponses, PostApiV1GoalsByIdResumeData, PostApiV1GoalsByIdResumeError, PostApiV1GoalsByIdResumeErrors, PostApiV1GoalsByIdResumeResponse, PostApiV1GoalsByIdResumeResponses, PostApiV1GoalsData, PostApiV1GoalsError, PostApiV1GoalsErrors, PostApiV1GoalsResponse, PostApiV1GoalsResponses, PostApiV1ImMessagesData, PostApiV1ImMessagesError, PostApiV1ImMessagesErrors, PostApiV1ImMessagesResponse, PostApiV1ImMessagesResponses, PostApiV1ImTopicsByTopicIdReadData, PostApiV1ImTopicsByTopicIdReadError, PostApiV1ImTopicsByTopicIdReadErrors, PostApiV1ImTopicsByTopicIdReadResponse, PostApiV1ImTopicsByTopicIdReadResponses, PostApiV1KnowledgeBasesByIdFilesBatchData, PostApiV1KnowledgeBasesByIdFilesBatchError, PostApiV1KnowledgeBasesByIdFilesBatchErrors, PostApiV1KnowledgeBasesByIdFilesBatchResponse, PostApiV1KnowledgeBasesByIdFilesBatchResponses, PostApiV1KnowledgeBasesByIdFilesMoveData, PostApiV1KnowledgeBasesByIdFilesMoveError, PostApiV1KnowledgeBasesByIdFilesMoveErrors, PostApiV1KnowledgeBasesByIdFilesMoveResponse, PostApiV1KnowledgeBasesByIdFilesMoveResponses, PostApiV1KnowledgeBasesData, PostApiV1KnowledgeBasesError, PostApiV1KnowledgeBasesErrors, PostApiV1KnowledgeBasesResponse, PostApiV1KnowledgeBasesResponses, PostApiV1McpServersByIdSyncData, PostApiV1McpServersByIdSyncError, PostApiV1McpServersByIdSyncErrors, PostApiV1McpServersByIdSyncResponse, PostApiV1McpServersByIdSyncResponses, PostApiV1McpServersData, PostApiV1McpServersError, PostApiV1McpServersErrors, PostApiV1McpServersResponse, PostApiV1McpServersResponses, PostApiV1MessagesData, PostApiV1MessagesError, PostApiV1MessagesErrors, PostApiV1MessagesRepliesData, PostApiV1MessagesRepliesError, PostApiV1MessagesRepliesErrors, PostApiV1MessagesRepliesResponse, PostApiV1MessagesRepliesResponses, PostApiV1MessagesResponse, PostApiV1MessagesResponses, PostApiV1MessageTranslationsByMessageIdData, PostApiV1MessageTranslationsByMessageIdError, PostApiV1MessageTranslationsByMessageIdErrors, PostApiV1MessageTranslationsByMessageIdResponse, PostApiV1MessageTranslationsByMessageIdResponses, PostApiV1ModelsData, PostApiV1ModelsError, PostApiV1ModelsErrors, PostApiV1ModelsResponse, PostApiV1ModelsResponses, PostApiV1NotificationsArchiveAllData, PostApiV1NotificationsArchiveAllError, PostApiV1NotificationsArchiveAllErrors, PostApiV1NotificationsArchiveAllResponse, PostApiV1NotificationsArchiveAllResponses, PostApiV1NotificationsByIdArchiveData, PostApiV1NotificationsByIdArchiveError, PostApiV1NotificationsByIdArchiveErrors, PostApiV1NotificationsByIdArchiveResponse, PostApiV1NotificationsByIdArchiveResponses, PostApiV1NotificationsReadAllData, PostApiV1NotificationsReadAllError, PostApiV1NotificationsReadAllErrors, PostApiV1NotificationsReadAllResponse, PostApiV1NotificationsReadAllResponses, PostApiV1NotificationsReadData, PostApiV1NotificationsReadError, PostApiV1NotificationsReadErrors, PostApiV1NotificationsReadResponse, PostApiV1NotificationsReadResponses, PostApiV1PermissionsData, PostApiV1PermissionsError, PostApiV1PermissionsErrors, PostApiV1PermissionsResponse, PostApiV1PermissionsResponses, PostApiV1ProvidersData, PostApiV1ProvidersError, PostApiV1ProvidersErrors, PostApiV1ProvidersResponse, PostApiV1ProvidersResponses, PostApiV1ResponsesData, PostApiV1ResponsesError, PostApiV1ResponsesErrors, PostApiV1ResponsesResponse, PostApiV1ResponsesResponses, PostApiV1RolesData, PostApiV1RolesError, PostApiV1RolesErrors, PostApiV1RolesResponse, PostApiV1RolesResponses, PostApiV1SignalsSourceEventsData, PostApiV1SignalsSourceEventsError, PostApiV1SignalsSourceEventsErrors, PostApiV1SignalsSourceEventsResponse, PostApiV1SignalsSourceEventsResponses, PostApiV1SignalsTriggerData, PostApiV1SignalsTriggerError, PostApiV1SignalsTriggerErrors, PostApiV1SignalsTriggerResponse, PostApiV1SignalsTriggerResponses, PostApiV1TasksByIdRunsData, PostApiV1TasksByIdRunsError, PostApiV1TasksByIdRunsErrors, PostApiV1TasksByIdRunsResponse, PostApiV1TasksByIdRunsResponses, PostApiV1TasksData, PostApiV1TasksError, PostApiV1TasksErrors, PostApiV1TasksResponse, PostApiV1TasksResponses, PostApiV1TopicsData, PostApiV1TopicsError, PostApiV1TopicsErrors, PostApiV1TopicsResponse, PostApiV1TopicsResponses, PostApiV1UsersData, PostApiV1UsersError, PostApiV1UsersErrors, PostApiV1UsersResponse, PostApiV1UsersResponses, Provider, PushTokenRegistration, PutApiV1AgentsByIdAccountsByAccountIdCredentialData, PutApiV1AgentsByIdAccountsByAccountIdCredentialError, PutApiV1AgentsByIdAccountsByAccountIdCredentialErrors, PutApiV1AgentsByIdAccountsByAccountIdCredentialResponse, PutApiV1AgentsByIdAccountsByAccountIdCredentialResponses, PutApiV1EvalRunsByRunIdTopicsByTopicIdResultData, PutApiV1EvalRunsByRunIdTopicsByTopicIdResultError, PutApiV1EvalRunsByRunIdTopicsByTopicIdResultErrors, PutApiV1EvalRunsByRunIdTopicsByTopicIdResultResponse, PutApiV1EvalRunsByRunIdTopicsByTopicIdResultResponses, PutApiV1PushTokensByDeviceIdData, PutApiV1PushTokensByDeviceIdError, PutApiV1PushTokensByDeviceIdErrors, PutApiV1PushTokensByDeviceIdResponse, PutApiV1PushTokensByDeviceIdResponses, ResponseError, ResponseFunctionCall, ResponseFunctionCallOutput, ResponseObject, ResponseOutputItem, ResponseOutputMessage, ResponseOutputText, ResponseUsage, Role, RoleList, RolePermission, RolePermissionList, RolePermissionsUpdateResult, Task, TaskDetail, TaskDetailActivity, TaskDetailSubtask, TaskDetailWorkspaceNode, TaskLabelRef, TaskList, TaskListItem, TaskRun, TaskRunStarted, TaskStatusUpdateResult, Topic, TopicSummary, TopicThread, Usage, User, UserIdentity, UserList, UserRole } from './types.gen';+export type { Agent, AgentAccount, AgentAccountCapabilities, AgentAccountList, AgentDetail, AgentFile, AgentGroup, AgentKnowledgeBase, AgentList, AgentPlugin, AgentSignalEmission, AgentSignalReceipt, AgentSignalReceiptList, ApiError, ApiErrorCode, ApiKey, AsyncTaskError, BatchFileUploadResult, BatchGetFilesResult, ChatGenerateReplyResponse, ChatGroup, ChatGroupList, ChatGroupMember, ChatResponse, ChatTranslateResponse, ClientOptions, CreatedAgentGroup, CreatedApiKey, DeleteApiV1AgentGroupsByIdData, DeleteApiV1AgentGroupsByIdError, DeleteApiV1AgentGroupsByIdErrors, DeleteApiV1AgentGroupsByIdResponse, DeleteApiV1AgentGroupsByIdResponses, DeleteApiV1AgentsByIdAccountsByAccountIdData, DeleteApiV1AgentsByIdAccountsByAccountIdError, DeleteApiV1AgentsByIdAccountsByAccountIdErrors, DeleteApiV1AgentsByIdAccountsByAccountIdResponse, DeleteApiV1AgentsByIdAccountsByAccountIdResponses, DeleteApiV1AgentsByIdData, DeleteApiV1AgentsByIdError, DeleteApiV1AgentsByIdErrors, DeleteApiV1AgentsByIdResponse, DeleteApiV1AgentsByIdResponses, DeleteApiV1ApiKeysByIdData, DeleteApiV1ApiKeysByIdError, DeleteApiV1ApiKeysByIdErrors, DeleteApiV1ApiKeysByIdResponse, DeleteApiV1ApiKeysByIdResponses, DeleteApiV1ChatGroupsByIdData, DeleteApiV1ChatGroupsByIdError, DeleteApiV1ChatGroupsByIdErrors, DeleteApiV1ChatGroupsByIdMembersData, DeleteApiV1ChatGroupsByIdMembersError, DeleteApiV1ChatGroupsByIdMembersErrors, DeleteApiV1ChatGroupsByIdMembersResponse, DeleteApiV1ChatGroupsByIdMembersResponses, DeleteApiV1ChatGroupsByIdResponse, DeleteApiV1ChatGroupsByIdResponses, DeleteApiV1EvalBenchmarksByIdData, DeleteApiV1EvalBenchmarksByIdError, DeleteApiV1EvalBenchmarksByIdErrors, DeleteApiV1EvalBenchmarksByIdResponse, DeleteApiV1EvalBenchmarksByIdResponses, DeleteApiV1EvalDatasetsByIdData, DeleteApiV1EvalDatasetsByIdError, DeleteApiV1EvalDatasetsByIdErrors, DeleteApiV1EvalDatasetsByIdResponse, DeleteApiV1EvalDatasetsByIdResponses, DeleteApiV1EvalTestCasesByIdData, DeleteApiV1EvalTestCasesByIdError, DeleteApiV1EvalTestCasesByIdErrors, DeleteApiV1EvalTestCasesByIdResponse, DeleteApiV1EvalTestCasesByIdResponses, DeleteApiV1FilesByIdData, DeleteApiV1FilesByIdError, DeleteApiV1FilesByIdErrors, DeleteApiV1FilesByIdResponse, DeleteApiV1FilesByIdResponses, DeleteApiV1GoalsByIdData, DeleteApiV1GoalsByIdError, DeleteApiV1GoalsByIdErrors, DeleteApiV1GoalsByIdResponse, DeleteApiV1GoalsByIdResponses, DeleteApiV1KnowledgeBasesByIdData, DeleteApiV1KnowledgeBasesByIdError, DeleteApiV1KnowledgeBasesByIdErrors, DeleteApiV1KnowledgeBasesByIdFilesBatchData, DeleteApiV1KnowledgeBasesByIdFilesBatchError, DeleteApiV1KnowledgeBasesByIdFilesBatchErrors, DeleteApiV1KnowledgeBasesByIdFilesBatchResponse, DeleteApiV1KnowledgeBasesByIdFilesBatchResponses, DeleteApiV1KnowledgeBasesByIdResponse, DeleteApiV1KnowledgeBasesByIdResponses, DeleteApiV1McpServersByIdData, DeleteApiV1McpServersByIdError, DeleteApiV1McpServersByIdErrors, DeleteApiV1McpServersByIdResponse, DeleteApiV1McpServersByIdResponses, DeleteApiV1MemoriesByCategoryByIdData, DeleteApiV1MemoriesByCategoryByIdError, DeleteApiV1MemoriesByCategoryByIdErrors, DeleteApiV1MemoriesByCategoryByIdResponse, DeleteApiV1MemoriesByCategoryByIdResponses, DeleteApiV1MemoriesData, DeleteApiV1MemoriesError, DeleteApiV1MemoriesErrors, DeleteApiV1MemoriesResponse, DeleteApiV1MemoriesResponses, DeleteApiV1MessagesByIdData, DeleteApiV1MessagesByIdError, DeleteApiV1MessagesByIdErrors, DeleteApiV1MessagesByIdResponse, DeleteApiV1MessagesByIdResponses, DeleteApiV1MessagesData, DeleteApiV1MessagesError, DeleteApiV1MessagesErrors, DeleteApiV1MessagesResponse, DeleteApiV1MessagesResponses, DeleteApiV1MessageTranslationsByMessageIdData, DeleteApiV1MessageTranslationsByMessageIdError, DeleteApiV1MessageTranslationsByMessageIdErrors, DeleteApiV1MessageTranslationsByMessageIdResponse, DeleteApiV1MessageTranslationsByMessageIdResponses, DeleteApiV1PermissionsByIdData, DeleteApiV1PermissionsByIdError, DeleteApiV1PermissionsByIdErrors, DeleteApiV1PermissionsByIdResponse, DeleteApiV1PermissionsByIdResponses, DeleteApiV1ProvidersByIdData, DeleteApiV1ProvidersByIdError, DeleteApiV1ProvidersByIdErrors, DeleteApiV1ProvidersByIdResponse, DeleteApiV1ProvidersByIdResponses, DeleteApiV1PushTokensByDeviceIdData, DeleteApiV1PushTokensByDeviceIdError, DeleteApiV1PushTokensByDeviceIdErrors, DeleteApiV1PushTokensByDeviceIdResponse, DeleteApiV1PushTokensByDeviceIdResponses, DeleteApiV1RolesByIdData, DeleteApiV1RolesByIdError, DeleteApiV1RolesByIdErrors, DeleteApiV1RolesByIdPermissionsData, DeleteApiV1RolesByIdPermissionsError, DeleteApiV1RolesByIdPermissionsErrors, DeleteApiV1RolesByIdPermissionsResponse, DeleteApiV1RolesByIdPermissionsResponses, DeleteApiV1RolesByIdResponse, DeleteApiV1RolesByIdResponses, DeleteApiV1TasksByIdData, DeleteApiV1TasksByIdError, DeleteApiV1TasksByIdErrors, DeleteApiV1TasksByIdResponse, DeleteApiV1TasksByIdResponses, DeleteApiV1TopicsByIdData, DeleteApiV1TopicsByIdError, DeleteApiV1TopicsByIdErrors, DeleteApiV1TopicsByIdResponse, DeleteApiV1TopicsByIdResponses, DeleteApiV1UsersByIdData, DeleteApiV1UsersByIdError, DeleteApiV1UsersByIdErrors, DeleteApiV1UsersByIdResponse, DeleteApiV1UsersByIdResponses, DeleteApiV1UsersByIdRolesData, DeleteApiV1UsersByIdRolesError, DeleteApiV1UsersByIdRolesErrors, DeleteApiV1UsersByIdRolesResponse, DeleteApiV1UsersByIdRolesResponses, DeletedResource, DeletedResources, EvalBatchReportResult, EvalBenchmark, EvalBenchmarkRubric, EvalCaseResult, EvalDataset, EvalReportReceipt, EvalReportResult, EvalRetryErrors, EvalRubricScore, EvalRun, EvalRunMetrics, EvalRunResult, EvalRunTopic, EvalStoredResult, EvalTestCase, EvalThreadResult, File, FileAsyncTask, FileChunkStatus, FileChunkTask, FileDetail, FileKnowledgeBaseRef, FileList, FileListItem, FileParseResult, FileUrl, FileUser, GetApiV1AgentGroupsByIdData, GetApiV1AgentGroupsByIdError, GetApiV1AgentGroupsByIdErrors, GetApiV1AgentGroupsByIdResponse, GetApiV1AgentGroupsByIdResponses, GetApiV1AgentGroupsData, GetApiV1AgentGroupsError, GetApiV1AgentGroupsErrors, GetApiV1AgentGroupsResponse, GetApiV1AgentGroupsResponses, GetApiV1AgentsByIdAccountsByAccountIdData, GetApiV1AgentsByIdAccountsByAccountIdError, GetApiV1AgentsByIdAccountsByAccountIdErrors, GetApiV1AgentsByIdAccountsByAccountIdResponse, GetApiV1AgentsByIdAccountsByAccountIdResponses, GetApiV1AgentsByIdAccountsData, GetApiV1AgentsByIdAccountsError, GetApiV1AgentsByIdAccountsErrors, GetApiV1AgentsByIdAccountsResponse, GetApiV1AgentsByIdAccountsResponses, GetApiV1AgentsByIdData, GetApiV1AgentsByIdError, GetApiV1AgentsByIdErrors, GetApiV1AgentsByIdResponse, GetApiV1AgentsByIdResponses, GetApiV1AgentsData, GetApiV1AgentsError, GetApiV1AgentsErrors, GetApiV1AgentsResponse, GetApiV1AgentsResponses, GetApiV1ApiKeysByIdData, GetApiV1ApiKeysByIdError, GetApiV1ApiKeysByIdErrors, GetApiV1ApiKeysByIdResponse, GetApiV1ApiKeysByIdResponses, GetApiV1ApiKeysData, GetApiV1ApiKeysError, GetApiV1ApiKeysErrors, GetApiV1ApiKeysResponse, GetApiV1ApiKeysResponses, GetApiV1ChatGroupsByIdData, GetApiV1ChatGroupsByIdError, GetApiV1ChatGroupsByIdErrors, GetApiV1ChatGroupsByIdResponse, GetApiV1ChatGroupsByIdResponses, GetApiV1ChatGroupsData, GetApiV1ChatGroupsError, GetApiV1ChatGroupsErrors, GetApiV1ChatGroupsResponse, GetApiV1ChatGroupsResponses, GetApiV1EvalBenchmarksByIdData, GetApiV1EvalBenchmarksByIdError, GetApiV1EvalBenchmarksByIdErrors, GetApiV1EvalBenchmarksByIdResponse, GetApiV1EvalBenchmarksByIdResponses, GetApiV1EvalBenchmarksData, GetApiV1EvalBenchmarksError, GetApiV1EvalBenchmarksErrors, GetApiV1EvalBenchmarksResponse, GetApiV1EvalBenchmarksResponses, GetApiV1EvalDatasetsByDatasetIdTestCasesData, GetApiV1EvalDatasetsByDatasetIdTestCasesError, GetApiV1EvalDatasetsByDatasetIdTestCasesErrors, GetApiV1EvalDatasetsByDatasetIdTestCasesResponse, GetApiV1EvalDatasetsByDatasetIdTestCasesResponses, GetApiV1EvalDatasetsByIdData, GetApiV1EvalDatasetsByIdError, GetApiV1EvalDatasetsByIdErrors, GetApiV1EvalDatasetsByIdResponse, GetApiV1EvalDatasetsByIdResponses, GetApiV1EvalDatasetsData, GetApiV1EvalDatasetsError, GetApiV1EvalDatasetsErrors, GetApiV1EvalDatasetsResponse, GetApiV1EvalDatasetsResponses, GetApiV1EvalRunsByIdData, GetApiV1EvalRunsByIdError, GetApiV1EvalRunsByIdErrors, GetApiV1EvalRunsByIdResponse, GetApiV1EvalRunsByIdResponses, GetApiV1EvalRunsByIdResultsData, GetApiV1EvalRunsByIdResultsError, GetApiV1EvalRunsByIdResultsErrors, GetApiV1EvalRunsByIdResultsResponse, GetApiV1EvalRunsByIdResultsResponses, GetApiV1EvalRunsByIdTopicsData, GetApiV1EvalRunsByIdTopicsError, GetApiV1EvalRunsByIdTopicsErrors, GetApiV1EvalRunsByIdTopicsResponse, GetApiV1EvalRunsByIdTopicsResponses, GetApiV1EvalRunsData, GetApiV1EvalRunsError, GetApiV1EvalRunsErrors, GetApiV1EvalRunsResponse, GetApiV1EvalRunsResponses, GetApiV1EvalTestCasesByIdData, GetApiV1EvalTestCasesByIdError, GetApiV1EvalTestCasesByIdErrors, GetApiV1EvalTestCasesByIdResponse, GetApiV1EvalTestCasesByIdResponses, GetApiV1FilesByIdChunksData, GetApiV1FilesByIdChunksError, GetApiV1FilesByIdChunksErrors, GetApiV1FilesByIdChunksResponse, GetApiV1FilesByIdChunksResponses, GetApiV1FilesByIdData, GetApiV1FilesByIdError, GetApiV1FilesByIdErrors, GetApiV1FilesByIdResponse, GetApiV1FilesByIdResponses, GetApiV1FilesByIdUrlData, GetApiV1FilesByIdUrlError, GetApiV1FilesByIdUrlErrors, GetApiV1FilesByIdUrlResponse, GetApiV1FilesByIdUrlResponses, GetApiV1FilesData, GetApiV1FilesError, GetApiV1FilesErrors, GetApiV1FilesResponse, GetApiV1FilesResponses, GetApiV1GoalsByIdData, GetApiV1GoalsByIdError, GetApiV1GoalsByIdErrors, GetApiV1GoalsByIdResponse, GetApiV1GoalsByIdResponses, GetApiV1GoalsByIdSupervisionData, GetApiV1GoalsByIdSupervisionError, GetApiV1GoalsByIdSupervisionErrors, GetApiV1GoalsByIdSupervisionResponse, GetApiV1GoalsByIdSupervisionResponses, GetApiV1GoalsData, GetApiV1GoalsError, GetApiV1GoalsErrors, GetApiV1GoalsResponse, GetApiV1GoalsResponses, GetApiV1HealthData, GetApiV1HealthResponse, GetApiV1HealthResponses, GetApiV1ImTopicsByTopicIdSyncData, GetApiV1ImTopicsByTopicIdSyncError, GetApiV1ImTopicsByTopicIdSyncErrors, GetApiV1ImTopicsByTopicIdSyncResponse, GetApiV1ImTopicsByTopicIdSyncResponses, GetApiV1KnowledgeBasesByIdData, GetApiV1KnowledgeBasesByIdError, GetApiV1KnowledgeBasesByIdErrors, GetApiV1KnowledgeBasesByIdFilesData, GetApiV1KnowledgeBasesByIdFilesError, GetApiV1KnowledgeBasesByIdFilesErrors, GetApiV1KnowledgeBasesByIdFilesResponse, GetApiV1KnowledgeBasesByIdFilesResponses, GetApiV1KnowledgeBasesByIdResponse, GetApiV1KnowledgeBasesByIdResponses, GetApiV1KnowledgeBasesData, GetApiV1KnowledgeBasesError, GetApiV1KnowledgeBasesErrors, GetApiV1KnowledgeBasesResponse, GetApiV1KnowledgeBasesResponses, GetApiV1McpServersByIdData, GetApiV1McpServersByIdError, GetApiV1McpServersByIdErrors, GetApiV1McpServersByIdResponse, GetApiV1McpServersByIdResponses, GetApiV1McpServersData, GetApiV1McpServersError, GetApiV1McpServersErrors, GetApiV1McpServersResponse, GetApiV1McpServersResponses, GetApiV1MemoriesByCategoryData, GetApiV1MemoriesByCategoryError, GetApiV1MemoriesByCategoryErrors, GetApiV1MemoriesByCategoryResponse, GetApiV1MemoriesByCategoryResponses, GetApiV1MemoriesPersonaData, GetApiV1MemoriesPersonaError, GetApiV1MemoriesPersonaErrors, GetApiV1MemoriesPersonaResponse, GetApiV1MemoriesPersonaResponses, GetApiV1MemoriesPersonaVersionsData, GetApiV1MemoriesPersonaVersionsError, GetApiV1MemoriesPersonaVersionsErrors, GetApiV1MemoriesPersonaVersionsResponse, GetApiV1MemoriesPersonaVersionsResponses, GetApiV1MessagesByIdData, GetApiV1MessagesByIdError, GetApiV1MessagesByIdErrors, GetApiV1MessagesByIdResponse, GetApiV1MessagesByIdResponses, GetApiV1MessagesCountData, GetApiV1MessagesCountError, GetApiV1MessagesCountErrors, GetApiV1MessagesCountResponse, GetApiV1MessagesCountResponses, GetApiV1MessagesData, GetApiV1MessagesError, GetApiV1MessagesErrors, GetApiV1MessagesResponse, GetApiV1MessagesResponses, GetApiV1MessageTranslationsByMessageIdData, GetApiV1MessageTranslationsByMessageIdError, GetApiV1MessageTranslationsByMessageIdErrors, GetApiV1MessageTranslationsByMessageIdResponse, GetApiV1MessageTranslationsByMessageIdResponses, GetApiV1ModelsByProviderIdByModelIdData, GetApiV1ModelsByProviderIdByModelIdError, GetApiV1ModelsByProviderIdByModelIdErrors, GetApiV1ModelsByProviderIdByModelIdResponse, GetApiV1ModelsByProviderIdByModelIdResponses, GetApiV1ModelsData, GetApiV1ModelsError, GetApiV1ModelsErrors, GetApiV1ModelsResponse, GetApiV1ModelsResponses, GetApiV1NotificationsCountsData, GetApiV1NotificationsCountsError, GetApiV1NotificationsCountsErrors, GetApiV1NotificationsCountsResponse, GetApiV1NotificationsCountsResponses, GetApiV1NotificationsData, GetApiV1NotificationsError, GetApiV1NotificationsErrors, GetApiV1NotificationsResponse, GetApiV1NotificationsResponses, GetApiV1NotificationsSettingsData, GetApiV1NotificationsSettingsError, GetApiV1NotificationsSettingsErrors, GetApiV1NotificationsSettingsResponse, GetApiV1NotificationsSettingsResponses, GetApiV1NotificationsUnreadCountData, GetApiV1NotificationsUnreadCountError, GetApiV1NotificationsUnreadCountErrors, GetApiV1NotificationsUnreadCountResponse, GetApiV1NotificationsUnreadCountResponses, GetApiV1PermissionsByIdData, GetApiV1PermissionsByIdError, GetApiV1PermissionsByIdErrors, GetApiV1PermissionsByIdResponse, GetApiV1PermissionsByIdResponses, GetApiV1PermissionsData, GetApiV1PermissionsError, GetApiV1PermissionsErrors, GetApiV1PermissionsResponse, GetApiV1PermissionsResponses, GetApiV1PluginsData, GetApiV1PluginsError, GetApiV1PluginsErrors, GetApiV1PluginsResponse, GetApiV1PluginsResponses, GetApiV1ProvidersByIdData, GetApiV1ProvidersByIdError, GetApiV1ProvidersByIdErrors, GetApiV1ProvidersByIdResponse, GetApiV1ProvidersByIdResponses, GetApiV1ProvidersData, GetApiV1ProvidersError, GetApiV1ProvidersErrors, GetApiV1ProvidersResponse, GetApiV1ProvidersResponses, GetApiV1RolesByIdData, GetApiV1RolesByIdError, GetApiV1RolesByIdErrors, GetApiV1RolesByIdPermissionsData, GetApiV1RolesByIdPermissionsError, GetApiV1RolesByIdPermissionsErrors, GetApiV1RolesByIdPermissionsResponse, GetApiV1RolesByIdPermissionsResponses, GetApiV1RolesByIdResponse, GetApiV1RolesByIdResponses, GetApiV1RolesData, GetApiV1RolesError, GetApiV1RolesErrors, GetApiV1RolesResponse, GetApiV1RolesResponses, GetApiV1SignalsReceiptsData, GetApiV1SignalsReceiptsError, GetApiV1SignalsReceiptsErrors, GetApiV1SignalsReceiptsResponse, GetApiV1SignalsReceiptsResponses, GetApiV1TasksByIdData, GetApiV1TasksByIdError, GetApiV1TasksByIdErrors, GetApiV1TasksByIdResponse, GetApiV1TasksByIdResponses, GetApiV1TasksByIdRunsData, GetApiV1TasksByIdRunsError, GetApiV1TasksByIdRunsErrors, GetApiV1TasksByIdRunsResponse, GetApiV1TasksByIdRunsResponses, GetApiV1TasksData, GetApiV1TasksError, GetApiV1TasksErrors, GetApiV1TasksResponse, GetApiV1TasksResponses, GetApiV1TopicsByIdData, GetApiV1TopicsByIdError, GetApiV1TopicsByIdErrors, GetApiV1TopicsByIdResponse, GetApiV1TopicsByIdResponses, GetApiV1TopicsByTopicIdThreadsData, GetApiV1TopicsByTopicIdThreadsError, GetApiV1TopicsByTopicIdThreadsErrors, GetApiV1TopicsByTopicIdThreadsResponse, GetApiV1TopicsByTopicIdThreadsResponses, GetApiV1TopicsData, GetApiV1TopicsError, GetApiV1TopicsErrors, GetApiV1TopicsResponse, GetApiV1TopicsResponses, GetApiV1UsageData, GetApiV1UsageError, GetApiV1UsageErrors, GetApiV1UsageResponse, GetApiV1UsageResponses, GetApiV1UsersByIdData, GetApiV1UsersByIdError, GetApiV1UsersByIdErrors, GetApiV1UsersByIdResponse, GetApiV1UsersByIdResponses, GetApiV1UsersByIdRolesData, GetApiV1UsersByIdRolesError, GetApiV1UsersByIdRolesErrors, GetApiV1UsersByIdRolesResponse, GetApiV1UsersByIdRolesResponses, GetApiV1UsersData, GetApiV1UsersError, GetApiV1UsersErrors, GetApiV1UsersMeData, GetApiV1UsersMeError, GetApiV1UsersMeErrors, GetApiV1UsersMeResponse, GetApiV1UsersMeResponses, GetApiV1UsersResponse, GetApiV1UsersResponses, Goal, GoalAdvanceResult, GoalDecisionOption, GoalGraph, GoalGraphDecision, GoalGraphEdge, GoalGraphEvent, GoalGraphNode, GoalGraphSnapshot, GoalGraphWorkVersionLink, GoalList, GoalListItem, GoalRestartResult, GoalSupervision, IdempotencyKey, ImMessage, ImReadResult, ImSendResult, ImSyncResult, InstalledPlugin, InstalledPluginList, KnowledgeBase, KnowledgeBaseDetail, KnowledgeBaseFileOperationResult, KnowledgeBaseList, KnowledgeBaseListItem, McpServer, McpServerSyncResult, McpServerTool, MemoryActivity, MemoryCategoryEntries, MemoryContext, MemoryExperience, MemoryIdentity, MemoryPersona, MemoryPersonaVersion, MemoryPreference, Message, MessageTranslation, MessageTranslationWrite, Model, Notification, NotificationCategoryCount, NotificationSettings, NotificationUnreadCount, PageHasMore, PageNextCursor, PageTotal, PatchApiV1AgentGroupsByIdData, PatchApiV1AgentGroupsByIdError, PatchApiV1AgentGroupsByIdErrors, PatchApiV1AgentGroupsByIdResponse, PatchApiV1AgentGroupsByIdResponses, PatchApiV1AgentsByIdAccountsByAccountIdData, PatchApiV1AgentsByIdAccountsByAccountIdError, PatchApiV1AgentsByIdAccountsByAccountIdErrors, PatchApiV1AgentsByIdAccountsByAccountIdResponse, PatchApiV1AgentsByIdAccountsByAccountIdResponses, PatchApiV1AgentsByIdData, PatchApiV1AgentsByIdError, PatchApiV1AgentsByIdErrors, PatchApiV1AgentsByIdResponse, PatchApiV1AgentsByIdResponses, PatchApiV1ApiKeysByIdData, PatchApiV1ApiKeysByIdError, PatchApiV1ApiKeysByIdErrors, PatchApiV1ApiKeysByIdResponse, PatchApiV1ApiKeysByIdResponses, PatchApiV1ChatGroupsByIdData, PatchApiV1ChatGroupsByIdError, PatchApiV1ChatGroupsByIdErrors, PatchApiV1ChatGroupsByIdResponse, PatchApiV1ChatGroupsByIdResponses, PatchApiV1EvalBenchmarksByIdData, PatchApiV1EvalBenchmarksByIdError, PatchApiV1EvalBenchmarksByIdErrors, PatchApiV1EvalBenchmarksByIdResponse, PatchApiV1EvalBenchmarksByIdResponses, PatchApiV1EvalDatasetsByIdData, PatchApiV1EvalDatasetsByIdError, PatchApiV1EvalDatasetsByIdErrors, PatchApiV1EvalDatasetsByIdResponse, PatchApiV1EvalDatasetsByIdResponses, PatchApiV1EvalRunsByIdStatusData, PatchApiV1EvalRunsByIdStatusError, PatchApiV1EvalRunsByIdStatusErrors, PatchApiV1EvalRunsByIdStatusResponse, PatchApiV1EvalRunsByIdStatusResponses, PatchApiV1EvalTestCasesByIdData, PatchApiV1EvalTestCasesByIdError, PatchApiV1EvalTestCasesByIdErrors, PatchApiV1EvalTestCasesByIdResponse, PatchApiV1EvalTestCasesByIdResponses, PatchApiV1FilesByIdData, PatchApiV1FilesByIdError, PatchApiV1FilesByIdErrors, PatchApiV1FilesByIdResponse, PatchApiV1FilesByIdResponses, PatchApiV1GoalsByIdData, PatchApiV1GoalsByIdError, PatchApiV1GoalsByIdErrors, PatchApiV1GoalsByIdResponse, PatchApiV1GoalsByIdResponses, PatchApiV1KnowledgeBasesByIdData, PatchApiV1KnowledgeBasesByIdError, PatchApiV1KnowledgeBasesByIdErrors, PatchApiV1KnowledgeBasesByIdResponse, PatchApiV1KnowledgeBasesByIdResponses, PatchApiV1McpServersByIdData, PatchApiV1McpServersByIdError, PatchApiV1McpServersByIdErrors, PatchApiV1McpServersByIdResponse, PatchApiV1McpServersByIdResponses, PatchApiV1MessageTranslationsByMessageIdData, PatchApiV1MessageTranslationsByMessageIdError, PatchApiV1MessageTranslationsByMessageIdErrors, PatchApiV1MessageTranslationsByMessageIdResponse, PatchApiV1MessageTranslationsByMessageIdResponses, PatchApiV1ModelsByProviderIdByModelIdData, PatchApiV1ModelsByProviderIdByModelIdError, PatchApiV1ModelsByProviderIdByModelIdErrors, PatchApiV1ModelsByProviderIdByModelIdResponse, PatchApiV1ModelsByProviderIdByModelIdResponses, PatchApiV1NotificationsSettingsData, PatchApiV1NotificationsSettingsError, PatchApiV1NotificationsSettingsErrors, PatchApiV1NotificationsSettingsResponse, PatchApiV1NotificationsSettingsResponses, PatchApiV1PermissionsByIdData, PatchApiV1PermissionsByIdError, PatchApiV1PermissionsByIdErrors, PatchApiV1PermissionsByIdResponse, PatchApiV1PermissionsByIdResponses, PatchApiV1ProvidersByIdData, PatchApiV1ProvidersByIdError, PatchApiV1ProvidersByIdErrors, PatchApiV1ProvidersByIdResponse, PatchApiV1ProvidersByIdResponses, PatchApiV1RolesByIdData, PatchApiV1RolesByIdError, PatchApiV1RolesByIdErrors, PatchApiV1RolesByIdPermissionsData, PatchApiV1RolesByIdPermissionsError, PatchApiV1RolesByIdPermissionsErrors, PatchApiV1RolesByIdPermissionsResponse, PatchApiV1RolesByIdPermissionsResponses, PatchApiV1RolesByIdResponse, PatchApiV1RolesByIdResponses, PatchApiV1TasksByIdData, PatchApiV1TasksByIdError, PatchApiV1TasksByIdErrors, PatchApiV1TasksByIdResponse, PatchApiV1TasksByIdResponses, PatchApiV1TasksByIdStatusData, PatchApiV1TasksByIdStatusError, PatchApiV1TasksByIdStatusErrors, PatchApiV1TasksByIdStatusResponse, PatchApiV1TasksByIdStatusResponses, PatchApiV1TopicsByIdData, PatchApiV1TopicsByIdError, PatchApiV1TopicsByIdErrors, PatchApiV1TopicsByIdResponse, PatchApiV1TopicsByIdResponses, PatchApiV1UsersByIdData, PatchApiV1UsersByIdError, PatchApiV1UsersByIdErrors, PatchApiV1UsersByIdResponse, PatchApiV1UsersByIdResponses, PatchApiV1UsersByIdRolesData, PatchApiV1UsersByIdRolesError, PatchApiV1UsersByIdRolesErrors, PatchApiV1UsersByIdRolesResponse, PatchApiV1UsersByIdRolesResponses, Permission, PermissionList, PostApiV1AgentGroupsData, PostApiV1AgentGroupsError, PostApiV1AgentGroupsErrors, PostApiV1AgentGroupsResponse, PostApiV1AgentGroupsResponses, PostApiV1AgentsByIdAccountsData, PostApiV1AgentsByIdAccountsError, PostApiV1AgentsByIdAccountsErrors, PostApiV1AgentsByIdAccountsResponse, PostApiV1AgentsByIdAccountsResponses, PostApiV1AgentsByIdDuplicateData, PostApiV1AgentsByIdDuplicateError, PostApiV1AgentsByIdDuplicateErrors, PostApiV1AgentsByIdDuplicateResponse, PostApiV1AgentsByIdDuplicateResponses, PostApiV1AgentsData, PostApiV1AgentsError, PostApiV1AgentsErrors, PostApiV1AgentsResponse, PostApiV1AgentsResponses, PostApiV1ApiKeysData, PostApiV1ApiKeysError, PostApiV1ApiKeysErrors, PostApiV1ApiKeysResponse, PostApiV1ApiKeysResponses, PostApiV1AudioSpeechData, PostApiV1AudioSpeechError, PostApiV1AudioSpeechErrors, PostApiV1AudioSpeechResponse, PostApiV1AudioSpeechResponses, PostApiV1ChatData, PostApiV1ChatError, PostApiV1ChatErrors, PostApiV1ChatGenerateReplyData, PostApiV1ChatGenerateReplyError, PostApiV1ChatGenerateReplyErrors, PostApiV1ChatGenerateReplyResponse, PostApiV1ChatGenerateReplyResponses, PostApiV1ChatGroupsByIdMembersData, PostApiV1ChatGroupsByIdMembersError, PostApiV1ChatGroupsByIdMembersErrors, PostApiV1ChatGroupsByIdMembersResponse, PostApiV1ChatGroupsByIdMembersResponses, PostApiV1ChatGroupsData, PostApiV1ChatGroupsError, PostApiV1ChatGroupsErrors, PostApiV1ChatGroupsResponse, PostApiV1ChatGroupsResponses, PostApiV1ChatResponse, PostApiV1ChatResponses, PostApiV1ChatTranslateData, PostApiV1ChatTranslateError, PostApiV1ChatTranslateErrors, PostApiV1ChatTranslateResponse, PostApiV1ChatTranslateResponses, PostApiV1EvalBenchmarksData, PostApiV1EvalBenchmarksError, PostApiV1EvalBenchmarksErrors, PostApiV1EvalBenchmarksResponse, PostApiV1EvalBenchmarksResponses, PostApiV1EvalDatasetsByDatasetIdTestCasesData, PostApiV1EvalDatasetsByDatasetIdTestCasesError, PostApiV1EvalDatasetsByDatasetIdTestCasesErrors, PostApiV1EvalDatasetsByDatasetIdTestCasesResponse, PostApiV1EvalDatasetsByDatasetIdTestCasesResponses, PostApiV1EvalDatasetsData, PostApiV1EvalDatasetsError, PostApiV1EvalDatasetsErrors, PostApiV1EvalDatasetsResponse, PostApiV1EvalDatasetsResponses, PostApiV1EvalRunsByIdClaimData, PostApiV1EvalRunsByIdClaimError, PostApiV1EvalRunsByIdClaimErrors, PostApiV1EvalRunsByIdClaimResponse, PostApiV1EvalRunsByIdClaimResponses, PostApiV1EvalRunsByIdResultsData, PostApiV1EvalRunsByIdResultsError, PostApiV1EvalRunsByIdResultsErrors, PostApiV1EvalRunsByIdResultsResponse, PostApiV1EvalRunsByIdResultsResponses, PostApiV1EvalRunsByIdRetryErrorsData, PostApiV1EvalRunsByIdRetryErrorsError, PostApiV1EvalRunsByIdRetryErrorsErrors, PostApiV1EvalRunsByIdRetryErrorsResponse, PostApiV1EvalRunsByIdRetryErrorsResponses, PostApiV1EvalRunsData, PostApiV1EvalRunsError, PostApiV1EvalRunsErrors, PostApiV1EvalRunsResponse, PostApiV1EvalRunsResponses, PostApiV1FilesBatchesData, PostApiV1FilesBatchesError, PostApiV1FilesBatchesErrors, PostApiV1FilesBatchesResponse, PostApiV1FilesBatchesResponses, PostApiV1FilesByIdChunksData, PostApiV1FilesByIdChunksError, PostApiV1FilesByIdChunksErrors, PostApiV1FilesByIdChunksResponse, PostApiV1FilesByIdChunksResponses, PostApiV1FilesByIdParsesData, PostApiV1FilesByIdParsesError, PostApiV1FilesByIdParsesErrors, PostApiV1FilesByIdParsesResponse, PostApiV1FilesByIdParsesResponses, PostApiV1FilesData, PostApiV1FilesError, PostApiV1FilesErrors, PostApiV1FilesQueriesData, PostApiV1FilesQueriesError, PostApiV1FilesQueriesErrors, PostApiV1FilesQueriesResponse, PostApiV1FilesQueriesResponses, PostApiV1FilesResponse, PostApiV1FilesResponses, PostApiV1GoalsByIdAdvanceData, PostApiV1GoalsByIdAdvanceError, PostApiV1GoalsByIdAdvanceErrors, PostApiV1GoalsByIdAdvanceResponse, PostApiV1GoalsByIdAdvanceResponses, PostApiV1GoalsByIdPauseData, PostApiV1GoalsByIdPauseError, PostApiV1GoalsByIdPauseErrors, PostApiV1GoalsByIdPauseResponse, PostApiV1GoalsByIdPauseResponses, PostApiV1GoalsByIdRestartData, PostApiV1GoalsByIdRestartError, PostApiV1GoalsByIdRestartErrors, PostApiV1GoalsByIdRestartResponse, PostApiV1GoalsByIdRestartResponses, PostApiV1GoalsByIdResumeData, PostApiV1GoalsByIdResumeError, PostApiV1GoalsByIdResumeErrors, PostApiV1GoalsByIdResumeResponse, PostApiV1GoalsByIdResumeResponses, PostApiV1GoalsData, PostApiV1GoalsError, PostApiV1GoalsErrors, PostApiV1GoalsResponse, PostApiV1GoalsResponses, PostApiV1ImMessagesData, PostApiV1ImMessagesError, PostApiV1ImMessagesErrors, PostApiV1ImMessagesResponse, PostApiV1ImMessagesResponses, PostApiV1ImTopicsByTopicIdReadData, PostApiV1ImTopicsByTopicIdReadError, PostApiV1ImTopicsByTopicIdReadErrors, PostApiV1ImTopicsByTopicIdReadResponse, PostApiV1ImTopicsByTopicIdReadResponses, PostApiV1KnowledgeBasesByIdFilesBatchData, PostApiV1KnowledgeBasesByIdFilesBatchError, PostApiV1KnowledgeBasesByIdFilesBatchErrors, PostApiV1KnowledgeBasesByIdFilesBatchResponse, PostApiV1KnowledgeBasesByIdFilesBatchResponses, PostApiV1KnowledgeBasesByIdFilesMoveData, PostApiV1KnowledgeBasesByIdFilesMoveError, PostApiV1KnowledgeBasesByIdFilesMoveErrors, PostApiV1KnowledgeBasesByIdFilesMoveResponse, PostApiV1KnowledgeBasesByIdFilesMoveResponses, PostApiV1KnowledgeBasesData, PostApiV1KnowledgeBasesError, PostApiV1KnowledgeBasesErrors, PostApiV1KnowledgeBasesResponse, PostApiV1KnowledgeBasesResponses, PostApiV1McpServersByIdSyncData, PostApiV1McpServersByIdSyncError, PostApiV1McpServersByIdSyncErrors, PostApiV1McpServersByIdSyncResponse, PostApiV1McpServersByIdSyncResponses, PostApiV1McpServersData, PostApiV1McpServersError, PostApiV1McpServersErrors, PostApiV1McpServersResponse, PostApiV1McpServersResponses, PostApiV1MessagesData, PostApiV1MessagesError, PostApiV1MessagesErrors, PostApiV1MessagesRepliesData, PostApiV1MessagesRepliesError, PostApiV1MessagesRepliesErrors, PostApiV1MessagesRepliesResponse, PostApiV1MessagesRepliesResponses, PostApiV1MessagesResponse, PostApiV1MessagesResponses, PostApiV1MessageTranslationsByMessageIdData, PostApiV1MessageTranslationsByMessageIdError, PostApiV1MessageTranslationsByMessageIdErrors, PostApiV1MessageTranslationsByMessageIdResponse, PostApiV1MessageTranslationsByMessageIdResponses, PostApiV1ModelsData, PostApiV1ModelsError, PostApiV1ModelsErrors, PostApiV1ModelsResponse, PostApiV1ModelsResponses, PostApiV1NotificationsArchiveAllData, PostApiV1NotificationsArchiveAllError, PostApiV1NotificationsArchiveAllErrors, PostApiV1NotificationsArchiveAllResponse, PostApiV1NotificationsArchiveAllResponses, PostApiV1NotificationsByIdArchiveData, PostApiV1NotificationsByIdArchiveError, PostApiV1NotificationsByIdArchiveErrors, PostApiV1NotificationsByIdArchiveResponse, PostApiV1NotificationsByIdArchiveResponses, PostApiV1NotificationsReadAllData, PostApiV1NotificationsReadAllError, PostApiV1NotificationsReadAllErrors, PostApiV1NotificationsReadAllResponse, PostApiV1NotificationsReadAllResponses, PostApiV1NotificationsReadData, PostApiV1NotificationsReadError, PostApiV1NotificationsReadErrors, PostApiV1NotificationsReadResponse, PostApiV1NotificationsReadResponses, PostApiV1PermissionsData, PostApiV1PermissionsError, PostApiV1PermissionsErrors, PostApiV1PermissionsResponse, PostApiV1PermissionsResponses, PostApiV1ProvidersData, PostApiV1ProvidersError, PostApiV1ProvidersErrors, PostApiV1ProvidersResponse, PostApiV1ProvidersResponses, PostApiV1ResponsesData, PostApiV1ResponsesError, PostApiV1ResponsesErrors, PostApiV1ResponsesResponse, PostApiV1ResponsesResponses, PostApiV1RolesData, PostApiV1RolesError, PostApiV1RolesErrors, PostApiV1RolesResponse, PostApiV1RolesResponses, PostApiV1SignalsSourceEventsData, PostApiV1SignalsSourceEventsError, PostApiV1SignalsSourceEventsErrors, PostApiV1SignalsSourceEventsResponse, PostApiV1SignalsSourceEventsResponses, PostApiV1SignalsTriggerData, PostApiV1SignalsTriggerError, PostApiV1SignalsTriggerErrors, PostApiV1SignalsTriggerResponse, PostApiV1SignalsTriggerResponses, PostApiV1TasksByIdRunsData, PostApiV1TasksByIdRunsError, PostApiV1TasksByIdRunsErrors, PostApiV1TasksByIdRunsResponse, PostApiV1TasksByIdRunsResponses, PostApiV1TasksData, PostApiV1TasksError, PostApiV1TasksErrors, PostApiV1TasksResponse, PostApiV1TasksResponses, PostApiV1TopicsData, PostApiV1TopicsError, PostApiV1TopicsErrors, PostApiV1TopicsResponse, PostApiV1TopicsResponses, PostApiV1UsersData, PostApiV1UsersError, PostApiV1UsersErrors, PostApiV1UsersResponse, PostApiV1UsersResponses, Provider, PushTokenRegistration, PutApiV1AgentsByIdAccountsByAccountIdCredentialData, PutApiV1AgentsByIdAccountsByAccountIdCredentialError, PutApiV1AgentsByIdAccountsByAccountIdCredentialErrors, PutApiV1AgentsByIdAccountsByAccountIdCredentialResponse, PutApiV1AgentsByIdAccountsByAccountIdCredentialResponses, PutApiV1EvalRunsByRunIdTopicsByTopicIdResultData, PutApiV1EvalRunsByRunIdTopicsByTopicIdResultError, PutApiV1EvalRunsByRunIdTopicsByTopicIdResultErrors, PutApiV1EvalRunsByRunIdTopicsByTopicIdResultResponse, PutApiV1EvalRunsByRunIdTopicsByTopicIdResultResponses, PutApiV1PushTokensByDeviceIdData, PutApiV1PushTokensByDeviceIdError, PutApiV1PushTokensByDeviceIdErrors, PutApiV1PushTokensByDeviceIdResponse, PutApiV1PushTokensByDeviceIdResponses, ResponseError, ResponseFunctionCall, ResponseFunctionCallOutput, ResponseObject, ResponseOutputItem, ResponseOutputMessage, ResponseOutputText, ResponseUsage, Role, RoleList, RolePermission, RolePermissionList, RolePermissionsUpdateResult, Task, TaskDetail, TaskDetailActivity, TaskDetailSubtask, TaskDetailWorkspaceNode, TaskLabelRef, TaskList, TaskListItem, TaskRun, TaskRunStarted, TaskStatusUpdateResult, Topic, TopicSummary, TopicThread, Usage, User, UserIdentity, UserList, UserRole } from './types.gen';diff --git a/packages/sdk/src/generated/sdk.gen.ts b/packages/sdk/src/generated/sdk.gen.tsindex 850daf255c2..38ea6ed46f5 100644--- a/packages/sdk/src/generated/sdk.gen.ts+++ b/packages/sdk/src/generated/sdk.gen.ts@@ -66,17 +66,15 @@ export class Health extends HeyApiClient {* Health check*/public check<ThrowOnError extends boolean = false>(options?: Options<GetApiV1HealthData, ThrowOnError>): RequestResult<GetApiV1HealthResponses, unknown, ThrowOnError> {- return (options?.client ?? this.client).get<GetApiV1HealthResponses, unknown, ThrowOnError>({- security: [{ scheme: 'bearer', type: 'http' }],- url: '/api/v1/health',- ...options- });+ return (options?.client ?? this.client).get<GetApiV1HealthResponses, unknown, ThrowOnError>({ url: '/api/v1/health', ...options });}}export class AgentGroups extends HeyApiClient {/*** List agent groups+ *+ * Paginated with `limit` + `cursor`; answers `{ items, total, hasMore, nextCursor }`. Clients that still expect the former bare array can pass the deprecated `format=array`, which returns every item as a plain array.*/public list<ThrowOnError extends boolean = false>(options?: Options<GetApiV1AgentGroupsData, ThrowOnError>): RequestResult<GetApiV1AgentGroupsResponses, GetApiV1AgentGroupsErrors, ThrowOnError> {return (options?.client ?? this.client).get<GetApiV1AgentGroupsResponses, GetApiV1AgentGroupsErrors, ThrowOnError>({@@ -280,6 +278,8 @@ export class Agents extends HeyApiClient {export class ApiKeys extends HeyApiClient {/*** List API keys+ *+ * Paginated with `limit` + `cursor`; answers `{ items, total, hasMore, nextCursor }`. Clients that still expect the former bare array can pass the deprecated `format=array`, which returns every item as a plain array.*/public list<ThrowOnError extends boolean = false>(options?: Options<GetApiV1ApiKeysData, ThrowOnError>): RequestResult<GetApiV1ApiKeysResponses, GetApiV1ApiKeysErrors, ThrowOnError> {return (options?.client ?? this.client).get<GetApiV1ApiKeysResponses, GetApiV1ApiKeysErrors, ThrowOnError>({@@ -1217,6 +1217,8 @@ export class KnowledgeBases extends HeyApiClient {export class McpServers extends HeyApiClient {/*** List remote MCP servers+ *+ * Paginated with `limit` + `cursor`; answers `{ items, total, hasMore, nextCursor }`. Clients that still expect the former bare array can pass the deprecated `format=array`, which returns every item as a plain array.*/public list<ThrowOnError extends boolean = false>(options?: Options<GetApiV1McpServersData, ThrowOnError>): RequestResult<GetApiV1McpServersResponses, GetApiV1McpServersErrors, ThrowOnError> {return (options?.client ?? this.client).get<GetApiV1McpServersResponses, GetApiV1McpServersErrors, ThrowOnError>({diff --git a/packages/sdk/src/generated/types.gen.ts b/packages/sdk/src/generated/types.gen.tsindex ac13ba4b5fa..77d5599bf61 100644--- a/packages/sdk/src/generated/types.gen.ts+++ b/packages/sdk/src/generated/types.gen.ts@@ -5,11 +5,47 @@ export type ClientOptions = {};export type ApiError = {+ code: ApiErrorCode;+ details?: Array<{+ message: string;+ path: string;+ }>;+ /**+ * Deprecated alias of `message`, kept for clients written before `code`.+ */error: string;+ message: string;+ /**+ * Same value as the `X-Request-Id` response header; quote it when reporting an issue.+ */+ requestId: string;success: false;timestamp: string;};+/**+ * Stable machine-readable error code. Codes are only ever added.+ *+ * - `bad_request`: The request was understood but cannot be processed as sent.+ * - `conflict`: The request conflicts with the current state of the resource.+ * - `forbidden`: The caller is authenticated but may not perform this operation.+ * - `idempotency_conflict`: The `Idempotency-Key` is still being processed, or was first used with a different request.+ * - `insufficient_scope`: The API key lacks a capability scope this operation requires.+ * - `internal_error`: An unexpected server error. Safe to retry with backoff.+ * - `not_found`: The resource does not exist or is not visible to the caller.+ * - `payload_too_large`: The request body exceeds the size this operation accepts.+ * - `payment_required`: The operation needs credits or a plan the caller lacks.+ * - `precondition_failed`: A precondition of the operation is not met.+ * - `rate_limited`: Too many requests for this API key. Retry after the `Retry-After` header (seconds).+ * - `service_unavailable`: A dependency is temporarily unavailable.+ * - `unauthorized`: Authentication is missing, invalid or expired.+ * - `unprocessable_entity`: The request is valid but cannot be applied to the resource.+ * - `upstream_error`: An upstream provider failed while serving the request.+ * - `validation_error`: The request failed schema validation; `details` lists each failing field.+ * - `workspace_mismatch`: The `X-Workspace-Id` header does not match the API key, or the caller is not a member of that workspace.+ */+export type ApiErrorCode = 'bad_request' | 'conflict' | 'forbidden' | 'idempotency_conflict' | 'insufficient_scope' | 'internal_error' | 'not_found' | 'payload_too_large' | 'payment_required' | 'precondition_failed' | 'rate_limited' | 'service_unavailable' | 'unauthorized' | 'unprocessable_entity' | 'upstream_error' | 'validation_error' | 'workspace_mismatch';+export type AgentGroup = {createdAt: string;id: string;@@ -18,6 +54,21 @@ export type AgentGroup = {updatedAt: string;};+/**+ * Whether another page follows this one.+ */+export type PageHasMore = boolean;++/**+ * Pass as `cursor` to fetch the next page; `null` on the last page.+ */+export type PageNextCursor = string | null;++/**+ * Number of items across all pages.+ */+export type PageTotal = number;+export type CreatedAgentGroup = {id: string;};@@ -28,8 +79,10 @@ export type DeletedResource = {};export type AgentList = {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;agents: Array<Agent>;- total: number;+ total: PageTotal;};export type Agent = {@@ -209,8 +262,10 @@ export type ChatGenerateReplyResponse = {};export type ChatGroupList = {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;chatGroups: Array<ChatGroup>;- total: number;+ total: PageTotal;};export type ChatGroup = {@@ -679,8 +734,10 @@ export type EvalReportReceipt = {};export type InstalledPluginList = {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;plugins: Array<InstalledPlugin>;- total: number;+ total: PageTotal;};export type InstalledPlugin = {@@ -691,8 +748,10 @@ export type InstalledPlugin = {};export type FileList = {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;files: Array<FileListItem>;- total: number;+ total: PageTotal;totalSize: string;};@@ -833,8 +892,10 @@ export type BatchGetFilesResult = {};export type GoalList = {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;goals: Array<GoalListItem>;- total: number;+ total: PageTotal;};export type GoalListItem = {@@ -1175,8 +1236,10 @@ export type ImReadResult = {};export type KnowledgeBaseList = {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;knowledgeBases: Array<KnowledgeBaseListItem>;- total: number;+ total: PageTotal;};export type KnowledgeBaseListItem = {@@ -1668,8 +1731,10 @@ export type NotificationCategoryCount = {};export type PermissionList = {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;permissions: Array<Permission>;- total: number;+ total: PageTotal;};export type Permission = {@@ -1840,8 +1905,10 @@ export type ResponseUsage = {};export type RoleList = {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;roles: Array<Role>;- total: number;+ total: PageTotal;};export type Role = {@@ -1856,8 +1923,10 @@ export type Role = {};export type RolePermissionList = {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;permissions: Array<RolePermission>;- total: number;+ total: PageTotal;};export type RolePermission = {@@ -2031,8 +2100,10 @@ export type AgentSignalReceipt = {};export type TaskList = {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;tasks: Array<TaskListItem>;- total: number;+ total: PageTotal;};export type TaskListItem = {@@ -2545,7 +2616,9 @@ export type UserIdentity = {};export type UserList = {- total: number;+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;+ total: PageTotal;users: Array<User>;};@@ -2585,6 +2658,11 @@ export type Usage = {}>;};+/**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+export type IdempotencyKey = string;+export type GetApiV1HealthData = {body?: never;path?: never;@@ -2608,11 +2686,30 @@ export type GetApiV1HealthResponse = GetApiV1HealthResponses[keyof GetApiV1Healtexport type GetApiV1AgentGroupsData = {body?: never;path?: never;- query?: never;+ query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;+ /**+ * Deprecated: `array` returns the pre-pagination bare array of every item instead of the paginated object. Migrate to `items` + `nextCursor`.+ *+ * @deprecated+ */+ format?: 'array';+ };url: '/api/v1/agent-groups';};export type GetApiV1AgentGroupsErrors = {+ /**+ * Invalid request+ */+ 400: ApiError;/*** Authentication required*/@@ -2621,6 +2718,10 @@ export type GetApiV1AgentGroupsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -2634,7 +2735,12 @@ export type GetApiV1AgentGroupsResponses = {* Successful response*/200: {- data: Array<AgentGroup>;+ data: {+ items: Array<AgentGroup>;+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;+ total: PageTotal;+ };message?: string;success: true;timestamp: string;@@ -2648,6 +2754,12 @@ export type PostApiV1AgentGroupsData = {name: string;sort?: number | null;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/agent-groups';@@ -2666,6 +2778,10 @@ export type PostApiV1AgentGroupsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -2710,6 +2826,10 @@ export type DeleteApiV1AgentGroupsByIdErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -2758,6 +2878,10 @@ export type GetApiV1AgentGroupsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -2805,6 +2929,10 @@ export type PatchApiV1AgentGroupsByIdErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -2831,9 +2959,27 @@ export type GetApiV1AgentsData = {body?: never;path?: never;query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;- page?: string;- pageSize?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;personal?: 'true' | 'false';};url: '/api/v1/agents';@@ -2852,6 +2998,10 @@ export type GetApiV1AgentsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -2957,6 +3107,12 @@ export type PostApiV1AgentsData = {systemRole?: string | null;title: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/agents';@@ -2975,6 +3131,10 @@ export type PostApiV1AgentsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3019,6 +3179,10 @@ export type DeleteApiV1AgentsByIdErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3067,6 +3231,10 @@ export type GetApiV1AgentsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3192,6 +3360,10 @@ export type PatchApiV1AgentsByIdErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3218,6 +3390,12 @@ export type PostApiV1AgentsByIdDuplicateData = {body: {title?: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -3242,6 +3420,10 @@ export type PostApiV1AgentsByIdDuplicateErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3293,6 +3475,10 @@ export type GetApiV1AgentsByIdAccountsErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3334,6 +3520,12 @@ export type PostApiV1AgentsByIdAccountsData = {displayName?: string;provider: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -3362,6 +3554,10 @@ export type PostApiV1AgentsByIdAccountsErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3414,6 +3610,10 @@ export type DeleteApiV1AgentsByIdAccountsByAccountIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3463,6 +3663,10 @@ export type GetApiV1AgentsByIdAccountsByAccountIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3527,6 +3731,10 @@ export type PatchApiV1AgentsByIdAccountsByAccountIdErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3585,6 +3793,10 @@ export type PutApiV1AgentsByIdAccountsByAccountIdCredentialErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3610,11 +3822,30 @@ export type PutApiV1AgentsByIdAccountsByAccountIdCredentialResponse = PutApiV1Agexport type GetApiV1ApiKeysData = {body?: never;path?: never;- query?: never;+ query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;+ /**+ * Deprecated: `array` returns the pre-pagination bare array of every item instead of the paginated object. Migrate to `items` + `nextCursor`.+ *+ * @deprecated+ */+ format?: 'array';+ };url: '/api/v1/api-keys';};export type GetApiV1ApiKeysErrors = {+ /**+ * Invalid request+ */+ 400: ApiError;/*** Authentication required*/@@ -3623,6 +3854,10 @@ export type GetApiV1ApiKeysErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3636,7 +3871,12 @@ export type GetApiV1ApiKeysResponses = {* Successful response*/200: {- data: Array<ApiKey>;+ data: {+ items: Array<ApiKey>;+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;+ total: PageTotal;+ };message?: string;success: true;timestamp: string;@@ -3651,6 +3891,12 @@ export type PostApiV1ApiKeysData = {name: string;scopes?: Array<'*' | 'agent:read' | 'agent:write' | 'agent:credential:write' | 'eval:read' | 'eval:write' | 'chat:read' | 'chat:write' | 'model:invoke' | 'model:read' | 'model:write' | 'file:read' | 'file:write' | 'knowledge:read' | 'knowledge:write' | 'mcp:read' | 'mcp:write' | 'usage:read' | 'workspace:read' | 'workspace:write' | 'user:read' | 'user:write'> | null;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/api-keys';@@ -3669,6 +3915,10 @@ export type PostApiV1ApiKeysErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3717,6 +3967,10 @@ export type DeleteApiV1ApiKeysByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3765,6 +4019,10 @@ export type GetApiV1ApiKeysByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3817,6 +4075,10 @@ export type PatchApiV1ApiKeysByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3841,6 +4103,12 @@ export type PatchApiV1ApiKeysByIdResponse = PatchApiV1ApiKeysByIdResponses[keyofexport type PostApiV1AudioSpeechData = {body?: never;+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/audio/speech';@@ -3938,6 +4206,12 @@ export type PostApiV1ChatData = {temperature?: number | null;top_p?: number;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/chat';@@ -3956,6 +4230,10 @@ export type PostApiV1ChatErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -3986,6 +4264,12 @@ export type PostApiV1ChatTranslateData = {text: string;to: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/chat/translate';@@ -4004,6 +4288,10 @@ export type PostApiV1ChatTranslateErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4054,6 +4342,12 @@ export type PostApiV1ChatGenerateReplyData = {sessionId: string | null;userMessage: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/chat/generate-reply';@@ -4072,6 +4366,10 @@ export type PostApiV1ChatGenerateReplyErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4098,8 +4396,26 @@ export type GetApiV1ChatGroupsData = {body?: never;path?: never;query?: {- page?: string;- pageSize?: string;+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;personal?: 'true' | 'false';};url: '/api/v1/chat-groups';@@ -4118,6 +4434,10 @@ export type GetApiV1ChatGroupsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4152,6 +4472,12 @@ export type PostApiV1ChatGroupsData = {personal?: boolean;title: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/chat-groups';@@ -4178,6 +4504,10 @@ export type PostApiV1ChatGroupsErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4226,6 +4556,10 @@ export type DeleteApiV1ChatGroupsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4274,6 +4608,10 @@ export type GetApiV1ChatGroupsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4333,6 +4671,10 @@ export type PatchApiV1ChatGroupsByIdErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4387,6 +4729,10 @@ export type DeleteApiV1ChatGroupsByIdMembersErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4413,6 +4759,12 @@ export type PostApiV1ChatGroupsByIdMembersData = {body: {agentIds: Array<string>;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -4437,6 +4789,10 @@ export type PostApiV1ChatGroupsByIdMembersErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4463,9 +4819,31 @@ export type GetApiV1EvalRunsData = {body?: never;path?: never;query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */offset?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */pageSize?: number;experimentId?: string;datasetId?: string;@@ -4487,6 +4865,10 @@ export type GetApiV1EvalRunsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4501,8 +4883,10 @@ export type GetApiV1EvalRunsResponses = {*/200: {data: {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;runs: Array<EvalRun>;- total: number;+ total: PageTotal;};message?: string;success: true;@@ -4533,6 +4917,12 @@ export type PostApiV1EvalRunsData = {name?: string;targetAgentId: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/eval/runs';@@ -4559,6 +4949,10 @@ export type PostApiV1EvalRunsErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4587,9 +4981,31 @@ export type GetApiV1EvalRunsByIdTopicsData = {id: string;};query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */offset?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */pageSize?: number;};url: '/api/v1/eval/runs/{id}/topics';@@ -4612,6 +5028,10 @@ export type GetApiV1EvalRunsByIdTopicsErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4626,9 +5046,11 @@ export type GetApiV1EvalRunsByIdTopicsResponses = {*/200: {data: {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;runId: string;topics: Array<EvalRunTopic>;- total: number;+ total: PageTotal;};message?: string;success: true;@@ -4664,6 +5086,10 @@ export type GetApiV1EvalRunsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4692,9 +5118,31 @@ export type GetApiV1EvalRunsByIdResultsData = {id: string;};query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */offset?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */pageSize?: number;};url: '/api/v1/eval/runs/{id}/results';@@ -4717,6 +5165,10 @@ export type GetApiV1EvalRunsByIdResultsErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4731,9 +5183,11 @@ export type GetApiV1EvalRunsByIdResultsResponses = {*/200: {data: {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;results: Array<EvalRunResult>;runId: string;- total: number;+ total: PageTotal;};message?: string;success: true;@@ -4756,6 +5210,12 @@ export type PostApiV1EvalRunsByIdResultsData = {topicId: string;}>;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -4784,6 +5244,10 @@ export type PostApiV1EvalRunsByIdResultsErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4810,9 +5274,31 @@ export type GetApiV1EvalBenchmarksData = {body?: never;path?: never;query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */offset?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */pageSize?: number;};url: '/api/v1/eval/benchmarks';@@ -4831,6 +5317,10 @@ export type GetApiV1EvalBenchmarksErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -4845,8 +5335,10 @@ export type GetApiV1EvalBenchmarksResponses = {*/200: {data: {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;benchmarks: Array<EvalBenchmark>;- total: number;+ total: PageTotal;};message?: string;success: true;@@ -4931,6 +5423,12 @@ export type PostApiV1EvalBenchmarksData = {};}>;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/eval/benchmarks';@@ -4953,6 +5451,10 @@ export type PostApiV1EvalBenchmarksErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5001,6 +5503,10 @@ export type DeleteApiV1EvalBenchmarksByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5049,6 +5555,10 @@ export type GetApiV1EvalBenchmarksByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5173,6 +5683,10 @@ export type PatchApiV1EvalBenchmarksByIdErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5199,9 +5713,31 @@ export type GetApiV1EvalDatasetsData = {body?: never;path?: never;query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */offset?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */pageSize?: number;benchmarkId?: string;};@@ -5221,6 +5757,10 @@ export type GetApiV1EvalDatasetsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5235,8 +5775,10 @@ export type GetApiV1EvalDatasetsResponses = {*/200: {data: {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;datasets: Array<EvalDataset>;- total: number;+ total: PageTotal;};message?: string;success: true;@@ -5261,6 +5803,12 @@ export type PostApiV1EvalDatasetsData = {} | null;evalMode?: 'equals' | 'contains' | 'regex' | 'starts-with' | 'ends-with' | 'any-of' | 'numeric' | 'extract-match' | 'json-schema' | 'javascript' | 'python' | 'llm-rubric' | 'factuality' | 'answer-relevance' | 'similar' | 'levenshtein' | 'rubric' | 'external' | null;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/eval/datasets';@@ -5287,6 +5835,10 @@ export type PostApiV1EvalDatasetsErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5336,9 +5888,13 @@ export type DeleteApiV1EvalDatasetsByIdErrors = {*/404: ApiError;/**- * Internal server error+ * Rate limit exceeded*/- 500: ApiError;+ 429: ApiError;+ /**+ * Internal server error+ */+ 500: ApiError;};export type DeleteApiV1EvalDatasetsByIdError = DeleteApiV1EvalDatasetsByIdErrors[keyof DeleteApiV1EvalDatasetsByIdErrors];@@ -5383,6 +5939,10 @@ export type GetApiV1EvalDatasetsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5447,6 +6007,10 @@ export type PatchApiV1EvalDatasetsByIdErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5475,9 +6039,31 @@ export type GetApiV1EvalDatasetsByDatasetIdTestCasesData = {datasetId: string;};query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */offset?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */pageSize?: number;};url: '/api/v1/eval/datasets/{datasetId}/test-cases';@@ -5500,6 +6086,10 @@ export type GetApiV1EvalDatasetsByDatasetIdTestCasesErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5514,8 +6104,10 @@ export type GetApiV1EvalDatasetsByDatasetIdTestCasesResponses = {*/200: {data: {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;testCases: Array<EvalTestCase>;- total: number;+ total: PageTotal;};message?: string;success: true;@@ -5586,6 +6178,12 @@ export type PostApiV1EvalDatasetsByDatasetIdTestCasesData = {[key: string]: unknown;} | null;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {datasetId: string;};@@ -5614,6 +6212,10 @@ export type PostApiV1EvalDatasetsByDatasetIdTestCasesErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5662,6 +6264,10 @@ export type DeleteApiV1EvalTestCasesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5710,6 +6316,10 @@ export type GetApiV1EvalTestCasesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5816,6 +6426,10 @@ export type PatchApiV1EvalTestCasesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5840,6 +6454,12 @@ export type PatchApiV1EvalTestCasesByIdResponse = PatchApiV1EvalTestCasesByIdResexport type PostApiV1EvalRunsByIdClaimData = {body?: never;+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -5868,6 +6488,10 @@ export type PostApiV1EvalRunsByIdClaimErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5922,6 +6546,10 @@ export type PatchApiV1EvalRunsByIdStatusErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -5946,6 +6574,12 @@ export type PatchApiV1EvalRunsByIdStatusResponse = PatchApiV1EvalRunsByIdStatusRexport type PostApiV1EvalRunsByIdRetryErrorsData = {body?: never;+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -5974,6 +6608,10 @@ export type PostApiV1EvalRunsByIdRetryErrorsErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6035,6 +6673,10 @@ export type PutApiV1EvalRunsByRunIdTopicsByTopicIdResultErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6061,9 +6703,31 @@ export type GetApiV1PluginsData = {body?: never;path?: never;query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */offset?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */pageSize?: number;};url: '/api/v1/plugins';@@ -6082,6 +6746,10 @@ export type GetApiV1PluginsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6108,9 +6776,27 @@ export type GetApiV1FilesData = {body?: never;path?: never;query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;- page?: string;- pageSize?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;fileType?: string;knowledgeBaseId?: string;queryAll?: string;@@ -6134,6 +6820,10 @@ export type GetApiV1FilesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6166,6 +6856,12 @@ export type PostApiV1FilesData = {skipCheckFileType?: boolean;skipDeduplication?: boolean;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/files';@@ -6184,6 +6880,10 @@ export type PostApiV1FilesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6228,6 +6928,10 @@ export type DeleteApiV1FilesByIdErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6272,6 +6976,10 @@ export type GetApiV1FilesByIdErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6322,6 +7030,10 @@ export type PatchApiV1FilesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6368,6 +7080,10 @@ export type GetApiV1FilesByIdUrlErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6392,6 +7108,12 @@ export type GetApiV1FilesByIdUrlResponse = GetApiV1FilesByIdUrlResponses[keyof Gexport type PostApiV1FilesByIdParsesData = {body?: never;+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -6414,6 +7136,10 @@ export type PostApiV1FilesByIdParsesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6458,6 +7184,10 @@ export type GetApiV1FilesByIdChunksErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6485,6 +7215,12 @@ export type PostApiV1FilesByIdChunksData = {autoEmbedding?: boolean;skipExist?: boolean;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -6505,6 +7241,10 @@ export type PostApiV1FilesByIdChunksErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6536,6 +7276,12 @@ export type PostApiV1FilesBatchesData = {sessionId?: string;skipCheckFileType?: boolean;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/files/batches';@@ -6554,6 +7300,10 @@ export type PostApiV1FilesBatchesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6580,6 +7330,12 @@ export type PostApiV1FilesQueriesData = {body: {fileIds: Array<string>;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/files/queries';@@ -6598,6 +7354,10 @@ export type PostApiV1FilesQueriesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6625,7 +7385,19 @@ export type GetApiV1GoalsData = {path?: never;query?: {agentId?: string;+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */offset?: number;projectId?: string;statuses?: string;@@ -6647,6 +7419,10 @@ export type GetApiV1GoalsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6691,6 +7467,12 @@ export type PostApiV1GoalsData = {}>;title: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/goals';@@ -6713,6 +7495,10 @@ export type PostApiV1GoalsErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6769,6 +7555,10 @@ export type DeleteApiV1GoalsByIdErrors = {* Precondition failed*/412: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6817,6 +7607,10 @@ export type GetApiV1GoalsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6877,6 +7671,10 @@ export type PatchApiV1GoalsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6925,6 +7723,10 @@ export type GetApiV1GoalsByIdSupervisionErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6949,6 +7751,12 @@ export type GetApiV1GoalsByIdSupervisionResponse = GetApiV1GoalsByIdSupervisionRexport type PostApiV1GoalsByIdAdvanceData = {body?: never;+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -6973,6 +7781,10 @@ export type PostApiV1GoalsByIdAdvanceErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -6997,6 +7809,12 @@ export type PostApiV1GoalsByIdAdvanceResponse = PostApiV1GoalsByIdAdvanceResponsexport type PostApiV1GoalsByIdPauseData = {body?: never;+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -7029,6 +7847,10 @@ export type PostApiV1GoalsByIdPauseErrors = {* Precondition failed*/412: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7053,6 +7875,12 @@ export type PostApiV1GoalsByIdPauseResponse = PostApiV1GoalsByIdPauseResponses[kexport type PostApiV1GoalsByIdResumeData = {body?: never;+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -7085,6 +7913,10 @@ export type PostApiV1GoalsByIdResumeErrors = {* Precondition failed*/412: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7111,6 +7943,12 @@ export type PostApiV1GoalsByIdRestartData = {body: {agentId?: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -7139,6 +7977,10 @@ export type PostApiV1GoalsByIdRestartErrors = {* Precondition failed*/412: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7177,6 +8019,12 @@ export type PostApiV1ImMessagesData = {groupId: string;topicId?: string | null;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/im/messages';@@ -7203,6 +8051,10 @@ export type PostApiV1ImMessagesErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7256,6 +8108,10 @@ export type GetApiV1ImTopicsByTopicIdSyncErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7282,6 +8138,12 @@ export type PostApiV1ImTopicsByTopicIdReadData = {body: {messageId: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {topicId: string;};@@ -7306,6 +8168,10 @@ export type PostApiV1ImTopicsByTopicIdReadErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7332,9 +8198,27 @@ export type GetApiV1KnowledgeBasesData = {body?: never;path?: never;query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;- page?: string;- pageSize?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;};url: '/api/v1/knowledge-bases';};@@ -7352,6 +8236,10 @@ export type GetApiV1KnowledgeBasesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7380,6 +8268,12 @@ export type PostApiV1KnowledgeBasesData = {description?: string;name: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/knowledge-bases';@@ -7398,6 +8292,10 @@ export type PostApiV1KnowledgeBasesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7446,6 +8344,10 @@ export type DeleteApiV1KnowledgeBasesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7494,6 +8396,10 @@ export type GetApiV1KnowledgeBasesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7546,6 +8452,10 @@ export type PatchApiV1KnowledgeBasesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7574,9 +8484,27 @@ export type GetApiV1KnowledgeBasesByIdFilesData = {id: string;};query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;- page?: string;- pageSize?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;fileType?: string | null;};url: '/api/v1/knowledge-bases/{id}/files';@@ -7599,6 +8527,10 @@ export type GetApiV1KnowledgeBasesByIdFilesErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7649,6 +8581,10 @@ export type DeleteApiV1KnowledgeBasesByIdFilesBatchErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7675,6 +8611,12 @@ export type PostApiV1KnowledgeBasesByIdFilesBatchData = {body: {fileIds: Array<string>;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -7699,6 +8641,10 @@ export type PostApiV1KnowledgeBasesByIdFilesBatchErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7726,6 +8672,12 @@ export type PostApiV1KnowledgeBasesByIdFilesMoveData = {fileIds: Array<string>;targetKnowledgeBaseId: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -7750,6 +8702,10 @@ export type PostApiV1KnowledgeBasesByIdFilesMoveErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7775,11 +8731,30 @@ export type PostApiV1KnowledgeBasesByIdFilesMoveResponse = PostApiV1KnowledgeBasexport type GetApiV1McpServersData = {body?: never;path?: never;- query?: never;+ query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;+ /**+ * Deprecated: `array` returns the pre-pagination bare array of every item instead of the paginated object. Migrate to `items` + `nextCursor`.+ *+ * @deprecated+ */+ format?: 'array';+ };url: '/api/v1/mcp-servers';};export type GetApiV1McpServersErrors = {+ /**+ * Invalid request+ */+ 400: ApiError;/*** Authentication required*/@@ -7788,6 +8763,10 @@ export type GetApiV1McpServersErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7801,7 +8780,12 @@ export type GetApiV1McpServersResponses = {* Successful response*/200: {- data: Array<McpServer>;+ data: {+ items: Array<McpServer>;+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;+ total: PageTotal;+ };message?: string;success: true;timestamp: string;@@ -7830,6 +8814,12 @@ export type PostApiV1McpServersData = {name: string;serverUrl: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/mcp-servers';@@ -7852,6 +8842,10 @@ export type PostApiV1McpServersErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7900,6 +8894,10 @@ export type DeleteApiV1McpServersByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -7948,6 +8946,10 @@ export type GetApiV1McpServersByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8013,6 +9015,10 @@ export type PatchApiV1McpServersByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8037,6 +9043,12 @@ export type PatchApiV1McpServersByIdResponse = PatchApiV1McpServersByIdResponsesexport type PostApiV1McpServersByIdSyncData = {body?: never;+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -8061,6 +9073,10 @@ export type PostApiV1McpServersByIdSyncErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8100,7 +9116,11 @@ export type GetApiV1MemoriesPersonaErrors = {*/403: ApiError;/**- * Internal server error+ * Rate limit exceeded+ */+ 429: ApiError;+ /**+ * Internal server error*/500: ApiError;};@@ -8137,6 +9157,10 @@ export type GetApiV1MemoriesPersonaVersionsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8175,6 +9199,10 @@ export type DeleteApiV1MemoriesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8224,6 +9252,10 @@ export type DeleteApiV1MemoriesByCategoryByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8268,6 +9300,10 @@ export type GetApiV1MemoriesByCategoryErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8316,6 +9352,10 @@ export type DeleteApiV1MessageTranslationsByMessageIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8360,6 +9400,10 @@ export type GetApiV1MessageTranslationsByMessageIdErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8410,6 +9454,10 @@ export type PatchApiV1MessageTranslationsByMessageIdErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8439,6 +9487,12 @@ export type PostApiV1MessageTranslationsByMessageIdData = {provider?: string | null;to: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {messageId: string;};@@ -8459,6 +9513,10 @@ export type PostApiV1MessageTranslationsByMessageIdErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8506,6 +9564,10 @@ export type GetApiV1MessagesCountErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8552,6 +9614,10 @@ export type DeleteApiV1MessagesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8582,10 +9648,32 @@ export type GetApiV1MessagesData = {topicId?: string | null;userId?: string | null;role?: 'user' | 'system' | 'assistant' | 'tool' | null;+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */pageSize?: number;- limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */offset?: number;};url: '/api/v1/messages';@@ -8604,6 +9692,10 @@ export type GetApiV1MessagesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8618,8 +9710,10 @@ export type GetApiV1MessagesResponses = {*/200: {data: {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;messages: Array<Message>;- total: number;+ total: PageTotal;};message?: string;success: true;@@ -8650,6 +9744,12 @@ export type PostApiV1MessagesData = {files?: Array<string> | null;favorite?: boolean | null;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/messages';@@ -8668,6 +9768,10 @@ export type PostApiV1MessagesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8716,6 +9820,10 @@ export type DeleteApiV1MessagesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8764,6 +9872,10 @@ export type GetApiV1MessagesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8807,6 +9919,12 @@ export type PostApiV1MessagesRepliesData = {files?: Array<string> | null;favorite?: boolean | null;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/messages/replies';@@ -8825,6 +9943,10 @@ export type PostApiV1MessagesRepliesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8851,9 +9973,27 @@ export type GetApiV1ModelsData = {body?: never;path?: never;query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;- page?: string;- pageSize?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;enabled?: string | null;provider?: string | null;type?: 'chat' | 'embedding' | 'tts' | 'asr' | 'image' | 'text2video' | 'text2music' | 'realtime' | 'decision' | 'stt' | null;@@ -8874,6 +10014,10 @@ export type GetApiV1ModelsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8888,8 +10032,10 @@ export type GetApiV1ModelsResponses = {*/200: {data: {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;models: Array<Model>;- total: number;+ total: PageTotal;};message?: string;success: true;@@ -8925,6 +10071,12 @@ export type PostApiV1ModelsData = {id: string;providerId: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/models';@@ -8943,6 +10095,10 @@ export type PostApiV1ModelsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -8992,6 +10148,10 @@ export type GetApiV1ModelsByProviderIdByModelIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9063,6 +10223,10 @@ export type PatchApiV1ModelsByProviderIdByModelIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9111,6 +10275,10 @@ export type GetApiV1NotificationsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9155,6 +10323,10 @@ export type GetApiV1NotificationsSettingsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9246,6 +10418,10 @@ export type PatchApiV1NotificationsSettingsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9284,6 +10460,10 @@ export type GetApiV1NotificationsUnreadCountErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9322,6 +10502,10 @@ export type GetApiV1NotificationsCountsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9348,6 +10532,12 @@ export type PostApiV1NotificationsReadData = {body: {ids: Array<string>;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/notifications/read';@@ -9366,6 +10556,10 @@ export type PostApiV1NotificationsReadErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9389,6 +10583,12 @@ export type PostApiV1NotificationsReadResponse = PostApiV1NotificationsReadRespoexport type PostApiV1NotificationsReadAllData = {body?: never;+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/notifications/read-all';@@ -9403,6 +10603,10 @@ export type PostApiV1NotificationsReadAllErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9426,6 +10630,12 @@ export type PostApiV1NotificationsReadAllResponse = PostApiV1NotificationsReadAlexport type PostApiV1NotificationsArchiveAllData = {body?: never;+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/notifications/archive-all';@@ -9440,6 +10650,10 @@ export type PostApiV1NotificationsArchiveAllErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9463,6 +10677,12 @@ export type PostApiV1NotificationsArchiveAllResponse = PostApiV1NotificationsArcexport type PostApiV1NotificationsByIdArchiveData = {body?: never;+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -9483,6 +10703,10 @@ export type PostApiV1NotificationsByIdArchiveErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9510,9 +10734,27 @@ export type GetApiV1PermissionsData = {query?: {active?: string | null;category?: string | null;+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;- page?: string;- pageSize?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;};url: '/api/v1/permissions';};@@ -9530,6 +10772,10 @@ export type GetApiV1PermissionsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9560,6 +10806,12 @@ export type PostApiV1PermissionsData = {isActive?: boolean | null;name: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/permissions';@@ -9578,6 +10830,10 @@ export type PostApiV1PermissionsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9626,6 +10882,10 @@ export type DeleteApiV1PermissionsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9674,6 +10934,10 @@ export type GetApiV1PermissionsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9728,6 +10992,10 @@ export type PatchApiV1PermissionsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9754,9 +11022,27 @@ export type GetApiV1ProvidersData = {body?: never;path?: never;query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;- page?: string;- pageSize?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;enabled?: boolean;};url: '/api/v1/providers';@@ -9775,6 +11061,10 @@ export type GetApiV1ProvidersErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9789,8 +11079,10 @@ export type GetApiV1ProvidersResponses = {*/200: {data: {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;providers: Array<Provider>;- total: number;+ total: PageTotal;};message?: string;success: true;@@ -9821,6 +11113,12 @@ export type PostApiV1ProvidersData = {source?: 'builtin' | 'custom';id: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/providers';@@ -9839,6 +11137,10 @@ export type PostApiV1ProvidersErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9887,6 +11189,10 @@ export type DeleteApiV1ProvidersByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -9935,6 +11241,10 @@ export type GetApiV1ProvidersByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10001,6 +11311,10 @@ export type PatchApiV1ProvidersByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10047,6 +11361,10 @@ export type DeleteApiV1PushTokensByDeviceIdErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10096,6 +11414,10 @@ export type PutApiV1PushTokensByDeviceIdErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10195,6 +11517,12 @@ export type PostApiV1ResponsesData = {user?: string | null;[key: string]: unknown;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/responses';@@ -10204,19 +11532,63 @@ export type PostApiV1ResponsesErrors = {/*** Invalid request*/- 400: ApiError;+ 400: {+ error: {+ code: 'bad_request' | 'conflict' | 'forbidden' | 'idempotency_conflict' | 'insufficient_scope' | 'internal_error' | 'not_found' | 'payload_too_large' | 'payment_required' | 'precondition_failed' | 'rate_limited' | 'service_unavailable' | 'unauthorized' | 'unprocessable_entity' | 'upstream_error' | 'validation_error' | 'workspace_mismatch';+ message: string;+ param: string | null;+ type: 'invalid_request_error' | 'not_found' | 'rate_limit_error' | 'server_error';+ };+ requestId: string;+ };/*** Authentication required*/- 401: ApiError;+ 401: {+ error: {+ code: 'bad_request' | 'conflict' | 'forbidden' | 'idempotency_conflict' | 'insufficient_scope' | 'internal_error' | 'not_found' | 'payload_too_large' | 'payment_required' | 'precondition_failed' | 'rate_limited' | 'service_unavailable' | 'unauthorized' | 'unprocessable_entity' | 'upstream_error' | 'validation_error' | 'workspace_mismatch';+ message: string;+ param: string | null;+ type: 'invalid_request_error' | 'not_found' | 'rate_limit_error' | 'server_error';+ };+ requestId: string;+ };/*** Insufficient permission*/- 403: ApiError;+ 403: {+ error: {+ code: 'bad_request' | 'conflict' | 'forbidden' | 'idempotency_conflict' | 'insufficient_scope' | 'internal_error' | 'not_found' | 'payload_too_large' | 'payment_required' | 'precondition_failed' | 'rate_limited' | 'service_unavailable' | 'unauthorized' | 'unprocessable_entity' | 'upstream_error' | 'validation_error' | 'workspace_mismatch';+ message: string;+ param: string | null;+ type: 'invalid_request_error' | 'not_found' | 'rate_limit_error' | 'server_error';+ };+ requestId: string;+ };+ /**+ * Rate limit exceeded+ */+ 429: {+ error: {+ code: 'bad_request' | 'conflict' | 'forbidden' | 'idempotency_conflict' | 'insufficient_scope' | 'internal_error' | 'not_found' | 'payload_too_large' | 'payment_required' | 'precondition_failed' | 'rate_limited' | 'service_unavailable' | 'unauthorized' | 'unprocessable_entity' | 'upstream_error' | 'validation_error' | 'workspace_mismatch';+ message: string;+ param: string | null;+ type: 'invalid_request_error' | 'not_found' | 'rate_limit_error' | 'server_error';+ };+ requestId: string;+ };/*** Internal server error*/- 500: ApiError;+ 500: {+ error: {+ code: 'bad_request' | 'conflict' | 'forbidden' | 'idempotency_conflict' | 'insufficient_scope' | 'internal_error' | 'not_found' | 'payload_too_large' | 'payment_required' | 'precondition_failed' | 'rate_limited' | 'service_unavailable' | 'unauthorized' | 'unprocessable_entity' | 'upstream_error' | 'validation_error' | 'workspace_mismatch';+ message: string;+ param: string | null;+ type: 'invalid_request_error' | 'not_found' | 'rate_limit_error' | 'server_error';+ };+ requestId: string;+ };};export type PostApiV1ResponsesError = PostApiV1ResponsesErrors[keyof PostApiV1ResponsesErrors];@@ -10236,9 +11608,27 @@ export type GetApiV1RolesData = {query?: {active?: string | null;system?: string | null;+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;- page?: string;- pageSize?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;};url: '/api/v1/roles';};@@ -10256,6 +11646,10 @@ export type GetApiV1RolesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10286,6 +11680,12 @@ export type PostApiV1RolesData = {isSystem?: boolean | null;name: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/roles';@@ -10304,6 +11704,10 @@ export type PostApiV1RolesErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10352,6 +11756,10 @@ export type DeleteApiV1RolesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10400,6 +11808,10 @@ export type GetApiV1RolesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10454,6 +11866,10 @@ export type PatchApiV1RolesByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10502,6 +11918,10 @@ export type DeleteApiV1RolesByIdPermissionsErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10530,9 +11950,27 @@ export type GetApiV1RolesByIdPermissionsData = {id: string;};query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;- page?: string;- pageSize?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;};url: '/api/v1/roles/{id}/permissions';};@@ -10550,6 +11988,10 @@ export type GetApiV1RolesByIdPermissionsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10601,6 +12043,10 @@ export type PatchApiV1RolesByIdPermissionsErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10633,6 +12079,12 @@ export type PostApiV1SignalsSourceEventsData = {sourceType: 'client.gateway.error' | 'client.gateway.runtime_end' | 'client.gateway.step_complete' | 'client.gateway.stream_start' | 'client.runtime.complete' | 'client.runtime.start';timestamp?: number;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/signals/source-events';@@ -10655,6 +12107,10 @@ export type PostApiV1SignalsSourceEventsErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10689,6 +12145,12 @@ export type PostApiV1SignalsTriggerData = {timestamp?: number;topicId?: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/signals/trigger';@@ -10763,6 +12225,10 @@ export type GetApiV1SignalsReceiptsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10790,7 +12256,19 @@ export type GetApiV1TasksData = {path?: never;query?: {assigneeAgentId?: string;+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */offset?: number;projectId?: string;statuses?: string;@@ -10811,6 +12289,10 @@ export type GetApiV1TasksErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10852,6 +12334,12 @@ export type PostApiV1TasksData = {scheduleTimezone?: string;visibility?: 'private' | 'public';};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/tasks';@@ -10878,6 +12366,10 @@ export type PostApiV1TasksErrors = {* Precondition failed*/412: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10930,6 +12422,10 @@ export type DeleteApiV1TasksByIdErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -10978,6 +12474,10 @@ export type GetApiV1TasksByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11050,6 +12550,10 @@ export type PatchApiV1TasksByIdErrors = {* Precondition failed*/412: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11105,6 +12609,10 @@ export type PatchApiV1TasksByIdStatusErrors = {* Resource conflict*/409: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11155,6 +12663,10 @@ export type GetApiV1TasksByIdRunsErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11181,6 +12693,12 @@ export type PostApiV1TasksByIdRunsData = {body: {prompt?: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path: {id: string;};@@ -11213,6 +12731,10 @@ export type PostApiV1TasksByIdRunsErrors = {* Precondition failed*/412: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11244,9 +12766,27 @@ export type GetApiV1TopicsData = {groupId?: string | null;includeTriggers?: Array<string>;isInbox?: string;+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;- page?: string;- pageSize?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;};url: '/api/v1/topics';};@@ -11264,6 +12804,10 @@ export type GetApiV1TopicsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11278,8 +12822,10 @@ export type GetApiV1TopicsResponses = {*/200: {data: {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;topics: Array<Topic>;- total: number;+ total: PageTotal;};message?: string;success: true;@@ -11297,6 +12843,12 @@ export type PostApiV1TopicsData = {groupId?: string | null;title: string;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/topics';@@ -11315,6 +12867,10 @@ export type PostApiV1TopicsErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11363,6 +12919,10 @@ export type DeleteApiV1TopicsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11411,6 +12971,10 @@ export type GetApiV1TopicsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11469,6 +13033,10 @@ export type PatchApiV1TopicsByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11497,9 +13065,31 @@ export type GetApiV1TopicsByTopicIdThreadsData = {topicId: string;};query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */limit?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */offset?: number;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */pageSize?: number;};url: '/api/v1/topics/{topicId}/threads';@@ -11522,6 +13112,10 @@ export type GetApiV1TopicsByTopicIdThreadsErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11536,8 +13130,10 @@ export type GetApiV1TopicsByTopicIdThreadsResponses = {*/200: {data: {+ hasMore: PageHasMore;+ nextCursor: PageNextCursor;threads: Array<TopicThread>;- total: number;+ total: PageTotal;};message?: string;success: true;@@ -11567,6 +13163,10 @@ export type GetApiV1UsersMeErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11593,9 +13193,27 @@ export type GetApiV1UsersData = {body?: never;path?: never;query?: {+ /**+ * Opaque cursor from the previous page's `nextCursor`. Omit for the first page.+ */+ cursor?: string;+ /**+ * Page size, 1β100. Defaults to 20.+ */+ limit?: number;keyword?: string;- page?: string;- pageSize?: string;+ /**+ * Deprecated: use `cursor` instead.+ *+ * @deprecated+ */+ page?: number;+ /**+ * Deprecated: use `limit` instead.+ *+ * @deprecated+ */+ pageSize?: number;};url: '/api/v1/users';};@@ -11613,6 +13231,10 @@ export type GetApiV1UsersErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11647,6 +13269,12 @@ export type PostApiV1UsersData = {roleIds?: Array<string> | null;username?: string | null;};+ headers?: {+ /**+ * Makes the request safe to retry: the first request with a key runs, and repeats with the same key and the same request within 24 hours get its stored response back (with `Idempotent-Replayed: true`). A repeat while the first is still running answers 409, and reusing a key for a different request (method, path or body) answers 422 (both `idempotency_conflict`). Server errors, 429s and streamed responses are not stored. Keys are scoped to the authenticated user, the credential (API key) and the resolved workspace. A request still running after 5 minutes releases its in-flight claim, after which a retry with the same key runs again.+ */+ 'Idempotency-Key'?: string;+ };path?: never;query?: never;url: '/api/v1/users';@@ -11665,6 +13293,10 @@ export type PostApiV1UsersErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11713,6 +13345,10 @@ export type DeleteApiV1UsersByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11761,6 +13397,10 @@ export type GetApiV1UsersByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11820,6 +13460,10 @@ export type PatchApiV1UsersByIdErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11868,6 +13512,10 @@ export type DeleteApiV1UsersByIdRolesErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11916,6 +13564,10 @@ export type GetApiV1UsersByIdRolesErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -11970,6 +13622,10 @@ export type PatchApiV1UsersByIdRolesErrors = {* Resource not found*/404: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/@@ -12008,6 +13664,10 @@ export type GetApiV1UsageErrors = {* Insufficient permission*/403: ApiError;+ /**+ * Rate limit exceeded+ */+ 429: ApiError;/*** Internal server error*/diff --git a/packages/sdk/src/index.test.ts b/packages/sdk/src/index.test.tsindex 791f69667f2..070b6f0b405 100644--- a/packages/sdk/src/index.test.ts+++ b/packages/sdk/src/index.test.ts@@ -19,14 +19,24 @@ describe('createLobeHub', () => {const { fetch, requests } = captureFetch();const lobehub = createLobeHub({ apiKey: 'sk-lh-test', fetch });- const { data, response } = await lobehub.health.check();+ const { data, response } = await lobehub.users.me();- expect(requests[0].url).toBe(`${DEFAULT_BASE_URL}/api/v1/health`);+ expect(requests[0].url).toBe(`${DEFAULT_BASE_URL}/api/v1/users/me`);expect(requests[0].headers.get('authorization')).toBe('Bearer sk-lh-test');expect(response?.status).toBe(200);expect(data).toEqual({ status: 'ok' });});+ it('sends no credentials to the public health check', async () => {+ const { fetch, requests } = captureFetch();+ const lobehub = createLobeHub({ apiKey: 'sk-lh-test', fetch });++ await lobehub.health.check();++ expect(requests[0].url).toBe(`${DEFAULT_BASE_URL}/api/v1/health`);+ expect(requests[0].headers.get('authorization')).toBeNull();+ });+it('asks the accessToken provider before every request', async () => {const { fetch, requests } = captureFetch();let issued = 0;@@ -36,8 +46,8 @@ describe('createLobeHub', () => {fetch,});- await lobehub.health.check();- await lobehub.health.check();+ await lobehub.users.me();+ await lobehub.users.me();expect(requests.map((request) => request.headers.get('authorization'))).toEqual(['Bearer jwt-1',