@mesadev/rest 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/index.d.mts +3361 -0
  2. package/dist/index.d.mts.map +1 -0
  3. package/dist/index.mjs +944 -0
  4. package/dist/index.mjs.map +1 -0
  5. package/package.json +8 -6
  6. package/src/index.ts +18 -18
  7. package/src/sdk.gen.ts +13 -13
  8. package/src/types.gen.ts +32 -32
  9. package/dist/client/client.gen.d.ts +0 -3
  10. package/dist/client/client.gen.d.ts.map +0 -1
  11. package/dist/client/client.gen.js +0 -235
  12. package/dist/client/client.gen.js.map +0 -1
  13. package/dist/client/index.d.ts +0 -9
  14. package/dist/client/index.d.ts.map +0 -1
  15. package/dist/client/index.js +0 -7
  16. package/dist/client/index.js.map +0 -1
  17. package/dist/client/types.gen.d.ts +0 -118
  18. package/dist/client/types.gen.d.ts.map +0 -1
  19. package/dist/client/types.gen.js +0 -3
  20. package/dist/client/types.gen.js.map +0 -1
  21. package/dist/client/utils.gen.d.ts +0 -34
  22. package/dist/client/utils.gen.d.ts.map +0 -1
  23. package/dist/client/utils.gen.js +0 -229
  24. package/dist/client/utils.gen.js.map +0 -1
  25. package/dist/client.gen.d.ts +0 -13
  26. package/dist/client.gen.d.ts.map +0 -1
  27. package/dist/client.gen.js +0 -4
  28. package/dist/client.gen.js.map +0 -1
  29. package/dist/core/auth.gen.d.ts +0 -19
  30. package/dist/core/auth.gen.d.ts.map +0 -1
  31. package/dist/core/auth.gen.js +0 -15
  32. package/dist/core/auth.gen.js.map +0 -1
  33. package/dist/core/bodySerializer.gen.d.ts +0 -26
  34. package/dist/core/bodySerializer.gen.d.ts.map +0 -1
  35. package/dist/core/bodySerializer.gen.js +0 -58
  36. package/dist/core/bodySerializer.gen.js.map +0 -1
  37. package/dist/core/params.gen.d.ts +0 -44
  38. package/dist/core/params.gen.d.ts.map +0 -1
  39. package/dist/core/params.gen.js +0 -101
  40. package/dist/core/params.gen.js.map +0 -1
  41. package/dist/core/pathSerializer.gen.d.ts +0 -34
  42. package/dist/core/pathSerializer.gen.d.ts.map +0 -1
  43. package/dist/core/pathSerializer.gen.js +0 -107
  44. package/dist/core/pathSerializer.gen.js.map +0 -1
  45. package/dist/core/queryKeySerializer.gen.d.ts +0 -19
  46. package/dist/core/queryKeySerializer.gen.d.ts.map +0 -1
  47. package/dist/core/queryKeySerializer.gen.js +0 -93
  48. package/dist/core/queryKeySerializer.gen.js.map +0 -1
  49. package/dist/core/serverSentEvents.gen.d.ts +0 -72
  50. package/dist/core/serverSentEvents.gen.d.ts.map +0 -1
  51. package/dist/core/serverSentEvents.gen.js +0 -134
  52. package/dist/core/serverSentEvents.gen.js.map +0 -1
  53. package/dist/core/types.gen.d.ts +0 -79
  54. package/dist/core/types.gen.d.ts.map +0 -1
  55. package/dist/core/types.gen.js +0 -3
  56. package/dist/core/types.gen.js.map +0 -1
  57. package/dist/core/utils.gen.d.ts +0 -20
  58. package/dist/core/utils.gen.d.ts.map +0 -1
  59. package/dist/core/utils.gen.js +0 -88
  60. package/dist/core/utils.gen.js.map +0 -1
  61. package/dist/index.d.ts +0 -3
  62. package/dist/index.d.ts.map +0 -1
  63. package/dist/index.js +0 -3
  64. package/dist/index.js.map +0 -1
  65. package/dist/sdk.gen.d.ts +0 -154
  66. package/dist/sdk.gen.d.ts.map +0 -1
  67. package/dist/sdk.gen.js +0 -261
  68. package/dist/sdk.gen.js.map +0 -1
  69. package/dist/types.gen.d.ts +0 -2895
  70. package/dist/types.gen.d.ts.map +0 -1
  71. package/dist/types.gen.js +0 -3
  72. package/dist/types.gen.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/core/bodySerializer.gen.ts","../src/core/params.gen.ts","../src/core/serverSentEvents.gen.ts","../src/core/pathSerializer.gen.ts","../src/core/utils.gen.ts","../src/core/auth.gen.ts","../src/client/utils.gen.ts","../src/client/client.gen.ts","../src/client.gen.ts","../src/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { ArrayStyle, ObjectStyle, SerializerOptions } from './pathSerializer.gen';\n\nexport type QuerySerializer = (query: Record<string, unknown>) => string;\n\nexport type BodySerializer = (body: any) => any;\n\ntype QuerySerializerOptionsObject = {\n allowReserved?: boolean;\n array?: Partial<SerializerOptions<ArrayStyle>>;\n object?: Partial<SerializerOptions<ObjectStyle>>;\n};\n\nexport type QuerySerializerOptions = QuerySerializerOptionsObject & {\n /**\n * Per-parameter serialization overrides. When provided, these settings\n * override the global array/object settings for specific parameter names.\n */\n parameters?: Record<string, QuerySerializerOptionsObject>;\n};\n\nconst serializeFormDataPair = (data: FormData, key: string, value: unknown): void => {\n if (typeof value === 'string' || value instanceof Blob) {\n data.append(key, value);\n } else if (value instanceof Date) {\n data.append(key, value.toISOString());\n } else {\n data.append(key, JSON.stringify(value));\n }\n};\n\nconst serializeUrlSearchParamsPair = (data: URLSearchParams, key: string, value: unknown): void => {\n if (typeof value === 'string') {\n data.append(key, value);\n } else {\n data.append(key, JSON.stringify(value));\n }\n};\n\nexport const formDataBodySerializer = {\n bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(\n body: T,\n ): FormData => {\n const data = new FormData();\n\n Object.entries(body).forEach(([key, value]) => {\n if (value === undefined || value === null) {\n return;\n }\n if (Array.isArray(value)) {\n value.forEach((v) => serializeFormDataPair(data, key, v));\n } else {\n serializeFormDataPair(data, key, value);\n }\n });\n\n return data;\n },\n};\n\nexport const jsonBodySerializer = {\n bodySerializer: <T>(body: T): string =>\n JSON.stringify(body, (_key, value) => (typeof value === 'bigint' ? value.toString() : value)),\n};\n\nexport const urlSearchParamsBodySerializer = {\n bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(body: T): string => {\n const data = new URLSearchParams();\n\n Object.entries(body).forEach(([key, value]) => {\n if (value === undefined || value === null) {\n return;\n }\n if (Array.isArray(value)) {\n value.forEach((v) => serializeUrlSearchParamsPair(data, key, v));\n } else {\n serializeUrlSearchParamsPair(data, key, value);\n }\n });\n\n return data.toString();\n },\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\ntype Slot = 'body' | 'headers' | 'path' | 'query';\n\nexport type Field =\n | {\n in: Exclude<Slot, 'body'>;\n /**\n * Field name. This is the name we want the user to see and use.\n */\n key: string;\n /**\n * Field mapped name. This is the name we want to use in the request.\n * If omitted, we use the same value as `key`.\n */\n map?: string;\n }\n | {\n in: Extract<Slot, 'body'>;\n /**\n * Key isn't required for bodies.\n */\n key?: string;\n map?: string;\n }\n | {\n /**\n * Field name. This is the name we want the user to see and use.\n */\n key: string;\n /**\n * Field mapped name. This is the name we want to use in the request.\n * If `in` is omitted, `map` aliases `key` to the transport layer.\n */\n map: Slot;\n };\n\nexport interface Fields {\n allowExtra?: Partial<Record<Slot, boolean>>;\n args?: ReadonlyArray<Field>;\n}\n\nexport type FieldsConfig = ReadonlyArray<Field | Fields>;\n\nconst extraPrefixesMap: Record<string, Slot> = {\n $body_: 'body',\n $headers_: 'headers',\n $path_: 'path',\n $query_: 'query',\n};\nconst extraPrefixes = Object.entries(extraPrefixesMap);\n\ntype KeyMap = Map<\n string,\n | {\n in: Slot;\n map?: string;\n }\n | {\n in?: never;\n map: Slot;\n }\n>;\n\nconst buildKeyMap = (fields: FieldsConfig, map?: KeyMap): KeyMap => {\n if (!map) {\n map = new Map();\n }\n\n for (const config of fields) {\n if ('in' in config) {\n if (config.key) {\n map.set(config.key, {\n in: config.in,\n map: config.map,\n });\n }\n } else if ('key' in config) {\n map.set(config.key, {\n map: config.map,\n });\n } else if (config.args) {\n buildKeyMap(config.args, map);\n }\n }\n\n return map;\n};\n\ninterface Params {\n body: unknown;\n headers: Record<string, unknown>;\n path: Record<string, unknown>;\n query: Record<string, unknown>;\n}\n\nconst stripEmptySlots = (params: Params) => {\n for (const [slot, value] of Object.entries(params)) {\n if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) {\n delete params[slot as Slot];\n }\n }\n};\n\nexport const buildClientParams = (args: ReadonlyArray<unknown>, fields: FieldsConfig) => {\n const params: Params = {\n body: {},\n headers: {},\n path: {},\n query: {},\n };\n\n const map = buildKeyMap(fields);\n\n let config: FieldsConfig[number] | undefined;\n\n for (const [index, arg] of args.entries()) {\n if (fields[index]) {\n config = fields[index];\n }\n\n if (!config) {\n continue;\n }\n\n if ('in' in config) {\n if (config.key) {\n const field = map.get(config.key)!;\n const name = field.map || config.key;\n if (field.in) {\n (params[field.in] as Record<string, unknown>)[name] = arg;\n }\n } else {\n params.body = arg;\n }\n } else {\n for (const [key, value] of Object.entries(arg ?? {})) {\n const field = map.get(key);\n\n if (field) {\n if (field.in) {\n const name = field.map || key;\n (params[field.in] as Record<string, unknown>)[name] = value;\n } else {\n params[field.map] = value;\n }\n } else {\n const extra = extraPrefixes.find(([prefix]) => key.startsWith(prefix));\n\n if (extra) {\n const [prefix, slot] = extra;\n (params[slot] as Record<string, unknown>)[key.slice(prefix.length)] = value;\n } else if ('allowExtra' in config && config.allowExtra) {\n for (const [slot, allowed] of Object.entries(config.allowExtra)) {\n if (allowed) {\n (params[slot as Slot] as Record<string, unknown>)[key] = value;\n break;\n }\n }\n }\n }\n }\n }\n }\n\n stripEmptySlots(params);\n\n return params;\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Config } from './types.gen';\n\nexport type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> &\n Pick<Config, 'method' | 'responseTransformer' | 'responseValidator'> & {\n /**\n * Fetch API implementation. You can use this option to provide a custom\n * fetch instance.\n *\n * @default globalThis.fetch\n */\n fetch?: typeof fetch;\n /**\n * Implementing clients can call request interceptors inside this hook.\n */\n onRequest?: (url: string, init: RequestInit) => Promise<Request>;\n /**\n * Callback invoked when a network or parsing error occurs during streaming.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param error The error that occurred.\n */\n onSseError?: (error: unknown) => void;\n /**\n * Callback invoked when an event is streamed from the server.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param event Event streamed from the server.\n * @returns Nothing (void).\n */\n onSseEvent?: (event: StreamEvent<TData>) => void;\n serializedBody?: RequestInit['body'];\n /**\n * Default retry delay in milliseconds.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 3000\n */\n sseDefaultRetryDelay?: number;\n /**\n * Maximum number of retry attempts before giving up.\n */\n sseMaxRetryAttempts?: number;\n /**\n * Maximum retry delay in milliseconds.\n *\n * Applies only when exponential backoff is used.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 30000\n */\n sseMaxRetryDelay?: number;\n /**\n * Optional sleep function for retry backoff.\n *\n * Defaults to using `setTimeout`.\n */\n sseSleepFn?: (ms: number) => Promise<void>;\n url: string;\n };\n\nexport interface StreamEvent<TData = unknown> {\n data: TData;\n event?: string;\n id?: string;\n retry?: number;\n}\n\nexport type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {\n stream: AsyncGenerator<\n TData extends Record<string, unknown> ? TData[keyof TData] : TData,\n TReturn,\n TNext\n >;\n};\n\nexport const createSseClient = <TData = unknown>({\n onRequest,\n onSseError,\n onSseEvent,\n responseTransformer,\n responseValidator,\n sseDefaultRetryDelay,\n sseMaxRetryAttempts,\n sseMaxRetryDelay,\n sseSleepFn,\n url,\n ...options\n}: ServerSentEventsOptions): ServerSentEventsResult<TData> => {\n let lastEventId: string | undefined;\n\n const sleep = sseSleepFn ?? ((ms: number) => new Promise((resolve) => setTimeout(resolve, ms)));\n\n const createStream = async function* () {\n let retryDelay: number = sseDefaultRetryDelay ?? 3000;\n let attempt = 0;\n const signal = options.signal ?? new AbortController().signal;\n\n while (true) {\n if (signal.aborted) break;\n\n attempt++;\n\n const headers =\n options.headers instanceof Headers\n ? options.headers\n : new Headers(options.headers as Record<string, string> | undefined);\n\n if (lastEventId !== undefined) {\n headers.set('Last-Event-ID', lastEventId);\n }\n\n try {\n const requestInit: RequestInit = {\n redirect: 'follow',\n ...options,\n body: options.serializedBody,\n headers,\n signal,\n };\n let request = new Request(url, requestInit);\n if (onRequest) {\n request = await onRequest(url, requestInit);\n }\n // fetch must be assigned here, otherwise it would throw the error:\n // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation\n const _fetch = options.fetch ?? globalThis.fetch;\n const response = await _fetch(request);\n\n if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);\n\n if (!response.body) throw new Error('No body in SSE response');\n\n const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();\n\n let buffer = '';\n\n const abortHandler = () => {\n try {\n reader.cancel();\n } catch {\n // noop\n }\n };\n\n signal.addEventListener('abort', abortHandler);\n\n try {\n while (true) {\n const { done, value } = await reader.read();\n if (done) break;\n buffer += value;\n // Normalize line endings: CRLF -> LF, then CR -> LF\n buffer = buffer.replace(/\\r\\n/g, '\\n').replace(/\\r/g, '\\n');\n\n const chunks = buffer.split('\\n\\n');\n buffer = chunks.pop() ?? '';\n\n for (const chunk of chunks) {\n const lines = chunk.split('\\n');\n const dataLines: Array<string> = [];\n let eventName: string | undefined;\n\n for (const line of lines) {\n if (line.startsWith('data:')) {\n dataLines.push(line.replace(/^data:\\s*/, ''));\n } else if (line.startsWith('event:')) {\n eventName = line.replace(/^event:\\s*/, '');\n } else if (line.startsWith('id:')) {\n lastEventId = line.replace(/^id:\\s*/, '');\n } else if (line.startsWith('retry:')) {\n const parsed = Number.parseInt(line.replace(/^retry:\\s*/, ''), 10);\n if (!Number.isNaN(parsed)) {\n retryDelay = parsed;\n }\n }\n }\n\n let data: unknown;\n let parsedJson = false;\n\n if (dataLines.length) {\n const rawData = dataLines.join('\\n');\n try {\n data = JSON.parse(rawData);\n parsedJson = true;\n } catch {\n data = rawData;\n }\n }\n\n if (parsedJson) {\n if (responseValidator) {\n await responseValidator(data);\n }\n\n if (responseTransformer) {\n data = await responseTransformer(data);\n }\n }\n\n onSseEvent?.({\n data,\n event: eventName,\n id: lastEventId,\n retry: retryDelay,\n });\n\n if (dataLines.length) {\n yield data as any;\n }\n }\n }\n } finally {\n signal.removeEventListener('abort', abortHandler);\n reader.releaseLock();\n }\n\n break; // exit loop on normal completion\n } catch (error) {\n // connection failed or aborted; retry after delay\n onSseError?.(error);\n\n if (sseMaxRetryAttempts !== undefined && attempt >= sseMaxRetryAttempts) {\n break; // stop after firing error\n }\n\n // exponential backoff: double retry each attempt, cap at 30s\n const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 30000);\n await sleep(backoff);\n }\n }\n };\n\n const stream = createStream();\n\n return { stream };\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\ninterface SerializeOptions<T> extends SerializePrimitiveOptions, SerializerOptions<T> {}\n\ninterface SerializePrimitiveOptions {\n allowReserved?: boolean;\n name: string;\n}\n\nexport interface SerializerOptions<T> {\n /**\n * @default true\n */\n explode: boolean;\n style: T;\n}\n\nexport type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';\nexport type ArraySeparatorStyle = ArrayStyle | MatrixStyle;\ntype MatrixStyle = 'label' | 'matrix' | 'simple';\nexport type ObjectStyle = 'form' | 'deepObject';\ntype ObjectSeparatorStyle = ObjectStyle | MatrixStyle;\n\ninterface SerializePrimitiveParam extends SerializePrimitiveOptions {\n value: string;\n}\n\nexport const separatorArrayExplode = (style: ArraySeparatorStyle) => {\n switch (style) {\n case 'label':\n return '.';\n case 'matrix':\n return ';';\n case 'simple':\n return ',';\n default:\n return '&';\n }\n};\n\nexport const separatorArrayNoExplode = (style: ArraySeparatorStyle) => {\n switch (style) {\n case 'form':\n return ',';\n case 'pipeDelimited':\n return '|';\n case 'spaceDelimited':\n return '%20';\n default:\n return ',';\n }\n};\n\nexport const separatorObjectExplode = (style: ObjectSeparatorStyle) => {\n switch (style) {\n case 'label':\n return '.';\n case 'matrix':\n return ';';\n case 'simple':\n return ',';\n default:\n return '&';\n }\n};\n\nexport const serializeArrayParam = ({\n allowReserved,\n explode,\n name,\n style,\n value,\n}: SerializeOptions<ArraySeparatorStyle> & {\n value: unknown[];\n}) => {\n if (!explode) {\n const joinedValues = (\n allowReserved ? value : value.map((v) => encodeURIComponent(v as string))\n ).join(separatorArrayNoExplode(style));\n switch (style) {\n case 'label':\n return `.${joinedValues}`;\n case 'matrix':\n return `;${name}=${joinedValues}`;\n case 'simple':\n return joinedValues;\n default:\n return `${name}=${joinedValues}`;\n }\n }\n\n const separator = separatorArrayExplode(style);\n const joinedValues = value\n .map((v) => {\n if (style === 'label' || style === 'simple') {\n return allowReserved ? v : encodeURIComponent(v as string);\n }\n\n return serializePrimitiveParam({\n allowReserved,\n name,\n value: v as string,\n });\n })\n .join(separator);\n return style === 'label' || style === 'matrix' ? separator + joinedValues : joinedValues;\n};\n\nexport const serializePrimitiveParam = ({\n allowReserved,\n name,\n value,\n}: SerializePrimitiveParam) => {\n if (value === undefined || value === null) {\n return '';\n }\n\n if (typeof value === 'object') {\n throw new Error(\n 'Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.',\n );\n }\n\n return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;\n};\n\nexport const serializeObjectParam = ({\n allowReserved,\n explode,\n name,\n style,\n value,\n valueOnly,\n}: SerializeOptions<ObjectSeparatorStyle> & {\n value: Record<string, unknown> | Date;\n valueOnly?: boolean;\n}) => {\n if (value instanceof Date) {\n return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;\n }\n\n if (style !== 'deepObject' && !explode) {\n let values: string[] = [];\n Object.entries(value).forEach(([key, v]) => {\n values = [...values, key, allowReserved ? (v as string) : encodeURIComponent(v as string)];\n });\n const joinedValues = values.join(',');\n switch (style) {\n case 'form':\n return `${name}=${joinedValues}`;\n case 'label':\n return `.${joinedValues}`;\n case 'matrix':\n return `;${name}=${joinedValues}`;\n default:\n return joinedValues;\n }\n }\n\n const separator = separatorObjectExplode(style);\n const joinedValues = Object.entries(value)\n .map(([key, v]) =>\n serializePrimitiveParam({\n allowReserved,\n name: style === 'deepObject' ? `${name}[${key}]` : key,\n value: v as string,\n }),\n )\n .join(separator);\n return style === 'label' || style === 'matrix' ? separator + joinedValues : joinedValues;\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { BodySerializer, QuerySerializer } from './bodySerializer.gen';\nimport {\n type ArraySeparatorStyle,\n serializeArrayParam,\n serializeObjectParam,\n serializePrimitiveParam,\n} from './pathSerializer.gen';\n\nexport interface PathSerializer {\n path: Record<string, unknown>;\n url: string;\n}\n\nexport const PATH_PARAM_RE = /\\{[^{}]+\\}/g;\n\nexport const defaultPathSerializer = ({ path, url: _url }: PathSerializer) => {\n let url = _url;\n const matches = _url.match(PATH_PARAM_RE);\n if (matches) {\n for (const match of matches) {\n let explode = false;\n let name = match.substring(1, match.length - 1);\n let style: ArraySeparatorStyle = 'simple';\n\n if (name.endsWith('*')) {\n explode = true;\n name = name.substring(0, name.length - 1);\n }\n\n if (name.startsWith('.')) {\n name = name.substring(1);\n style = 'label';\n } else if (name.startsWith(';')) {\n name = name.substring(1);\n style = 'matrix';\n }\n\n const value = path[name];\n\n if (value === undefined || value === null) {\n continue;\n }\n\n if (Array.isArray(value)) {\n url = url.replace(match, serializeArrayParam({ explode, name, style, value }));\n continue;\n }\n\n if (typeof value === 'object') {\n url = url.replace(\n match,\n serializeObjectParam({\n explode,\n name,\n style,\n value: value as Record<string, unknown>,\n valueOnly: true,\n }),\n );\n continue;\n }\n\n if (style === 'matrix') {\n url = url.replace(\n match,\n `;${serializePrimitiveParam({\n name,\n value: value as string,\n })}`,\n );\n continue;\n }\n\n const replaceValue = encodeURIComponent(\n style === 'label' ? `.${value as string}` : (value as string),\n );\n url = url.replace(match, replaceValue);\n }\n }\n return url;\n};\n\nexport const getUrl = ({\n baseUrl,\n path,\n query,\n querySerializer,\n url: _url,\n}: {\n baseUrl?: string;\n path?: Record<string, unknown>;\n query?: Record<string, unknown>;\n querySerializer: QuerySerializer;\n url: string;\n}) => {\n const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;\n let url = (baseUrl ?? '') + pathUrl;\n if (path) {\n url = defaultPathSerializer({ path, url });\n }\n let search = query ? querySerializer(query) : '';\n if (search.startsWith('?')) {\n search = search.substring(1);\n }\n if (search) {\n url += `?${search}`;\n }\n return url;\n};\n\nexport function getValidRequestBody(options: {\n body?: unknown;\n bodySerializer?: BodySerializer | null;\n serializedBody?: unknown;\n}) {\n const hasBody = options.body !== undefined;\n const isSerializedBody = hasBody && options.bodySerializer;\n\n if (isSerializedBody) {\n if ('serializedBody' in options) {\n const hasSerializedBody =\n options.serializedBody !== undefined && options.serializedBody !== '';\n\n return hasSerializedBody ? options.serializedBody : null;\n }\n\n // not all clients implement a serializedBody property (i.e. client-axios)\n return options.body !== '' ? options.body : null;\n }\n\n // plain/text body\n if (hasBody) {\n return options.body;\n }\n\n // no body was provided\n return undefined;\n}\n","// This file is auto-generated by @hey-api/openapi-ts\n\nexport type AuthToken = string | undefined;\n\nexport interface Auth {\n /**\n * Which part of the request do we use to send the auth?\n *\n * @default 'header'\n */\n in?: 'header' | 'query' | 'cookie';\n /**\n * Header or query parameter name.\n *\n * @default 'Authorization'\n */\n name?: string;\n scheme?: 'basic' | 'bearer';\n type: 'apiKey' | 'http';\n}\n\nexport const getAuthToken = async (\n auth: Auth,\n callback: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken,\n): Promise<string | undefined> => {\n const token = typeof callback === 'function' ? await callback(auth) : callback;\n\n if (!token) {\n return;\n }\n\n if (auth.scheme === 'bearer') {\n return `Bearer ${token}`;\n }\n\n if (auth.scheme === 'basic') {\n return `Basic ${btoa(token)}`;\n }\n\n return token;\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport { getAuthToken } from '../core/auth.gen';\nimport type { QuerySerializerOptions } from '../core/bodySerializer.gen';\nimport { jsonBodySerializer } from '../core/bodySerializer.gen';\nimport {\n serializeArrayParam,\n serializeObjectParam,\n serializePrimitiveParam,\n} from '../core/pathSerializer.gen';\nimport { getUrl } from '../core/utils.gen';\nimport type { Client, ClientOptions, Config, RequestOptions } from './types.gen';\n\nexport const createQuerySerializer = <T = unknown>({\n parameters = {},\n ...args\n}: QuerySerializerOptions = {}) => {\n const querySerializer = (queryParams: T) => {\n const search: string[] = [];\n if (queryParams && typeof queryParams === 'object') {\n for (const name in queryParams) {\n const value = queryParams[name];\n\n if (value === undefined || value === null) {\n continue;\n }\n\n const options = parameters[name] || args;\n\n if (Array.isArray(value)) {\n const serializedArray = serializeArrayParam({\n allowReserved: options.allowReserved,\n explode: true,\n name,\n style: 'form',\n value,\n ...options.array,\n });\n if (serializedArray) search.push(serializedArray);\n } else if (typeof value === 'object') {\n const serializedObject = serializeObjectParam({\n allowReserved: options.allowReserved,\n explode: true,\n name,\n style: 'deepObject',\n value: value as Record<string, unknown>,\n ...options.object,\n });\n if (serializedObject) search.push(serializedObject);\n } else {\n const serializedPrimitive = serializePrimitiveParam({\n allowReserved: options.allowReserved,\n name,\n value: value as string,\n });\n if (serializedPrimitive) search.push(serializedPrimitive);\n }\n }\n }\n return search.join('&');\n };\n return querySerializer;\n};\n\n/**\n * Infers parseAs value from provided Content-Type header.\n */\nexport const getParseAs = (contentType: string | null): Exclude<Config['parseAs'], 'auto'> => {\n if (!contentType) {\n // If no Content-Type header is provided, the best we can do is return the raw response body,\n // which is effectively the same as the 'stream' option.\n return 'stream';\n }\n\n const cleanContent = contentType.split(';')[0]?.trim();\n\n if (!cleanContent) {\n return;\n }\n\n if (cleanContent.startsWith('application/json') || cleanContent.endsWith('+json')) {\n return 'json';\n }\n\n if (cleanContent === 'multipart/form-data') {\n return 'formData';\n }\n\n if (\n ['application/', 'audio/', 'image/', 'video/'].some((type) => cleanContent.startsWith(type))\n ) {\n return 'blob';\n }\n\n if (cleanContent.startsWith('text/')) {\n return 'text';\n }\n\n return;\n};\n\nconst checkForExistence = (\n options: Pick<RequestOptions, 'auth' | 'query'> & {\n headers: Headers;\n },\n name?: string,\n): boolean => {\n if (!name) {\n return false;\n }\n if (\n options.headers.has(name) ||\n options.query?.[name] ||\n options.headers.get('Cookie')?.includes(`${name}=`)\n ) {\n return true;\n }\n return false;\n};\n\nexport const setAuthParams = async ({\n security,\n ...options\n}: Pick<Required<RequestOptions>, 'security'> &\n Pick<RequestOptions, 'auth' | 'query'> & {\n headers: Headers;\n }) => {\n for (const auth of security) {\n if (checkForExistence(options, auth.name)) {\n continue;\n }\n\n const token = await getAuthToken(auth, options.auth);\n\n if (!token) {\n continue;\n }\n\n const name = auth.name ?? 'Authorization';\n\n switch (auth.in) {\n case 'query':\n if (!options.query) {\n options.query = {};\n }\n options.query[name] = token;\n break;\n case 'cookie':\n options.headers.append('Cookie', `${name}=${token}`);\n break;\n case 'header':\n default:\n options.headers.set(name, token);\n break;\n }\n }\n};\n\nexport const buildUrl: Client['buildUrl'] = (options) =>\n getUrl({\n baseUrl: options.baseUrl as string,\n path: options.path,\n query: options.query,\n querySerializer:\n typeof options.querySerializer === 'function'\n ? options.querySerializer\n : createQuerySerializer(options.querySerializer),\n url: options.url,\n });\n\nexport const mergeConfigs = (a: Config, b: Config): Config => {\n const config = { ...a, ...b };\n if (config.baseUrl?.endsWith('/')) {\n config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);\n }\n config.headers = mergeHeaders(a.headers, b.headers);\n return config;\n};\n\nconst headersEntries = (headers: Headers): Array<[string, string]> => {\n const entries: Array<[string, string]> = [];\n headers.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n};\n\nexport const mergeHeaders = (\n ...headers: Array<Required<Config>['headers'] | undefined>\n): Headers => {\n const mergedHeaders = new Headers();\n for (const header of headers) {\n if (!header) {\n continue;\n }\n\n const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);\n\n for (const [key, value] of iterator) {\n if (value === null) {\n mergedHeaders.delete(key);\n } else if (Array.isArray(value)) {\n for (const v of value) {\n mergedHeaders.append(key, v as string);\n }\n } else if (value !== undefined) {\n // assume object headers are meant to be JSON stringified, i.e. their\n // content value in OpenAPI specification is 'application/json'\n mergedHeaders.set(\n key,\n typeof value === 'object' ? JSON.stringify(value) : (value as string),\n );\n }\n }\n }\n return mergedHeaders;\n};\n\ntype ErrInterceptor<Err, Res, Req, Options> = (\n error: Err,\n response: Res,\n request: Req,\n options: Options,\n) => Err | Promise<Err>;\n\ntype ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;\n\ntype ResInterceptor<Res, Req, Options> = (\n response: Res,\n request: Req,\n options: Options,\n) => Res | Promise<Res>;\n\nclass Interceptors<Interceptor> {\n fns: Array<Interceptor | null> = [];\n\n clear(): void {\n this.fns = [];\n }\n\n eject(id: number | Interceptor): void {\n const index = this.getInterceptorIndex(id);\n if (this.fns[index]) {\n this.fns[index] = null;\n }\n }\n\n exists(id: number | Interceptor): boolean {\n const index = this.getInterceptorIndex(id);\n return Boolean(this.fns[index]);\n }\n\n getInterceptorIndex(id: number | Interceptor): number {\n if (typeof id === 'number') {\n return this.fns[id] ? id : -1;\n }\n return this.fns.indexOf(id);\n }\n\n update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false {\n const index = this.getInterceptorIndex(id);\n if (this.fns[index]) {\n this.fns[index] = fn;\n return id;\n }\n return false;\n }\n\n use(fn: Interceptor): number {\n this.fns.push(fn);\n return this.fns.length - 1;\n }\n}\n\nexport interface Middleware<Req, Res, Err, Options> {\n error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;\n request: Interceptors<ReqInterceptor<Req, Options>>;\n response: Interceptors<ResInterceptor<Res, Req, Options>>;\n}\n\nexport const createInterceptors = <Req, Res, Err, Options>(): Middleware<\n Req,\n Res,\n Err,\n Options\n> => ({\n error: new Interceptors<ErrInterceptor<Err, Res, Req, Options>>(),\n request: new Interceptors<ReqInterceptor<Req, Options>>(),\n response: new Interceptors<ResInterceptor<Res, Req, Options>>(),\n});\n\nconst defaultQuerySerializer = createQuerySerializer({\n allowReserved: false,\n array: {\n explode: true,\n style: 'form',\n },\n object: {\n explode: true,\n style: 'deepObject',\n },\n});\n\nconst defaultHeaders = {\n 'Content-Type': 'application/json',\n};\n\nexport const createConfig = <T extends ClientOptions = ClientOptions>(\n override: Config<Omit<ClientOptions, keyof T> & T> = {},\n): Config<Omit<ClientOptions, keyof T> & T> => ({\n ...jsonBodySerializer,\n headers: defaultHeaders,\n parseAs: 'auto',\n querySerializer: defaultQuerySerializer,\n ...override,\n});\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport { createSseClient } from '../core/serverSentEvents.gen';\nimport type { HttpMethod } from '../core/types.gen';\nimport { getValidRequestBody } from '../core/utils.gen';\nimport type { Client, Config, RequestOptions, ResolvedRequestOptions } from './types.gen';\nimport {\n buildUrl,\n createConfig,\n createInterceptors,\n getParseAs,\n mergeConfigs,\n mergeHeaders,\n setAuthParams,\n} from './utils.gen';\n\ntype ReqInit = Omit<RequestInit, 'body' | 'headers'> & {\n body?: any;\n headers: ReturnType<typeof mergeHeaders>;\n};\n\nexport const createClient = (config: Config = {}): Client => {\n let _config = mergeConfigs(createConfig(), config);\n\n const getConfig = (): Config => ({ ..._config });\n\n const setConfig = (config: Config): Config => {\n _config = mergeConfigs(_config, config);\n return getConfig();\n };\n\n const interceptors = createInterceptors<Request, Response, unknown, ResolvedRequestOptions>();\n\n const beforeRequest = async (options: RequestOptions) => {\n const opts = {\n ..._config,\n ...options,\n fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,\n headers: mergeHeaders(_config.headers, options.headers),\n serializedBody: undefined,\n };\n\n if (opts.security) {\n await setAuthParams({\n ...opts,\n security: opts.security,\n });\n }\n\n if (opts.requestValidator) {\n await opts.requestValidator(opts);\n }\n\n if (opts.body !== undefined && opts.bodySerializer) {\n opts.serializedBody = opts.bodySerializer(opts.body);\n }\n\n // remove Content-Type header if body is empty to avoid sending invalid requests\n if (opts.body === undefined || opts.serializedBody === '') {\n opts.headers.delete('Content-Type');\n }\n\n const url = buildUrl(opts);\n\n return { opts, url };\n };\n\n const request: Client['request'] = async (options) => {\n // @ts-expect-error\n const { opts, url } = await beforeRequest(options);\n const requestInit: ReqInit = {\n redirect: 'follow',\n ...opts,\n body: getValidRequestBody(opts),\n };\n\n let request = new Request(url, requestInit);\n\n for (const fn of interceptors.request.fns) {\n if (fn) {\n request = await fn(request, opts);\n }\n }\n\n // fetch must be assigned here, otherwise it would throw the error:\n // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation\n const _fetch = opts.fetch!;\n let response: Response;\n\n try {\n response = await _fetch(request);\n } catch (error) {\n // Handle fetch exceptions (AbortError, network errors, etc.)\n let finalError = error;\n\n for (const fn of interceptors.error.fns) {\n if (fn) {\n finalError = (await fn(error, undefined as any, request, opts)) as unknown;\n }\n }\n\n finalError = finalError || ({} as unknown);\n\n if (opts.throwOnError) {\n throw finalError;\n }\n\n // Return error response\n return opts.responseStyle === 'data'\n ? undefined\n : {\n error: finalError,\n request,\n response: undefined as any,\n };\n }\n\n for (const fn of interceptors.response.fns) {\n if (fn) {\n response = await fn(response, request, opts);\n }\n }\n\n const result = {\n request,\n response,\n };\n\n if (response.ok) {\n const parseAs =\n (opts.parseAs === 'auto'\n ? getParseAs(response.headers.get('Content-Type'))\n : opts.parseAs) ?? 'json';\n\n if (response.status === 204 || response.headers.get('Content-Length') === '0') {\n let emptyData: any;\n switch (parseAs) {\n case 'arrayBuffer':\n case 'blob':\n case 'text':\n emptyData = await response[parseAs]();\n break;\n case 'formData':\n emptyData = new FormData();\n break;\n case 'stream':\n emptyData = response.body;\n break;\n case 'json':\n default:\n emptyData = {};\n break;\n }\n return opts.responseStyle === 'data'\n ? emptyData\n : {\n data: emptyData,\n ...result,\n };\n }\n\n let data: any;\n switch (parseAs) {\n case 'arrayBuffer':\n case 'blob':\n case 'formData':\n case 'text':\n data = await response[parseAs]();\n break;\n case 'json': {\n // Some servers return 200 with no Content-Length and empty body.\n // response.json() would throw; read as text and parse if non-empty.\n const text = await response.text();\n data = text ? JSON.parse(text) : {};\n break;\n }\n case 'stream':\n return opts.responseStyle === 'data'\n ? response.body\n : {\n data: response.body,\n ...result,\n };\n }\n\n if (parseAs === 'json') {\n if (opts.responseValidator) {\n await opts.responseValidator(data);\n }\n\n if (opts.responseTransformer) {\n data = await opts.responseTransformer(data);\n }\n }\n\n return opts.responseStyle === 'data'\n ? data\n : {\n data,\n ...result,\n };\n }\n\n const textError = await response.text();\n let jsonError: unknown;\n\n try {\n jsonError = JSON.parse(textError);\n } catch {\n // noop\n }\n\n const error = jsonError ?? textError;\n let finalError = error;\n\n for (const fn of interceptors.error.fns) {\n if (fn) {\n finalError = (await fn(error, response, request, opts)) as string;\n }\n }\n\n finalError = finalError || ({} as string);\n\n if (opts.throwOnError) {\n throw finalError;\n }\n\n // TODO: we probably want to return error and improve types\n return opts.responseStyle === 'data'\n ? undefined\n : {\n error: finalError,\n ...result,\n };\n };\n\n const makeMethodFn = (method: Uppercase<HttpMethod>) => (options: RequestOptions) =>\n request({ ...options, method });\n\n const makeSseFn = (method: Uppercase<HttpMethod>) => async (options: RequestOptions) => {\n const { opts, url } = await beforeRequest(options);\n return createSseClient({\n ...opts,\n body: opts.body as BodyInit | null | undefined,\n headers: opts.headers as unknown as Record<string, string>,\n method,\n onRequest: async (url, init) => {\n let request = new Request(url, init);\n for (const fn of interceptors.request.fns) {\n if (fn) {\n request = await fn(request, opts);\n }\n }\n return request;\n },\n serializedBody: getValidRequestBody(opts) as BodyInit | null | undefined,\n url,\n });\n };\n\n return {\n buildUrl,\n connect: makeMethodFn('CONNECT'),\n delete: makeMethodFn('DELETE'),\n get: makeMethodFn('GET'),\n getConfig,\n head: makeMethodFn('HEAD'),\n interceptors,\n options: makeMethodFn('OPTIONS'),\n patch: makeMethodFn('PATCH'),\n post: makeMethodFn('POST'),\n put: makeMethodFn('PUT'),\n request,\n setConfig,\n sse: {\n connect: makeSseFn('CONNECT'),\n delete: makeSseFn('DELETE'),\n get: makeSseFn('GET'),\n head: makeSseFn('HEAD'),\n options: makeSseFn('OPTIONS'),\n patch: makeSseFn('PATCH'),\n post: makeSseFn('POST'),\n put: makeSseFn('PUT'),\n trace: makeSseFn('TRACE'),\n },\n trace: makeMethodFn('TRACE'),\n } as Client;\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport { type ClientOptions, type Config, createClient, createConfig } from './client';\nimport type { ClientOptions as ClientOptions2 } from './types.gen';\n\n/**\n * The `createClientConfig()` function will be called on client initialization\n * and the returned object will become the client's initial configuration.\n *\n * You may want to initialize your client this way instead of calling\n * `setConfig()`. This is useful for example if you're using Next.js\n * to ensure your client always has the correct values.\n */\nexport type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T> | Promise<Config<Required<ClientOptions> & T>>;\n\nexport const client = createClient(createConfig<ClientOptions2>({ baseUrl: 'https://api.mesa.dev/v1' }));\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from './client';\nimport { client } from './client.gen';\nimport type { DeleteByOrgApiKeyByIdData, DeleteByOrgApiKeyByIdErrors, DeleteByOrgApiKeyByIdResponses, DeleteByOrgByRepoBookmarkByBookmarkData, DeleteByOrgByRepoBookmarkByBookmarkErrors, DeleteByOrgByRepoBookmarkByBookmarkResponses, DeleteByOrgByRepoData, DeleteByOrgByRepoErrors, DeleteByOrgByRepoResponses, DeleteByOrgByRepoWebhookByWebhookIdData, DeleteByOrgByRepoWebhookByWebhookIdErrors, DeleteByOrgByRepoWebhookByWebhookIdResponses, GetByOrgApiKeyData, GetByOrgApiKeyErrors, GetByOrgApiKeyResponses, GetByOrgByRepoBookmarkData, GetByOrgByRepoBookmarkErrors, GetByOrgByRepoBookmarkResponses, GetByOrgByRepoCommitByShaData, GetByOrgByRepoCommitByShaErrors, GetByOrgByRepoCommitByShaResponses, GetByOrgByRepoCommitData, GetByOrgByRepoCommitErrors, GetByOrgByRepoCommitResponses, GetByOrgByRepoContentData, GetByOrgByRepoContentErrors, GetByOrgByRepoContentResponses, GetByOrgByRepoData, GetByOrgByRepoDiffData, GetByOrgByRepoDiffErrors, GetByOrgByRepoDiffResponses, GetByOrgByRepoErrors, GetByOrgByRepoResponses, GetByOrgByRepoWebhookData, GetByOrgByRepoWebhookErrors, GetByOrgByRepoWebhookResponses, GetByOrgData, GetByOrgErrors, GetByOrgRepoData, GetByOrgRepoErrors, GetByOrgRepoResponses, GetByOrgRepoTagsData, GetByOrgRepoTagsErrors, GetByOrgRepoTagsResponses, GetByOrgResponses, GetWhoamiData, GetWhoamiErrors, GetWhoamiResponses, PatchByOrgByRepoData, PatchByOrgByRepoErrors, PatchByOrgByRepoResponses, PostByOrgApiKeyData, PostByOrgApiKeyErrors, PostByOrgApiKeyResponses, PostByOrgByRepoBookmarkData, PostByOrgByRepoBookmarkErrors, PostByOrgByRepoBookmarkResponses, PostByOrgByRepoCommitData, PostByOrgByRepoCommitErrors, PostByOrgByRepoCommitResponses, PostByOrgByRepoWebhookData, PostByOrgByRepoWebhookErrors, PostByOrgByRepoWebhookResponses, PostByOrgRepoBulkTagsData, PostByOrgRepoBulkTagsErrors, PostByOrgRepoBulkTagsResponses, PostByOrgRepoData, PostByOrgRepoErrors, PostByOrgRepoResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Get caller identity\n *\n * Get the authenticated organization, effective scopes, and API key metadata\n */\nexport const getWhoami = <ThrowOnError extends boolean = false>(options?: Options<GetWhoamiData, ThrowOnError>) => (options?.client ?? client).get<GetWhoamiResponses, GetWhoamiErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/whoami',\n ...options\n});\n\n/**\n * List API keys\n *\n * List all API keys for the organization (key values are not returned)\n */\nexport const getByOrgApiKey = <ThrowOnError extends boolean = false>(options: Options<GetByOrgApiKeyData, ThrowOnError>) => (options.client ?? client).get<GetByOrgApiKeyResponses, GetByOrgApiKeyErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/api-key',\n ...options\n});\n\n/**\n * Create API key\n *\n * Create a new API key for programmatic access\n */\nexport const postByOrgApiKey = <ThrowOnError extends boolean = false>(options: Options<PostByOrgApiKeyData, ThrowOnError>) => (options.client ?? client).post<PostByOrgApiKeyResponses, PostByOrgApiKeyErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/api-key',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\n/**\n * Revoke API key\n *\n * Revoke an API key by its ID\n */\nexport const deleteByOrgApiKeyById = <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgApiKeyByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteByOrgApiKeyByIdResponses, DeleteByOrgApiKeyByIdErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/api-key/{id}',\n ...options\n});\n\n/**\n * List repositories\n *\n * List repositories in the organization using cursor pagination\n */\nexport const getByOrgRepo = <ThrowOnError extends boolean = false>(options: Options<GetByOrgRepoData, ThrowOnError>) => (options.client ?? client).get<GetByOrgRepoResponses, GetByOrgRepoErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/repo',\n ...options\n});\n\n/**\n * Create repository\n *\n * Create a new repository in the organization\n */\nexport const postByOrgRepo = <ThrowOnError extends boolean = false>(options: Options<PostByOrgRepoData, ThrowOnError>) => (options.client ?? client).post<PostByOrgRepoResponses, PostByOrgRepoErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/repo',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\n/**\n * Delete repository\n *\n * Permanently delete a repository and all its data\n */\nexport const deleteByOrgByRepo = <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgByRepoData, ThrowOnError>) => (options.client ?? client).delete<DeleteByOrgByRepoResponses, DeleteByOrgByRepoErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}',\n ...options\n});\n\n/**\n * Get repository\n *\n * Get metadata for a specific repository\n */\nexport const getByOrgByRepo = <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoData, ThrowOnError>) => (options.client ?? client).get<GetByOrgByRepoResponses, GetByOrgByRepoErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}',\n ...options\n});\n\n/**\n * Update repository\n *\n * Update repository name, default branch, tags, or upstream configuration. Tags are patched: set values to add/update and null values to remove.\n */\nexport const patchByOrgByRepo = <ThrowOnError extends boolean = false>(options: Options<PatchByOrgByRepoData, ThrowOnError>) => (options.client ?? client).patch<PatchByOrgByRepoResponses, PatchByOrgByRepoErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\n/**\n * Get repo Tags\n *\n * Get repository tag values and counts\n */\nexport const getByOrgRepoTags = <ThrowOnError extends boolean = false>(options: Options<GetByOrgRepoTagsData, ThrowOnError>) => (options.client ?? client).get<GetByOrgRepoTagsResponses, GetByOrgRepoTagsErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/repo/tags',\n ...options\n});\n\n/**\n * Bulk update Tags\n *\n * Bulk set or remove repo tags\n */\nexport const postByOrgRepoBulkTags = <ThrowOnError extends boolean = false>(options: Options<PostByOrgRepoBulkTagsData, ThrowOnError>) => (options.client ?? client).post<PostByOrgRepoBulkTagsResponses, PostByOrgRepoBulkTagsErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/repo/bulk/tags',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\n/**\n * Get content\n *\n * Get file content or directory listing at a path. Use Accept: application/json for the JSON union response, or Accept: application/octet-stream for raw file bytes. Directory + octet-stream requests return 406 Not Acceptable.\n */\nexport const getByOrgByRepoContent = <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoContentData, ThrowOnError>) => (options.client ?? client).get<GetByOrgByRepoContentResponses, GetByOrgByRepoContentErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}/content',\n ...options\n});\n\n/**\n * List bookmarks\n *\n * List all bookmarks in a repository\n */\nexport const getByOrgByRepoBookmark = <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoBookmarkData, ThrowOnError>) => (options.client ?? client).get<GetByOrgByRepoBookmarkResponses, GetByOrgByRepoBookmarkErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}/bookmark',\n ...options\n});\n\n/**\n * Create bookmark\n *\n * Create a new bookmark from an existing commit\n */\nexport const postByOrgByRepoBookmark = <ThrowOnError extends boolean = false>(options: Options<PostByOrgByRepoBookmarkData, ThrowOnError>) => (options.client ?? client).post<PostByOrgByRepoBookmarkResponses, PostByOrgByRepoBookmarkErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}/bookmark',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\n/**\n * Delete bookmark\n *\n * Delete a bookmark from a repository\n */\nexport const deleteByOrgByRepoBookmarkByBookmark = <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgByRepoBookmarkByBookmarkData, ThrowOnError>) => (options.client ?? client).delete<DeleteByOrgByRepoBookmarkByBookmarkResponses, DeleteByOrgByRepoBookmarkByBookmarkErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}/bookmark/{bookmark}',\n ...options\n});\n\n/**\n * List commits\n *\n * List commits for a repository from a specific ref\n */\nexport const getByOrgByRepoCommit = <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoCommitData, ThrowOnError>) => (options.client ?? client).get<GetByOrgByRepoCommitResponses, GetByOrgByRepoCommitErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}/commit',\n ...options\n});\n\n/**\n * Create commit\n *\n * Create a new commit on a branch with file changes\n */\nexport const postByOrgByRepoCommit = <ThrowOnError extends boolean = false>(options: Options<PostByOrgByRepoCommitData, ThrowOnError>) => (options.client ?? client).post<PostByOrgByRepoCommitResponses, PostByOrgByRepoCommitErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}/commit',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\n/**\n * Get commit\n *\n * Retrieve a specific commit by its SHA\n */\nexport const getByOrgByRepoCommitBySha = <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoCommitByShaData, ThrowOnError>) => (options.client ?? client).get<GetByOrgByRepoCommitByShaResponses, GetByOrgByRepoCommitByShaErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}/commit/{sha}',\n ...options\n});\n\n/**\n * Get diff\n *\n * Retrieve the diff between two commit OIDs\n */\nexport const getByOrgByRepoDiff = <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoDiffData, ThrowOnError>) => (options.client ?? client).get<GetByOrgByRepoDiffResponses, GetByOrgByRepoDiffErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}/diff',\n ...options\n});\n\n/**\n * List webhooks\n *\n * List webhooks for a repository\n */\nexport const getByOrgByRepoWebhook = <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoWebhookData, ThrowOnError>) => (options.client ?? client).get<GetByOrgByRepoWebhookResponses, GetByOrgByRepoWebhookErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}/webhook',\n ...options\n});\n\n/**\n * Create webhook\n *\n * Create a webhook for a repository\n */\nexport const postByOrgByRepoWebhook = <ThrowOnError extends boolean = false>(options: Options<PostByOrgByRepoWebhookData, ThrowOnError>) => (options.client ?? client).post<PostByOrgByRepoWebhookResponses, PostByOrgByRepoWebhookErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}/webhook',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\n/**\n * Delete webhook\n *\n * Delete a webhook from a repository\n */\nexport const deleteByOrgByRepoWebhookByWebhookId = <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgByRepoWebhookByWebhookIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteByOrgByRepoWebhookByWebhookIdResponses, DeleteByOrgByRepoWebhookByWebhookIdErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}/{repo}/webhook/{webhookId}',\n ...options\n});\n\n/**\n * Get organization\n *\n * Get organization metadata and repository counts\n */\nexport const getByOrg = <ThrowOnError extends boolean = false>(options: Options<GetByOrgData, ThrowOnError>) => (options.client ?? client).get<GetByOrgResponses, GetByOrgErrors, ThrowOnError>({\n security: [{ scheme: 'bearer', type: 'http' }],\n url: '/{org}',\n ...options\n});\n"],"mappings":";AA6DA,MAAa,qBAAqB,EAChC,iBAAoB,SAClB,KAAK,UAAU,OAAO,MAAM,UAAW,OAAO,UAAU,WAAW,MAAM,UAAU,GAAG,MAAO,EAChG;ACdqB,OAAO,QANkB;CAC7C,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,SAAS;CACV,CACqD;;;AC+BtD,MAAa,mBAAoC,EAC/C,WACA,YACA,YACA,qBACA,mBACA,sBACA,qBACA,kBACA,YACA,KACA,GAAG,cACyD;CAC5D,IAAI;CAEJ,MAAM,QAAQ,gBAAgB,OAAe,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+D,QAAQ,UAAU,QAAQ,IAA+E;CAChP,UAAU,CAAC;EAAE,QAAQ;EAAU,MAAM;EAAQ,CAAC;CAC9C,KAAK;CACL,GAAG;CACN,CAAC;;;;;;AAOF,MAAa,0BAAgE,aAAgE,QAAQ,UAAU,QAAQ,KAAkF;CACrP,UAAU,CAAC;EAAE,QAAQ;EAAU,MAAM;EAAQ,CAAC;CAC9C,KAAK;CACL,GAAG;CACH,SAAS;EACL,gBAAgB;EAChB,GAAG,QAAQ;EACd;CACJ,CAAC;;;;;;AAOF,MAAa,uCAA6E,aAA6E,QAAQ,UAAU,QAAQ,OAA8G;CAC3S,UAAU,CAAC;EAAE,QAAQ;EAAU,MAAM;EAAQ,CAAC;CAC9C,KAAK;CACL,GAAG;CACN,CAAC;;;;;;AAOF,MAAa,YAAkD,aAAkD,QAAQ,UAAU,QAAQ,IAAqD;CAC5L,UAAU,CAAC;EAAE,QAAQ;EAAU,MAAM;EAAQ,CAAC;CAC9C,KAAK;CACL,GAAG;CACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mesadev/rest",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "TypeScript REST SDK for the Mesa API",
5
5
  "author": "Mesa",
6
6
  "license": "Apache-2.0",
@@ -13,12 +13,12 @@
13
13
  "access": "public"
14
14
  },
15
15
  "type": "module",
16
- "main": "./dist/index.js",
17
- "types": "./dist/index.d.ts",
16
+ "main": "./dist/index.mjs",
17
+ "types": "./dist/index.d.mts",
18
18
  "exports": {
19
19
  ".": {
20
- "import": "./dist/index.js",
21
- "types": "./dist/index.d.ts"
20
+ "import": "./dist/index.mjs",
21
+ "types": "./dist/index.d.mts"
22
22
  }
23
23
  },
24
24
  "files": [
@@ -27,7 +27,8 @@
27
27
  "README.md"
28
28
  ],
29
29
  "scripts": {
30
- "build": "tsc -p tsconfig.json",
30
+ "build": "tsdown",
31
+ "tsc:build": "tsdown",
31
32
  "typecheck": "tsc --noEmit -p tsconfig.json",
32
33
  "lint": "biome check src package.json README.md",
33
34
  "sync": "../../../../bazel.sh run --config=local '--@com_google_protobuf//bazel/toolchains:allow_nonstandard_protoc' //packages/sdk/rest/ts:update_typescript_rest",
@@ -37,6 +38,7 @@
37
38
  "@hey-api/client-fetch": "^0.13.1"
38
39
  },
39
40
  "devDependencies": {
41
+ "tsdown": "^0.21.4",
40
42
  "typescript": "^5.9.3"
41
43
  }
42
44
  }
package/src/index.ts CHANGED
@@ -3,12 +3,12 @@
3
3
  export {
4
4
  deleteByOrgApiKeyById,
5
5
  deleteByOrgByRepo,
6
- deleteByOrgByRepoBranchByBranch,
6
+ deleteByOrgByRepoBookmarkByBookmark,
7
7
  deleteByOrgByRepoWebhookByWebhookId,
8
8
  getByOrg,
9
9
  getByOrgApiKey,
10
10
  getByOrgByRepo,
11
- getByOrgByRepoBranch,
11
+ getByOrgByRepoBookmark,
12
12
  getByOrgByRepoCommit,
13
13
  getByOrgByRepoCommitBySha,
14
14
  getByOrgByRepoContent,
@@ -20,7 +20,7 @@ export {
20
20
  type Options,
21
21
  patchByOrgByRepo,
22
22
  postByOrgApiKey,
23
- postByOrgByRepoBranch,
23
+ postByOrgByRepoBookmark,
24
24
  postByOrgByRepoCommit,
25
25
  postByOrgByRepoWebhook,
26
26
  postByOrgRepo,
@@ -33,11 +33,11 @@ export type {
33
33
  DeleteByOrgApiKeyByIdErrors,
34
34
  DeleteByOrgApiKeyByIdResponse,
35
35
  DeleteByOrgApiKeyByIdResponses,
36
- DeleteByOrgByRepoBranchByBranchData,
37
- DeleteByOrgByRepoBranchByBranchError,
38
- DeleteByOrgByRepoBranchByBranchErrors,
39
- DeleteByOrgByRepoBranchByBranchResponse,
40
- DeleteByOrgByRepoBranchByBranchResponses,
36
+ DeleteByOrgByRepoBookmarkByBookmarkData,
37
+ DeleteByOrgByRepoBookmarkByBookmarkError,
38
+ DeleteByOrgByRepoBookmarkByBookmarkErrors,
39
+ DeleteByOrgByRepoBookmarkByBookmarkResponse,
40
+ DeleteByOrgByRepoBookmarkByBookmarkResponses,
41
41
  DeleteByOrgByRepoData,
42
42
  DeleteByOrgByRepoError,
43
43
  DeleteByOrgByRepoErrors,
@@ -53,11 +53,11 @@ export type {
53
53
  GetByOrgApiKeyErrors,
54
54
  GetByOrgApiKeyResponse,
55
55
  GetByOrgApiKeyResponses,
56
- GetByOrgByRepoBranchData,
57
- GetByOrgByRepoBranchError,
58
- GetByOrgByRepoBranchErrors,
59
- GetByOrgByRepoBranchResponse,
60
- GetByOrgByRepoBranchResponses,
56
+ GetByOrgByRepoBookmarkData,
57
+ GetByOrgByRepoBookmarkError,
58
+ GetByOrgByRepoBookmarkErrors,
59
+ GetByOrgByRepoBookmarkResponse,
60
+ GetByOrgByRepoBookmarkResponses,
61
61
  GetByOrgByRepoCommitByShaData,
62
62
  GetByOrgByRepoCommitByShaError,
63
63
  GetByOrgByRepoCommitByShaErrors,
@@ -118,11 +118,11 @@ export type {
118
118
  PostByOrgApiKeyErrors,
119
119
  PostByOrgApiKeyResponse,
120
120
  PostByOrgApiKeyResponses,
121
- PostByOrgByRepoBranchData,
122
- PostByOrgByRepoBranchError,
123
- PostByOrgByRepoBranchErrors,
124
- PostByOrgByRepoBranchResponse,
125
- PostByOrgByRepoBranchResponses,
121
+ PostByOrgByRepoBookmarkData,
122
+ PostByOrgByRepoBookmarkError,
123
+ PostByOrgByRepoBookmarkErrors,
124
+ PostByOrgByRepoBookmarkResponse,
125
+ PostByOrgByRepoBookmarkResponses,
126
126
  PostByOrgByRepoCommitData,
127
127
  PostByOrgByRepoCommitError,
128
128
  PostByOrgByRepoCommitErrors,
package/src/sdk.gen.ts CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type { Client, Options as Options2, TDataShape } from './client';
4
4
  import { client } from './client.gen';
5
- import type { DeleteByOrgApiKeyByIdData, DeleteByOrgApiKeyByIdErrors, DeleteByOrgApiKeyByIdResponses, DeleteByOrgByRepoBranchByBranchData, DeleteByOrgByRepoBranchByBranchErrors, DeleteByOrgByRepoBranchByBranchResponses, DeleteByOrgByRepoData, DeleteByOrgByRepoErrors, DeleteByOrgByRepoResponses, DeleteByOrgByRepoWebhookByWebhookIdData, DeleteByOrgByRepoWebhookByWebhookIdErrors, DeleteByOrgByRepoWebhookByWebhookIdResponses, GetByOrgApiKeyData, GetByOrgApiKeyErrors, GetByOrgApiKeyResponses, GetByOrgByRepoBranchData, GetByOrgByRepoBranchErrors, GetByOrgByRepoBranchResponses, GetByOrgByRepoCommitByShaData, GetByOrgByRepoCommitByShaErrors, GetByOrgByRepoCommitByShaResponses, GetByOrgByRepoCommitData, GetByOrgByRepoCommitErrors, GetByOrgByRepoCommitResponses, GetByOrgByRepoContentData, GetByOrgByRepoContentErrors, GetByOrgByRepoContentResponses, GetByOrgByRepoData, GetByOrgByRepoDiffData, GetByOrgByRepoDiffErrors, GetByOrgByRepoDiffResponses, GetByOrgByRepoErrors, GetByOrgByRepoResponses, GetByOrgByRepoWebhookData, GetByOrgByRepoWebhookErrors, GetByOrgByRepoWebhookResponses, GetByOrgData, GetByOrgErrors, GetByOrgRepoData, GetByOrgRepoErrors, GetByOrgRepoResponses, GetByOrgRepoTagsData, GetByOrgRepoTagsErrors, GetByOrgRepoTagsResponses, GetByOrgResponses, GetWhoamiData, GetWhoamiErrors, GetWhoamiResponses, PatchByOrgByRepoData, PatchByOrgByRepoErrors, PatchByOrgByRepoResponses, PostByOrgApiKeyData, PostByOrgApiKeyErrors, PostByOrgApiKeyResponses, PostByOrgByRepoBranchData, PostByOrgByRepoBranchErrors, PostByOrgByRepoBranchResponses, PostByOrgByRepoCommitData, PostByOrgByRepoCommitErrors, PostByOrgByRepoCommitResponses, PostByOrgByRepoWebhookData, PostByOrgByRepoWebhookErrors, PostByOrgByRepoWebhookResponses, PostByOrgRepoBulkTagsData, PostByOrgRepoBulkTagsErrors, PostByOrgRepoBulkTagsResponses, PostByOrgRepoData, PostByOrgRepoErrors, PostByOrgRepoResponses } from './types.gen';
5
+ import type { DeleteByOrgApiKeyByIdData, DeleteByOrgApiKeyByIdErrors, DeleteByOrgApiKeyByIdResponses, DeleteByOrgByRepoBookmarkByBookmarkData, DeleteByOrgByRepoBookmarkByBookmarkErrors, DeleteByOrgByRepoBookmarkByBookmarkResponses, DeleteByOrgByRepoData, DeleteByOrgByRepoErrors, DeleteByOrgByRepoResponses, DeleteByOrgByRepoWebhookByWebhookIdData, DeleteByOrgByRepoWebhookByWebhookIdErrors, DeleteByOrgByRepoWebhookByWebhookIdResponses, GetByOrgApiKeyData, GetByOrgApiKeyErrors, GetByOrgApiKeyResponses, GetByOrgByRepoBookmarkData, GetByOrgByRepoBookmarkErrors, GetByOrgByRepoBookmarkResponses, GetByOrgByRepoCommitByShaData, GetByOrgByRepoCommitByShaErrors, GetByOrgByRepoCommitByShaResponses, GetByOrgByRepoCommitData, GetByOrgByRepoCommitErrors, GetByOrgByRepoCommitResponses, GetByOrgByRepoContentData, GetByOrgByRepoContentErrors, GetByOrgByRepoContentResponses, GetByOrgByRepoData, GetByOrgByRepoDiffData, GetByOrgByRepoDiffErrors, GetByOrgByRepoDiffResponses, GetByOrgByRepoErrors, GetByOrgByRepoResponses, GetByOrgByRepoWebhookData, GetByOrgByRepoWebhookErrors, GetByOrgByRepoWebhookResponses, GetByOrgData, GetByOrgErrors, GetByOrgRepoData, GetByOrgRepoErrors, GetByOrgRepoResponses, GetByOrgRepoTagsData, GetByOrgRepoTagsErrors, GetByOrgRepoTagsResponses, GetByOrgResponses, GetWhoamiData, GetWhoamiErrors, GetWhoamiResponses, PatchByOrgByRepoData, PatchByOrgByRepoErrors, PatchByOrgByRepoResponses, PostByOrgApiKeyData, PostByOrgApiKeyErrors, PostByOrgApiKeyResponses, PostByOrgByRepoBookmarkData, PostByOrgByRepoBookmarkErrors, PostByOrgByRepoBookmarkResponses, PostByOrgByRepoCommitData, PostByOrgByRepoCommitErrors, PostByOrgByRepoCommitResponses, PostByOrgByRepoWebhookData, PostByOrgByRepoWebhookErrors, PostByOrgByRepoWebhookResponses, PostByOrgRepoBulkTagsData, PostByOrgRepoBulkTagsErrors, PostByOrgRepoBulkTagsResponses, PostByOrgRepoData, PostByOrgRepoErrors, PostByOrgRepoResponses } from './types.gen';
6
6
 
7
7
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
8
8
  /**
@@ -167,24 +167,24 @@ export const getByOrgByRepoContent = <ThrowOnError extends boolean = false>(opti
167
167
  });
168
168
 
169
169
  /**
170
- * List branches
170
+ * List bookmarks
171
171
  *
172
- * List all branches in a repository
172
+ * List all bookmarks in a repository
173
173
  */
174
- export const getByOrgByRepoBranch = <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoBranchData, ThrowOnError>) => (options.client ?? client).get<GetByOrgByRepoBranchResponses, GetByOrgByRepoBranchErrors, ThrowOnError>({
174
+ export const getByOrgByRepoBookmark = <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoBookmarkData, ThrowOnError>) => (options.client ?? client).get<GetByOrgByRepoBookmarkResponses, GetByOrgByRepoBookmarkErrors, ThrowOnError>({
175
175
  security: [{ scheme: 'bearer', type: 'http' }],
176
- url: '/{org}/{repo}/branch',
176
+ url: '/{org}/{repo}/bookmark',
177
177
  ...options
178
178
  });
179
179
 
180
180
  /**
181
- * Create branch
181
+ * Create bookmark
182
182
  *
183
- * Create a new branch from an existing ref
183
+ * Create a new bookmark from an existing commit
184
184
  */
185
- export const postByOrgByRepoBranch = <ThrowOnError extends boolean = false>(options: Options<PostByOrgByRepoBranchData, ThrowOnError>) => (options.client ?? client).post<PostByOrgByRepoBranchResponses, PostByOrgByRepoBranchErrors, ThrowOnError>({
185
+ export const postByOrgByRepoBookmark = <ThrowOnError extends boolean = false>(options: Options<PostByOrgByRepoBookmarkData, ThrowOnError>) => (options.client ?? client).post<PostByOrgByRepoBookmarkResponses, PostByOrgByRepoBookmarkErrors, ThrowOnError>({
186
186
  security: [{ scheme: 'bearer', type: 'http' }],
187
- url: '/{org}/{repo}/branch',
187
+ url: '/{org}/{repo}/bookmark',
188
188
  ...options,
189
189
  headers: {
190
190
  'Content-Type': 'application/json',
@@ -193,13 +193,13 @@ export const postByOrgByRepoBranch = <ThrowOnError extends boolean = false>(opti
193
193
  });
194
194
 
195
195
  /**
196
- * Delete branch
196
+ * Delete bookmark
197
197
  *
198
- * Delete a branch from a repository
198
+ * Delete a bookmark from a repository
199
199
  */
200
- export const deleteByOrgByRepoBranchByBranch = <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgByRepoBranchByBranchData, ThrowOnError>) => (options.client ?? client).delete<DeleteByOrgByRepoBranchByBranchResponses, DeleteByOrgByRepoBranchByBranchErrors, ThrowOnError>({
200
+ export const deleteByOrgByRepoBookmarkByBookmark = <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgByRepoBookmarkByBookmarkData, ThrowOnError>) => (options.client ?? client).delete<DeleteByOrgByRepoBookmarkByBookmarkResponses, DeleteByOrgByRepoBookmarkByBookmarkErrors, ThrowOnError>({
201
201
  security: [{ scheme: 'bearer', type: 'http' }],
202
- url: '/{org}/{repo}/branch/{branch}',
202
+ url: '/{org}/{repo}/bookmark/{bookmark}',
203
203
  ...options
204
204
  });
205
205
 
package/src/types.gen.ts CHANGED
@@ -577,7 +577,7 @@ export type GetByOrgRepoResponses = {
577
577
  id: string;
578
578
  org: string;
579
579
  name: string;
580
- default_branch: string;
580
+ default_bookmark: string;
581
581
  head_oid: string | null;
582
582
  created_at: string;
583
583
  tags: {
@@ -635,7 +635,7 @@ export type GetByOrgRepoResponse = GetByOrgRepoResponses[keyof GetByOrgRepoRespo
635
635
  export type PostByOrgRepoData = {
636
636
  body: {
637
637
  name: string;
638
- default_branch?: string;
638
+ default_bookmark?: string;
639
639
  tags?: {
640
640
  [key: string]: string;
641
641
  };
@@ -772,7 +772,7 @@ export type PostByOrgRepoResponses = {
772
772
  id: string;
773
773
  org: string;
774
774
  name: string;
775
- default_branch: string;
775
+ default_bookmark: string;
776
776
  head_oid: string | null;
777
777
  created_at: string;
778
778
  tags: {
@@ -1043,7 +1043,7 @@ export type GetByOrgByRepoResponses = {
1043
1043
  id: string;
1044
1044
  org: string;
1045
1045
  name: string;
1046
- default_branch: string;
1046
+ default_bookmark: string;
1047
1047
  head_oid: string | null;
1048
1048
  created_at: string;
1049
1049
  tags: {
@@ -1100,7 +1100,7 @@ export type GetByOrgByRepoResponse = GetByOrgByRepoResponses[keyof GetByOrgByRep
1100
1100
  export type PatchByOrgByRepoData = {
1101
1101
  body: {
1102
1102
  name?: string;
1103
- default_branch?: string;
1103
+ default_bookmark?: string;
1104
1104
  tags?: {
1105
1105
  [key: string]: string | null;
1106
1106
  };
@@ -1238,7 +1238,7 @@ export type PatchByOrgByRepoResponses = {
1238
1238
  id: string;
1239
1239
  org: string;
1240
1240
  name: string;
1241
- default_branch: string;
1241
+ default_bookmark: string;
1242
1242
  head_oid: string | null;
1243
1243
  created_at: string;
1244
1244
  tags: {
@@ -1678,7 +1678,7 @@ export type GetByOrgByRepoContentResponses = {
1678
1678
 
1679
1679
  export type GetByOrgByRepoContentResponse = GetByOrgByRepoContentResponses[keyof GetByOrgByRepoContentResponses];
1680
1680
 
1681
- export type GetByOrgByRepoBranchData = {
1681
+ export type GetByOrgByRepoBookmarkData = {
1682
1682
  body?: never;
1683
1683
  path: {
1684
1684
  org: string;
@@ -1688,10 +1688,10 @@ export type GetByOrgByRepoBranchData = {
1688
1688
  cursor?: string;
1689
1689
  limit?: number;
1690
1690
  };
1691
- url: '/{org}/{repo}/branch';
1691
+ url: '/{org}/{repo}/bookmark';
1692
1692
  };
1693
1693
 
1694
- export type GetByOrgByRepoBranchErrors = {
1694
+ export type GetByOrgByRepoBookmarkErrors = {
1695
1695
  /**
1696
1696
  * Invalid request
1697
1697
  */
@@ -1778,39 +1778,39 @@ export type GetByOrgByRepoBranchErrors = {
1778
1778
  };
1779
1779
  };
1780
1780
 
1781
- export type GetByOrgByRepoBranchError = GetByOrgByRepoBranchErrors[keyof GetByOrgByRepoBranchErrors];
1781
+ export type GetByOrgByRepoBookmarkError = GetByOrgByRepoBookmarkErrors[keyof GetByOrgByRepoBookmarkErrors];
1782
1782
 
1783
- export type GetByOrgByRepoBranchResponses = {
1783
+ export type GetByOrgByRepoBookmarkResponses = {
1784
1784
  /**
1785
- * Branch list
1785
+ * Bookmark list
1786
1786
  */
1787
1787
  200: {
1788
1788
  next_cursor: string | null;
1789
1789
  has_more: boolean;
1790
- branches: Array<{
1790
+ bookmarks: Array<{
1791
1791
  name: string;
1792
- head_oid: string;
1792
+ commit_oid: string;
1793
1793
  is_default: boolean;
1794
1794
  }>;
1795
1795
  };
1796
1796
  };
1797
1797
 
1798
- export type GetByOrgByRepoBranchResponse = GetByOrgByRepoBranchResponses[keyof GetByOrgByRepoBranchResponses];
1798
+ export type GetByOrgByRepoBookmarkResponse = GetByOrgByRepoBookmarkResponses[keyof GetByOrgByRepoBookmarkResponses];
1799
1799
 
1800
- export type PostByOrgByRepoBranchData = {
1800
+ export type PostByOrgByRepoBookmarkData = {
1801
1801
  body: {
1802
1802
  name: string;
1803
- from: string;
1803
+ from_commit_oid: string;
1804
1804
  };
1805
1805
  path: {
1806
1806
  org: string;
1807
1807
  repo: string;
1808
1808
  };
1809
1809
  query?: never;
1810
- url: '/{org}/{repo}/branch';
1810
+ url: '/{org}/{repo}/bookmark';
1811
1811
  };
1812
1812
 
1813
- export type PostByOrgByRepoBranchErrors = {
1813
+ export type PostByOrgByRepoBookmarkErrors = {
1814
1814
  /**
1815
1815
  * Invalid request
1816
1816
  */
@@ -1897,33 +1897,33 @@ export type PostByOrgByRepoBranchErrors = {
1897
1897
  };
1898
1898
  };
1899
1899
 
1900
- export type PostByOrgByRepoBranchError = PostByOrgByRepoBranchErrors[keyof PostByOrgByRepoBranchErrors];
1900
+ export type PostByOrgByRepoBookmarkError = PostByOrgByRepoBookmarkErrors[keyof PostByOrgByRepoBookmarkErrors];
1901
1901
 
1902
- export type PostByOrgByRepoBranchResponses = {
1902
+ export type PostByOrgByRepoBookmarkResponses = {
1903
1903
  /**
1904
- * Branch created
1904
+ * Bookmark created
1905
1905
  */
1906
1906
  201: {
1907
1907
  name: string;
1908
- head_oid: string;
1908
+ commit_oid: string;
1909
1909
  is_default: boolean;
1910
1910
  };
1911
1911
  };
1912
1912
 
1913
- export type PostByOrgByRepoBranchResponse = PostByOrgByRepoBranchResponses[keyof PostByOrgByRepoBranchResponses];
1913
+ export type PostByOrgByRepoBookmarkResponse = PostByOrgByRepoBookmarkResponses[keyof PostByOrgByRepoBookmarkResponses];
1914
1914
 
1915
- export type DeleteByOrgByRepoBranchByBranchData = {
1915
+ export type DeleteByOrgByRepoBookmarkByBookmarkData = {
1916
1916
  body?: never;
1917
1917
  path: {
1918
1918
  org: string;
1919
1919
  repo: string;
1920
- branch: string;
1920
+ bookmark: string;
1921
1921
  };
1922
1922
  query?: never;
1923
- url: '/{org}/{repo}/branch/{branch}';
1923
+ url: '/{org}/{repo}/bookmark/{bookmark}';
1924
1924
  };
1925
1925
 
1926
- export type DeleteByOrgByRepoBranchByBranchErrors = {
1926
+ export type DeleteByOrgByRepoBookmarkByBookmarkErrors = {
1927
1927
  /**
1928
1928
  * Invalid request
1929
1929
  */
@@ -2010,18 +2010,18 @@ export type DeleteByOrgByRepoBranchByBranchErrors = {
2010
2010
  };
2011
2011
  };
2012
2012
 
2013
- export type DeleteByOrgByRepoBranchByBranchError = DeleteByOrgByRepoBranchByBranchErrors[keyof DeleteByOrgByRepoBranchByBranchErrors];
2013
+ export type DeleteByOrgByRepoBookmarkByBookmarkError = DeleteByOrgByRepoBookmarkByBookmarkErrors[keyof DeleteByOrgByRepoBookmarkByBookmarkErrors];
2014
2014
 
2015
- export type DeleteByOrgByRepoBranchByBranchResponses = {
2015
+ export type DeleteByOrgByRepoBookmarkByBookmarkResponses = {
2016
2016
  /**
2017
- * Branch deleted
2017
+ * Bookmark deleted
2018
2018
  */
2019
2019
  200: {
2020
2020
  success: true;
2021
2021
  };
2022
2022
  };
2023
2023
 
2024
- export type DeleteByOrgByRepoBranchByBranchResponse = DeleteByOrgByRepoBranchByBranchResponses[keyof DeleteByOrgByRepoBranchByBranchResponses];
2024
+ export type DeleteByOrgByRepoBookmarkByBookmarkResponse = DeleteByOrgByRepoBookmarkByBookmarkResponses[keyof DeleteByOrgByRepoBookmarkByBookmarkResponses];
2025
2025
 
2026
2026
  export type GetByOrgByRepoCommitData = {
2027
2027
  body?: never;
@@ -1,3 +0,0 @@
1
- import type { Client, Config } from './types.gen';
2
- export declare const createClient: (config?: Config) => Client;
3
- //# sourceMappingURL=client.gen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../../src/client/client.gen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAA0C,MAAM,aAAa,CAAC;AAgB1F,eAAO,MAAM,YAAY,GAAI,SAAQ,MAAW,KAAG,MA0QlD,CAAC"}