@shipeasy/openapi
Advanced tools
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| // src/generated/core/bodySerializer.gen.ts | ||
| var jsonBodySerializer = { | ||
| bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) | ||
| }; | ||
| // src/generated/core/params.gen.ts | ||
| var extraPrefixesMap = { | ||
| $body_: "body", | ||
| $headers_: "headers", | ||
| $path_: "path", | ||
| $query_: "query" | ||
| }; | ||
| var extraPrefixes = Object.entries(extraPrefixesMap); | ||
| // src/generated/core/serverSentEvents.gen.ts | ||
| function createSseClient({ | ||
| onRequest, | ||
| onSseError, | ||
| onSseEvent, | ||
| responseTransformer, | ||
| responseValidator, | ||
| sseDefaultRetryDelay, | ||
| sseMaxRetryAttempts, | ||
| sseMaxRetryDelay, | ||
| sseSleepFn, | ||
| url, | ||
| ...options | ||
| }) { | ||
| let lastEventId; | ||
| const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))); | ||
| const createStream = async function* () { | ||
| let retryDelay = sseDefaultRetryDelay ?? 3e3; | ||
| let attempt = 0; | ||
| const signal = options.signal ?? new AbortController().signal; | ||
| while (true) { | ||
| if (signal.aborted) break; | ||
| attempt++; | ||
| const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers); | ||
| if (lastEventId !== void 0) { | ||
| headers.set("Last-Event-ID", lastEventId); | ||
| } | ||
| try { | ||
| const requestInit = { | ||
| redirect: "follow", | ||
| ...options, | ||
| body: options.serializedBody, | ||
| headers, | ||
| signal | ||
| }; | ||
| let request = new Request(url, requestInit); | ||
| if (onRequest) { | ||
| request = await onRequest(url, requestInit); | ||
| } | ||
| const _fetch = options.fetch ?? globalThis.fetch; | ||
| const response = await _fetch(request); | ||
| if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`); | ||
| if (!response.body) throw new Error("No body in SSE response"); | ||
| const reader = response.body.pipeThrough(new TextDecoderStream()).getReader(); | ||
| let buffer = ""; | ||
| const abortHandler = () => { | ||
| try { | ||
| reader.cancel(); | ||
| } catch { | ||
| } | ||
| }; | ||
| signal.addEventListener("abort", abortHandler); | ||
| try { | ||
| while (true) { | ||
| const { done, value } = await reader.read(); | ||
| if (done) break; | ||
| buffer += value; | ||
| buffer = buffer.replace(/\r\n?/g, "\n"); | ||
| const chunks = buffer.split("\n\n"); | ||
| buffer = chunks.pop() ?? ""; | ||
| for (const chunk of chunks) { | ||
| const lines = chunk.split("\n"); | ||
| const dataLines = []; | ||
| let eventName; | ||
| for (const line of lines) { | ||
| if (line.startsWith("data:")) { | ||
| dataLines.push(line.replace(/^data:\s*/, "")); | ||
| } else if (line.startsWith("event:")) { | ||
| eventName = line.replace(/^event:\s*/, ""); | ||
| } else if (line.startsWith("id:")) { | ||
| lastEventId = line.replace(/^id:\s*/, ""); | ||
| } else if (line.startsWith("retry:")) { | ||
| const parsed = Number.parseInt(line.replace(/^retry:\s*/, ""), 10); | ||
| if (!Number.isNaN(parsed)) { | ||
| retryDelay = parsed; | ||
| } | ||
| } | ||
| } | ||
| let data; | ||
| let parsedJson = false; | ||
| if (dataLines.length) { | ||
| const rawData = dataLines.join("\n"); | ||
| try { | ||
| data = JSON.parse(rawData); | ||
| parsedJson = true; | ||
| } catch { | ||
| data = rawData; | ||
| } | ||
| } | ||
| if (parsedJson) { | ||
| if (responseValidator) { | ||
| await responseValidator(data); | ||
| } | ||
| if (responseTransformer) { | ||
| data = await responseTransformer(data); | ||
| } | ||
| } | ||
| onSseEvent?.({ | ||
| data, | ||
| event: eventName, | ||
| id: lastEventId, | ||
| retry: retryDelay | ||
| }); | ||
| if (dataLines.length) { | ||
| yield data; | ||
| } | ||
| } | ||
| } | ||
| } finally { | ||
| signal.removeEventListener("abort", abortHandler); | ||
| reader.releaseLock(); | ||
| } | ||
| break; | ||
| } catch (error) { | ||
| onSseError?.(error); | ||
| if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) { | ||
| break; | ||
| } | ||
| const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 3e4); | ||
| await sleep(backoff); | ||
| } | ||
| } | ||
| }; | ||
| const stream = createStream(); | ||
| return { stream }; | ||
| } | ||
| // src/generated/core/pathSerializer.gen.ts | ||
| var separatorArrayExplode = (style) => { | ||
| switch (style) { | ||
| case "label": | ||
| return "."; | ||
| case "matrix": | ||
| return ";"; | ||
| case "simple": | ||
| return ","; | ||
| default: | ||
| return "&"; | ||
| } | ||
| }; | ||
| var separatorArrayNoExplode = (style) => { | ||
| switch (style) { | ||
| case "form": | ||
| return ","; | ||
| case "pipeDelimited": | ||
| return "|"; | ||
| case "spaceDelimited": | ||
| return "%20"; | ||
| default: | ||
| return ","; | ||
| } | ||
| }; | ||
| var separatorObjectExplode = (style) => { | ||
| switch (style) { | ||
| case "label": | ||
| return "."; | ||
| case "matrix": | ||
| return ";"; | ||
| case "simple": | ||
| return ","; | ||
| default: | ||
| return "&"; | ||
| } | ||
| }; | ||
| var serializeArrayParam = ({ | ||
| allowReserved, | ||
| explode, | ||
| name, | ||
| style, | ||
| value | ||
| }) => { | ||
| if (!explode) { | ||
| const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style)); | ||
| switch (style) { | ||
| case "label": | ||
| return `.${joinedValues2}`; | ||
| case "matrix": | ||
| return `;${name}=${joinedValues2}`; | ||
| case "simple": | ||
| return joinedValues2; | ||
| default: | ||
| return `${name}=${joinedValues2}`; | ||
| } | ||
| } | ||
| const separator = separatorArrayExplode(style); | ||
| const joinedValues = value.map((v) => { | ||
| if (style === "label" || style === "simple") { | ||
| return allowReserved ? v : encodeURIComponent(v); | ||
| } | ||
| return serializePrimitiveParam({ | ||
| allowReserved, | ||
| name, | ||
| value: v | ||
| }); | ||
| }).join(separator); | ||
| return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues; | ||
| }; | ||
| var serializePrimitiveParam = ({ | ||
| allowReserved, | ||
| name, | ||
| value | ||
| }) => { | ||
| if (value === void 0 || value === null) { | ||
| return ""; | ||
| } | ||
| if (typeof value === "object") { | ||
| throw new Error( | ||
| "Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these." | ||
| ); | ||
| } | ||
| return `${name}=${allowReserved ? value : encodeURIComponent(value)}`; | ||
| }; | ||
| var serializeObjectParam = ({ | ||
| allowReserved, | ||
| explode, | ||
| name, | ||
| style, | ||
| value, | ||
| valueOnly | ||
| }) => { | ||
| if (value instanceof Date) { | ||
| return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`; | ||
| } | ||
| if (style !== "deepObject" && !explode) { | ||
| let values = []; | ||
| Object.entries(value).forEach(([key, v]) => { | ||
| values = [...values, key, allowReserved ? v : encodeURIComponent(v)]; | ||
| }); | ||
| const joinedValues2 = values.join(","); | ||
| switch (style) { | ||
| case "form": | ||
| return `${name}=${joinedValues2}`; | ||
| case "label": | ||
| return `.${joinedValues2}`; | ||
| case "matrix": | ||
| return `;${name}=${joinedValues2}`; | ||
| default: | ||
| return joinedValues2; | ||
| } | ||
| } | ||
| const separator = separatorObjectExplode(style); | ||
| const joinedValues = Object.entries(value).map( | ||
| ([key, v]) => serializePrimitiveParam({ | ||
| allowReserved, | ||
| name: style === "deepObject" ? `${name}[${key}]` : key, | ||
| value: v | ||
| }) | ||
| ).join(separator); | ||
| return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues; | ||
| }; | ||
| // src/generated/core/utils.gen.ts | ||
| var PATH_PARAM_RE = /\{[^{}]+\}/g; | ||
| var defaultPathSerializer = ({ path, url: _url }) => { | ||
| let url = _url; | ||
| const matches = _url.match(PATH_PARAM_RE); | ||
| if (matches) { | ||
| for (const match of matches) { | ||
| let explode = false; | ||
| let name = match.substring(1, match.length - 1); | ||
| let style = "simple"; | ||
| if (name.endsWith("*")) { | ||
| explode = true; | ||
| name = name.substring(0, name.length - 1); | ||
| } | ||
| if (name.startsWith(".")) { | ||
| name = name.substring(1); | ||
| style = "label"; | ||
| } else if (name.startsWith(";")) { | ||
| name = name.substring(1); | ||
| style = "matrix"; | ||
| } | ||
| const value = path[name]; | ||
| if (value === void 0 || value === null) { | ||
| continue; | ||
| } | ||
| if (Array.isArray(value)) { | ||
| url = url.replace(match, serializeArrayParam({ explode, name, style, value })); | ||
| continue; | ||
| } | ||
| if (typeof value === "object") { | ||
| url = url.replace( | ||
| match, | ||
| serializeObjectParam({ | ||
| explode, | ||
| name, | ||
| style, | ||
| value, | ||
| valueOnly: true | ||
| }) | ||
| ); | ||
| continue; | ||
| } | ||
| if (style === "matrix") { | ||
| url = url.replace( | ||
| match, | ||
| `;${serializePrimitiveParam({ | ||
| name, | ||
| value | ||
| })}` | ||
| ); | ||
| continue; | ||
| } | ||
| const replaceValue = encodeURIComponent( | ||
| style === "label" ? `.${value}` : value | ||
| ); | ||
| url = url.replace(match, replaceValue); | ||
| } | ||
| } | ||
| return url; | ||
| }; | ||
| var getUrl = ({ | ||
| baseUrl, | ||
| path, | ||
| query, | ||
| querySerializer, | ||
| url: _url | ||
| }) => { | ||
| const pathUrl = _url.startsWith("/") ? _url : `/${_url}`; | ||
| let url = (baseUrl ?? "") + pathUrl; | ||
| if (path) { | ||
| url = defaultPathSerializer({ path, url }); | ||
| } | ||
| let search = query ? querySerializer(query) : ""; | ||
| if (search.startsWith("?")) { | ||
| search = search.substring(1); | ||
| } | ||
| if (search) { | ||
| url += `?${search}`; | ||
| } | ||
| return url; | ||
| }; | ||
| function getValidRequestBody(options) { | ||
| const hasBody = options.body !== void 0; | ||
| const isSerializedBody = hasBody && options.bodySerializer; | ||
| if (isSerializedBody) { | ||
| if ("serializedBody" in options) { | ||
| const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== ""; | ||
| return hasSerializedBody ? options.serializedBody : null; | ||
| } | ||
| return options.body !== "" ? options.body : null; | ||
| } | ||
| if (hasBody) { | ||
| return options.body; | ||
| } | ||
| return void 0; | ||
| } | ||
| // src/generated/core/auth.gen.ts | ||
| var getAuthToken = async (auth, callback) => { | ||
| const token = typeof callback === "function" ? await callback(auth) : callback; | ||
| if (!token) { | ||
| return; | ||
| } | ||
| if (auth.scheme === "bearer") { | ||
| return `Bearer ${token}`; | ||
| } | ||
| if (auth.scheme === "basic") { | ||
| return `Basic ${btoa(token)}`; | ||
| } | ||
| return token; | ||
| }; | ||
| // src/generated/client/utils.gen.ts | ||
| var createQuerySerializer = ({ | ||
| parameters = {}, | ||
| ...args | ||
| } = {}) => { | ||
| const querySerializer = (queryParams) => { | ||
| const search = []; | ||
| if (queryParams && typeof queryParams === "object") { | ||
| for (const name in queryParams) { | ||
| const value = queryParams[name]; | ||
| if (value === void 0 || value === null) { | ||
| continue; | ||
| } | ||
| const options = parameters[name] || args; | ||
| if (Array.isArray(value)) { | ||
| const serializedArray = serializeArrayParam({ | ||
| allowReserved: options.allowReserved, | ||
| explode: true, | ||
| name, | ||
| style: "form", | ||
| value, | ||
| ...options.array | ||
| }); | ||
| if (serializedArray) search.push(serializedArray); | ||
| } else if (typeof value === "object") { | ||
| const serializedObject = serializeObjectParam({ | ||
| allowReserved: options.allowReserved, | ||
| explode: true, | ||
| name, | ||
| style: "deepObject", | ||
| value, | ||
| ...options.object | ||
| }); | ||
| if (serializedObject) search.push(serializedObject); | ||
| } else { | ||
| const serializedPrimitive = serializePrimitiveParam({ | ||
| allowReserved: options.allowReserved, | ||
| name, | ||
| value | ||
| }); | ||
| if (serializedPrimitive) search.push(serializedPrimitive); | ||
| } | ||
| } | ||
| } | ||
| return search.join("&"); | ||
| }; | ||
| return querySerializer; | ||
| }; | ||
| var getParseAs = (contentType) => { | ||
| if (!contentType) { | ||
| return "stream"; | ||
| } | ||
| const cleanContent = contentType.split(";")[0]?.trim(); | ||
| if (!cleanContent) { | ||
| return; | ||
| } | ||
| if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) { | ||
| return "json"; | ||
| } | ||
| if (cleanContent === "multipart/form-data") { | ||
| return "formData"; | ||
| } | ||
| if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) { | ||
| return "blob"; | ||
| } | ||
| if (cleanContent.startsWith("text/")) { | ||
| return "text"; | ||
| } | ||
| return; | ||
| }; | ||
| var checkForExistence = (options, name) => { | ||
| if (!name) { | ||
| return false; | ||
| } | ||
| if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) { | ||
| return true; | ||
| } | ||
| return false; | ||
| }; | ||
| async function setAuthParams(options) { | ||
| for (const auth of options.security ?? []) { | ||
| if (checkForExistence(options, auth.name)) { | ||
| continue; | ||
| } | ||
| const token = await getAuthToken(auth, options.auth); | ||
| if (!token) { | ||
| continue; | ||
| } | ||
| const name = auth.name ?? "Authorization"; | ||
| switch (auth.in) { | ||
| case "query": | ||
| if (!options.query) { | ||
| options.query = {}; | ||
| } | ||
| options.query[name] = token; | ||
| break; | ||
| case "cookie": | ||
| options.headers.append("Cookie", `${name}=${token}`); | ||
| break; | ||
| case "header": | ||
| default: | ||
| options.headers.set(name, token); | ||
| break; | ||
| } | ||
| } | ||
| } | ||
| var buildUrl = (options) => getUrl({ | ||
| baseUrl: options.baseUrl, | ||
| path: options.path, | ||
| query: options.query, | ||
| querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer), | ||
| url: options.url | ||
| }); | ||
| var mergeConfigs = (a, b) => { | ||
| const config = { ...a, ...b }; | ||
| if (config.baseUrl?.endsWith("/")) { | ||
| config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1); | ||
| } | ||
| config.headers = mergeHeaders(a.headers, b.headers); | ||
| return config; | ||
| }; | ||
| var headersEntries = (headers) => { | ||
| const entries = []; | ||
| headers.forEach((value, key) => { | ||
| entries.push([key, value]); | ||
| }); | ||
| return entries; | ||
| }; | ||
| var mergeHeaders = (...headers) => { | ||
| const mergedHeaders = new Headers(); | ||
| for (const header of headers) { | ||
| if (!header) { | ||
| continue; | ||
| } | ||
| const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header); | ||
| for (const [key, value] of iterator) { | ||
| if (value === null) { | ||
| mergedHeaders.delete(key); | ||
| } else if (Array.isArray(value)) { | ||
| for (const v of value) { | ||
| mergedHeaders.append(key, v); | ||
| } | ||
| } else if (value !== void 0) { | ||
| mergedHeaders.set( | ||
| key, | ||
| typeof value === "object" ? JSON.stringify(value) : value | ||
| ); | ||
| } | ||
| } | ||
| } | ||
| return mergedHeaders; | ||
| }; | ||
| var Interceptors = class { | ||
| fns = []; | ||
| clear() { | ||
| this.fns = []; | ||
| } | ||
| eject(id) { | ||
| const index = this.getInterceptorIndex(id); | ||
| if (this.fns[index]) { | ||
| this.fns[index] = null; | ||
| } | ||
| } | ||
| exists(id) { | ||
| const index = this.getInterceptorIndex(id); | ||
| return Boolean(this.fns[index]); | ||
| } | ||
| getInterceptorIndex(id) { | ||
| if (typeof id === "number") { | ||
| return this.fns[id] ? id : -1; | ||
| } | ||
| return this.fns.indexOf(id); | ||
| } | ||
| update(id, fn) { | ||
| const index = this.getInterceptorIndex(id); | ||
| if (this.fns[index]) { | ||
| this.fns[index] = fn; | ||
| return id; | ||
| } | ||
| return false; | ||
| } | ||
| use(fn) { | ||
| this.fns.push(fn); | ||
| return this.fns.length - 1; | ||
| } | ||
| }; | ||
| var createInterceptors = () => ({ | ||
| error: new Interceptors(), | ||
| request: new Interceptors(), | ||
| response: new Interceptors() | ||
| }); | ||
| var defaultQuerySerializer = createQuerySerializer({ | ||
| allowReserved: false, | ||
| array: { | ||
| explode: true, | ||
| style: "form" | ||
| }, | ||
| object: { | ||
| explode: true, | ||
| style: "deepObject" | ||
| } | ||
| }); | ||
| var defaultHeaders = { | ||
| "Content-Type": "application/json" | ||
| }; | ||
| var createConfig = (override = {}) => ({ | ||
| ...jsonBodySerializer, | ||
| headers: defaultHeaders, | ||
| parseAs: "auto", | ||
| querySerializer: defaultQuerySerializer, | ||
| ...override | ||
| }); | ||
| // src/generated/client/client.gen.ts | ||
| var createClient = (config = {}) => { | ||
| let _config = mergeConfigs(createConfig(), config); | ||
| const getConfig2 = () => ({ ..._config }); | ||
| const setConfig = (config2) => { | ||
| _config = mergeConfigs(_config, config2); | ||
| return getConfig2(); | ||
| }; | ||
| const interceptors = createInterceptors(); | ||
| const beforeRequest = async (options) => { | ||
| const opts = { | ||
| ..._config, | ||
| ...options, | ||
| fetch: options.fetch ?? _config.fetch ?? globalThis.fetch, | ||
| headers: mergeHeaders(_config.headers, options.headers), | ||
| serializedBody: void 0 | ||
| }; | ||
| if (opts.security) { | ||
| await setAuthParams(opts); | ||
| } | ||
| if (opts.requestValidator) { | ||
| await opts.requestValidator(opts); | ||
| } | ||
| if (opts.body !== void 0 && opts.bodySerializer) { | ||
| opts.serializedBody = opts.bodySerializer(opts.body); | ||
| } | ||
| if (opts.body === void 0 || opts.serializedBody === "") { | ||
| opts.headers.delete("Content-Type"); | ||
| } | ||
| const resolvedOpts = opts; | ||
| const url = buildUrl(resolvedOpts); | ||
| return { opts: resolvedOpts, url }; | ||
| }; | ||
| const request = async (options) => { | ||
| const throwOnError = options.throwOnError ?? _config.throwOnError; | ||
| const responseStyle = options.responseStyle ?? _config.responseStyle; | ||
| let request2; | ||
| let response; | ||
| try { | ||
| const { opts, url } = await beforeRequest(options); | ||
| const requestInit = { | ||
| redirect: "follow", | ||
| ...opts, | ||
| body: getValidRequestBody(opts) | ||
| }; | ||
| request2 = new Request(url, requestInit); | ||
| for (const fn of interceptors.request.fns) { | ||
| if (fn) { | ||
| request2 = await fn(request2, opts); | ||
| } | ||
| } | ||
| const _fetch = opts.fetch; | ||
| response = await _fetch(request2); | ||
| for (const fn of interceptors.response.fns) { | ||
| if (fn) { | ||
| response = await fn(response, request2, opts); | ||
| } | ||
| } | ||
| const result = { | ||
| request: request2, | ||
| response | ||
| }; | ||
| if (response.ok) { | ||
| const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json"; | ||
| if (response.status === 204 || response.headers.get("Content-Length") === "0") { | ||
| let emptyData; | ||
| switch (parseAs) { | ||
| case "arrayBuffer": | ||
| case "blob": | ||
| case "text": | ||
| emptyData = await response[parseAs](); | ||
| break; | ||
| case "formData": | ||
| emptyData = new FormData(); | ||
| break; | ||
| case "stream": | ||
| emptyData = response.body; | ||
| break; | ||
| case "json": | ||
| default: | ||
| emptyData = {}; | ||
| break; | ||
| } | ||
| return opts.responseStyle === "data" ? emptyData : { | ||
| data: emptyData, | ||
| ...result | ||
| }; | ||
| } | ||
| let data; | ||
| switch (parseAs) { | ||
| case "arrayBuffer": | ||
| case "blob": | ||
| case "formData": | ||
| case "text": | ||
| data = await response[parseAs](); | ||
| break; | ||
| case "json": { | ||
| const text = await response.text(); | ||
| data = text ? JSON.parse(text) : {}; | ||
| break; | ||
| } | ||
| case "stream": | ||
| return opts.responseStyle === "data" ? response.body : { | ||
| data: response.body, | ||
| ...result | ||
| }; | ||
| } | ||
| if (parseAs === "json") { | ||
| if (opts.responseValidator) { | ||
| await opts.responseValidator(data); | ||
| } | ||
| if (opts.responseTransformer) { | ||
| data = await opts.responseTransformer(data); | ||
| } | ||
| } | ||
| return opts.responseStyle === "data" ? data : { | ||
| data, | ||
| ...result | ||
| }; | ||
| } | ||
| const textError = await response.text(); | ||
| let jsonError; | ||
| try { | ||
| jsonError = JSON.parse(textError); | ||
| } catch { | ||
| } | ||
| throw jsonError ?? textError; | ||
| } catch (error) { | ||
| let finalError = error; | ||
| for (const fn of interceptors.error.fns) { | ||
| if (fn) { | ||
| finalError = await fn(finalError, response, request2, options); | ||
| } | ||
| } | ||
| finalError = finalError || {}; | ||
| if (throwOnError) { | ||
| throw finalError; | ||
| } | ||
| return responseStyle === "data" ? void 0 : { | ||
| error: finalError, | ||
| request: request2, | ||
| response | ||
| }; | ||
| } | ||
| }; | ||
| const makeMethodFn = (method) => (options) => request({ ...options, method }); | ||
| const makeSseFn = (method) => async (options) => { | ||
| const { opts, url } = await beforeRequest(options); | ||
| return createSseClient({ | ||
| ...opts, | ||
| body: opts.body, | ||
| method, | ||
| onRequest: async (url2, init) => { | ||
| let request2 = new Request(url2, init); | ||
| for (const fn of interceptors.request.fns) { | ||
| if (fn) { | ||
| request2 = await fn(request2, opts); | ||
| } | ||
| } | ||
| return request2; | ||
| }, | ||
| serializedBody: getValidRequestBody(opts), | ||
| url | ||
| }); | ||
| }; | ||
| const _buildUrl = (options) => buildUrl({ ..._config, ...options }); | ||
| return { | ||
| buildUrl: _buildUrl, | ||
| connect: makeMethodFn("CONNECT"), | ||
| delete: makeMethodFn("DELETE"), | ||
| get: makeMethodFn("GET"), | ||
| getConfig: getConfig2, | ||
| head: makeMethodFn("HEAD"), | ||
| interceptors, | ||
| options: makeMethodFn("OPTIONS"), | ||
| patch: makeMethodFn("PATCH"), | ||
| post: makeMethodFn("POST"), | ||
| put: makeMethodFn("PUT"), | ||
| request, | ||
| setConfig, | ||
| sse: { | ||
| connect: makeSseFn("CONNECT"), | ||
| delete: makeSseFn("DELETE"), | ||
| get: makeSseFn("GET"), | ||
| head: makeSseFn("HEAD"), | ||
| options: makeSseFn("OPTIONS"), | ||
| patch: makeSseFn("PATCH"), | ||
| post: makeSseFn("POST"), | ||
| put: makeSseFn("PUT"), | ||
| trace: makeSseFn("TRACE") | ||
| }, | ||
| trace: makeMethodFn("TRACE") | ||
| }; | ||
| }; | ||
| // src/generated/client.gen.ts | ||
| var client = createClient(createConfig({ baseUrl: "https://shipeasy.ai" })); | ||
| // src/generated/sdk.gen.ts | ||
| var listGates = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates", | ||
| ...options | ||
| }); | ||
| var createGate = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteGate = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}", | ||
| ...options | ||
| }); | ||
| var getGate = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}", | ||
| ...options | ||
| }); | ||
| var updateGate = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var enableGate = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}/enable", | ||
| ...options | ||
| }); | ||
| var disableGate = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}/disable", | ||
| ...options | ||
| }); | ||
| var listGateActivity = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}/activity", | ||
| ...options | ||
| }); | ||
| var listExperiments = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments", | ||
| ...options | ||
| }); | ||
| var createExperiment = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteExperiment = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}", | ||
| ...options | ||
| }); | ||
| var getExperiment = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}", | ||
| ...options | ||
| }); | ||
| var updateExperiment = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var setExperimentStatus = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/status", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var setExperimentMetrics = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/metrics", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var getExperimentResults = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/results", | ||
| ...options | ||
| }); | ||
| var getExperimentTimeseries = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/timeseries", | ||
| ...options | ||
| }); | ||
| var reanalyzeExperiment = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/reanalyze", | ||
| ...options | ||
| }); | ||
| var createExperimentReadout = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/readouts", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var getExperimentReadout = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/readouts/{readoutId}", | ||
| ...options | ||
| }); | ||
| var listConfigs = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs", | ||
| ...options | ||
| }); | ||
| var createConfig2 = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteConfig = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}", | ||
| ...options | ||
| }); | ||
| var getConfig = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}", | ||
| ...options | ||
| }); | ||
| var updateConfig = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var discardConfigDraft = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/drafts", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var saveConfigDraft = (options) => (options.client ?? client).put({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/drafts", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var publishConfigDraft = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/publish", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listConfigActivity = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/activity", | ||
| ...options | ||
| }); | ||
| var updateConfigSchema = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/schema", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listConfigVersions = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/versions", | ||
| ...options | ||
| }); | ||
| var listKillswitches = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches", | ||
| ...options | ||
| }); | ||
| var createKillswitch = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteKillswitch = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}", | ||
| ...options | ||
| }); | ||
| var getKillswitch = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}", | ||
| ...options | ||
| }); | ||
| var updateKillswitch = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var unsetKillswitchSwitch = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}/switch", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var setKillswitchSwitch = (options) => (options.client ?? client).put({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}/switch", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var setKillswitchValue = (options) => (options.client ?? client).put({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}/value", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listUniverses = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/universes", | ||
| ...options | ||
| }); | ||
| var createUniverse = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/universes", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteUniverse = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/universes/{id}", | ||
| ...options | ||
| }); | ||
| var updateUniverse = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/universes/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listGateTemplates = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/templates", | ||
| ...options | ||
| }); | ||
| var createGateTemplate = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/templates", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteGateTemplate = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/templates/{id}", | ||
| ...options | ||
| }); | ||
| var getGateTemplate = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/templates/{id}", | ||
| ...options | ||
| }); | ||
| var updateGateTemplate = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/templates/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listAttributes = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/attributes", | ||
| ...options | ||
| }); | ||
| var createAttribute = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/attributes", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteAttribute = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/attributes/{id}", | ||
| ...options | ||
| }); | ||
| var getAttribute = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/attributes/{id}", | ||
| ...options | ||
| }); | ||
| var updateAttribute = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/attributes/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listMetrics = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics", | ||
| ...options | ||
| }); | ||
| var createMetric = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteMetric = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}", | ||
| ...options | ||
| }); | ||
| var getMetric = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}", | ||
| ...options | ||
| }); | ||
| var updateMetric = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listMetricExperiments = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}/experiments", | ||
| ...options | ||
| }); | ||
| var unarchiveMetric = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}/unarchive", | ||
| ...options | ||
| }); | ||
| var getMetricSeries = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}/series", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listEvents = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events", | ||
| ...options | ||
| }); | ||
| var createEvent = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteEvent = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events/{id}", | ||
| ...options | ||
| }); | ||
| var getEvent = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events/{id}", | ||
| ...options | ||
| }); | ||
| var updateEvent = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var approveEvent = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events/{id}/approve", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listOpsItems = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops", | ||
| ...options | ||
| }); | ||
| var createOpsItem = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteOpsItem = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}", | ||
| ...options | ||
| }); | ||
| var getOpsItem = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}", | ||
| ...options | ||
| }); | ||
| var updateOpsItem = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var linkPrToOpsItem = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/link-pr", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var ackOpsItem = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/ack", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listOpsInvestigations = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/investigation", | ||
| ...options | ||
| }); | ||
| var createOpsInvestigation = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/investigation", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var updateOpsInvestigation = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/investigation/{investigationId}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listOpsAgents = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/agent-profiles", | ||
| ...options | ||
| }); | ||
| var listOpsComments = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/comments", | ||
| ...options | ||
| }); | ||
| var createOpsComment = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/comments", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var notifyOps = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/notifications", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listSlackChannels = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/slack/channels", | ||
| ...options | ||
| }); | ||
| var listAlertRules = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alert-rules", | ||
| ...options | ||
| }); | ||
| var createAlertRule = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alert-rules", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteAlertRule = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alert-rules/{id}", | ||
| ...options | ||
| }); | ||
| var updateAlertRule = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alert-rules/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listAlerts = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alerts", | ||
| ...options | ||
| }); | ||
| var updateAlert = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alerts/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var getCurrentProject = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/projects/current", | ||
| ...options | ||
| }); | ||
| var upsertProject = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/projects/upsert", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var getProject = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/projects/{id}", | ||
| ...options | ||
| }); | ||
| var updateProject = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/projects/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listI18nProfiles = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/profiles", | ||
| ...options | ||
| }); | ||
| var createI18nProfile = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/profiles", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listI18nKeys = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/keys", | ||
| ...options | ||
| }); | ||
| var pushI18nKeys = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/keys", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var upsertI18nKeys = (options) => (options.client ?? client).put({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/keys", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteI18nKey = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/keys/{id}", | ||
| ...options | ||
| }); | ||
| var updateI18nKey = (options) => (options.client ?? client).put({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/keys/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listI18nDrafts = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts", | ||
| ...options | ||
| }); | ||
| var createI18nDraft = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteI18nDraft = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts/{draftId}", | ||
| ...options | ||
| }); | ||
| var updateI18nDraft = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts/{draftId}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteI18nProfile = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/profiles/{profileId}", | ||
| ...options | ||
| }); | ||
| var listI18nDraftKeys = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts/{draftId}/keys", | ||
| ...options | ||
| }); | ||
| var upsertI18nDraftKey = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts/{draftId}/keys", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var publishI18nProfile = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/profiles/{profileId}/publish", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var setI18nLabel = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/set", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listErrors = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors", | ||
| ...options | ||
| }); | ||
| var getError = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors/{id}", | ||
| ...options | ||
| }); | ||
| var updateErrorStatus = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var fileErrorTicket = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors/{id}/file", | ||
| ...options | ||
| }); | ||
| var resolveError = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors/{id}/resolve", | ||
| ...options | ||
| }); | ||
| var getErrorSeries = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors/{id}/series", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listConnectors = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors", | ||
| ...options | ||
| }); | ||
| var createConnector = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteConnector = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}", | ||
| ...options | ||
| }); | ||
| var getConnector = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}", | ||
| ...options | ||
| }); | ||
| var updateConnector = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var fireConnector = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}/fire", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var testConnector = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}/test", | ||
| ...options | ||
| }); | ||
| var updateTriggerConnector = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}/trigger", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var createTriggerConnector = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/trigger", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listKeys = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/keys", | ||
| ...options | ||
| }); | ||
| var createKey = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/keys", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var revokeKey = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/keys/{id}/revoke", | ||
| ...options | ||
| }); | ||
| var searchResources = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/search", | ||
| ...options | ||
| }); | ||
| // src/client.ts | ||
| function configure({ apiKey, projectId, baseUrl }) { | ||
| client.setConfig({ | ||
| ...baseUrl ? { baseUrl } : {}, | ||
| auth: () => apiKey, | ||
| headers: projectId ? { "X-Project-Id": projectId } : {} | ||
| }); | ||
| } | ||
| export { | ||
| createConfig, | ||
| createClient, | ||
| client, | ||
| listGates, | ||
| createGate, | ||
| deleteGate, | ||
| getGate, | ||
| updateGate, | ||
| enableGate, | ||
| disableGate, | ||
| listGateActivity, | ||
| listExperiments, | ||
| createExperiment, | ||
| deleteExperiment, | ||
| getExperiment, | ||
| updateExperiment, | ||
| setExperimentStatus, | ||
| setExperimentMetrics, | ||
| getExperimentResults, | ||
| getExperimentTimeseries, | ||
| reanalyzeExperiment, | ||
| createExperimentReadout, | ||
| getExperimentReadout, | ||
| listConfigs, | ||
| createConfig2, | ||
| deleteConfig, | ||
| getConfig, | ||
| updateConfig, | ||
| discardConfigDraft, | ||
| saveConfigDraft, | ||
| publishConfigDraft, | ||
| listConfigActivity, | ||
| updateConfigSchema, | ||
| listConfigVersions, | ||
| listKillswitches, | ||
| createKillswitch, | ||
| deleteKillswitch, | ||
| getKillswitch, | ||
| updateKillswitch, | ||
| unsetKillswitchSwitch, | ||
| setKillswitchSwitch, | ||
| setKillswitchValue, | ||
| listUniverses, | ||
| createUniverse, | ||
| deleteUniverse, | ||
| updateUniverse, | ||
| listGateTemplates, | ||
| createGateTemplate, | ||
| deleteGateTemplate, | ||
| getGateTemplate, | ||
| updateGateTemplate, | ||
| listAttributes, | ||
| createAttribute, | ||
| deleteAttribute, | ||
| getAttribute, | ||
| updateAttribute, | ||
| listMetrics, | ||
| createMetric, | ||
| deleteMetric, | ||
| getMetric, | ||
| updateMetric, | ||
| listMetricExperiments, | ||
| unarchiveMetric, | ||
| getMetricSeries, | ||
| listEvents, | ||
| createEvent, | ||
| deleteEvent, | ||
| getEvent, | ||
| updateEvent, | ||
| approveEvent, | ||
| listOpsItems, | ||
| createOpsItem, | ||
| deleteOpsItem, | ||
| getOpsItem, | ||
| updateOpsItem, | ||
| linkPrToOpsItem, | ||
| ackOpsItem, | ||
| listOpsInvestigations, | ||
| createOpsInvestigation, | ||
| updateOpsInvestigation, | ||
| listOpsAgents, | ||
| listOpsComments, | ||
| createOpsComment, | ||
| notifyOps, | ||
| listSlackChannels, | ||
| listAlertRules, | ||
| createAlertRule, | ||
| deleteAlertRule, | ||
| updateAlertRule, | ||
| listAlerts, | ||
| updateAlert, | ||
| getCurrentProject, | ||
| upsertProject, | ||
| getProject, | ||
| updateProject, | ||
| listI18nProfiles, | ||
| createI18nProfile, | ||
| listI18nKeys, | ||
| pushI18nKeys, | ||
| upsertI18nKeys, | ||
| deleteI18nKey, | ||
| updateI18nKey, | ||
| listI18nDrafts, | ||
| createI18nDraft, | ||
| deleteI18nDraft, | ||
| updateI18nDraft, | ||
| deleteI18nProfile, | ||
| listI18nDraftKeys, | ||
| upsertI18nDraftKey, | ||
| publishI18nProfile, | ||
| setI18nLabel, | ||
| listErrors, | ||
| getError, | ||
| updateErrorStatus, | ||
| fileErrorTicket, | ||
| resolveError, | ||
| getErrorSeries, | ||
| listConnectors, | ||
| createConnector, | ||
| deleteConnector, | ||
| getConnector, | ||
| updateConnector, | ||
| fireConnector, | ||
| testConnector, | ||
| updateTriggerConnector, | ||
| createTriggerConnector, | ||
| listKeys, | ||
| createKey, | ||
| revokeKey, | ||
| searchResources, | ||
| configure | ||
| }; | ||
| //# sourceMappingURL=chunk-V4ZESAIF.js.map |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
+1
-1
@@ -1,1 +0,1 @@ | ||
| export { q as Client, s as Config, u as ConfigureOptions, T as CreateClientConfig, iX as Options, js as RequestResult, nj as ackOpsItem, nk as approveEvent, nl as client, nm as configure, nn as createAlertRule, no as createAttribute, np as createClient, nq as createClientConfig, nr as createConfig, ns as createConnector, nt as createEvent, nu as createExperiment, nv as createExperimentReadout, nw as createGate, nx as createGateTemplate, ny as createI18nDraft, nz as createI18nProfile, nA as createKey, nB as createKillswitch, nC as createMetric, nD as createOpsComment, nE as createOpsInvestigation, nF as createOpsItem, nG as createTriggerConnector, nH as createUniverse, nI as deleteAlertRule, nJ as deleteAttribute, nK as deleteConfig, nL as deleteConnector, nM as deleteEvent, nN as deleteExperiment, nO as deleteGate, nP as deleteGateTemplate, nQ as deleteI18nDraft, nR as deleteI18nKey, nS as deleteI18nProfile, nT as deleteKillswitch, nU as deleteMetric, nV as deleteOpsItem, nW as deleteUniverse, nX as disableGate, nY as discardConfigDraft, nZ as enableGate, n_ as fileErrorTicket, n$ as fireConnector, o0 as getAttribute, o1 as getConfig, o2 as getConnector, o3 as getCurrentProject, o4 as getError, o5 as getErrorSeries, o6 as getEvent, o7 as getExperiment, o8 as getExperimentReadout, o9 as getExperimentResults, oa as getExperimentTimeseries, ob as getGate, oc as getGateTemplate, od as getKillswitch, oe as getMetric, of as getMetricSeries, og as getOpsItem, oh as getProject, oi as linkPrToOpsItem, oj as listAlertRules, ok as listAlerts, ol as listAttributes, om as listConfigActivity, on as listConfigVersions, oo as listConfigs, op as listConnectors, oq as listErrors, or as listEvents, os as listExperiments, ot as listGateActivity, ou as listGateTemplates, ov as listGates, ow as listI18nDraftKeys, ox as listI18nDrafts, oy as listI18nKeys, oz as listI18nProfiles, oA as listKeys, oB as listKillswitches, oC as listMetricExperiments, oD as listMetrics, oE as listOpsAgents, oF as listOpsComments, oG as listOpsInvestigations, oH as listOpsItems, oI as listSlackChannels, oJ as listUniverses, oK as notifyOps, oL as publishConfigDraft, oM as publishI18nProfile, oN as pushI18nKeys, oO as reanalyzeExperiment, oP as resolveError, oQ as revokeKey, oR as saveConfigDraft, oS as searchResources, oT as setExperimentMetrics, oU as setExperimentStatus, oV as setI18nLabel, oW as setKillswitchSwitch, oX as setKillswitchValue, oY as testConnector, oZ as unarchiveMetric, o_ as unsetKillswitchSwitch, o$ as updateAlert, p0 as updateAlertRule, p1 as updateAttribute, p2 as updateConfig, p3 as updateConfigSchema, p4 as updateConnector, p5 as updateErrorStatus, p6 as updateEvent, p7 as updateExperiment, p8 as updateGate, p9 as updateGateTemplate, pa as updateI18nDraft, pb as updateI18nKey, pc as updateKillswitch, pd as updateMetric, pe as updateOpsInvestigation, pf as updateOpsItem, pg as updateProject, ph as updateTriggerConnector, pi as updateUniverse, pj as upsertI18nDraftKey, pk as upsertI18nKeys, pl as upsertProject } from './client-ObcuFHaV.js'; | ||
| export { q as Client, s as Config, u as ConfigureOptions, T as CreateClientConfig, iX as Options, js as RequestResult, nj as ackOpsItem, nk as approveEvent, nl as client, nm as configure, nn as createAlertRule, no as createAttribute, np as createClient, nq as createClientConfig, nr as createConfig, ns as createConnector, nt as createEvent, nu as createExperiment, nv as createExperimentReadout, nw as createGate, nx as createGateTemplate, ny as createI18nDraft, nz as createI18nProfile, nA as createKey, nB as createKillswitch, nC as createMetric, nD as createOpsComment, nE as createOpsInvestigation, nF as createOpsItem, nG as createTriggerConnector, nH as createUniverse, nI as deleteAlertRule, nJ as deleteAttribute, nK as deleteConfig, nL as deleteConnector, nM as deleteEvent, nN as deleteExperiment, nO as deleteGate, nP as deleteGateTemplate, nQ as deleteI18nDraft, nR as deleteI18nKey, nS as deleteI18nProfile, nT as deleteKillswitch, nU as deleteMetric, nV as deleteOpsItem, nW as deleteUniverse, nX as disableGate, nY as discardConfigDraft, nZ as enableGate, n_ as fileErrorTicket, n$ as fireConnector, o0 as getAttribute, o1 as getConfig, o2 as getConnector, o3 as getCurrentProject, o4 as getError, o5 as getErrorSeries, o6 as getEvent, o7 as getExperiment, o8 as getExperimentReadout, o9 as getExperimentResults, oa as getExperimentTimeseries, ob as getGate, oc as getGateTemplate, od as getKillswitch, oe as getMetric, of as getMetricSeries, og as getOpsItem, oh as getProject, oi as linkPrToOpsItem, oj as listAlertRules, ok as listAlerts, ol as listAttributes, om as listConfigActivity, on as listConfigVersions, oo as listConfigs, op as listConnectors, oq as listErrors, or as listEvents, os as listExperiments, ot as listGateActivity, ou as listGateTemplates, ov as listGates, ow as listI18nDraftKeys, ox as listI18nDrafts, oy as listI18nKeys, oz as listI18nProfiles, oA as listKeys, oB as listKillswitches, oC as listMetricExperiments, oD as listMetrics, oE as listOpsAgents, oF as listOpsComments, oG as listOpsInvestigations, oH as listOpsItems, oI as listSlackChannels, oJ as listUniverses, oK as notifyOps, oL as publishConfigDraft, oM as publishI18nProfile, oN as pushI18nKeys, oO as reanalyzeExperiment, oP as resolveError, oQ as revokeKey, oR as saveConfigDraft, oS as searchResources, oT as setExperimentMetrics, oU as setExperimentStatus, oV as setI18nLabel, oW as setKillswitchSwitch, oX as setKillswitchValue, oY as testConnector, oZ as unarchiveMetric, o_ as unsetKillswitchSwitch, o$ as updateAlert, p0 as updateAlertRule, p1 as updateAttribute, p2 as updateConfig, p3 as updateConfigSchema, p4 as updateConnector, p5 as updateErrorStatus, p6 as updateEvent, p7 as updateExperiment, p8 as updateGate, p9 as updateGateTemplate, pa as updateI18nDraft, pb as updateI18nKey, pc as updateKillswitch, pd as updateMetric, pe as updateOpsInvestigation, pf as updateOpsItem, pg as updateProject, ph as updateTriggerConnector, pi as updateUniverse, pj as upsertI18nDraftKey, pk as upsertI18nKeys, pl as upsertProject } from './client-DzEqdN5N.js'; |
+1
-1
@@ -133,3 +133,3 @@ import { | ||
| upsertProject | ||
| } from "./chunk-RDMD5XQT.js"; | ||
| } from "./chunk-V4ZESAIF.js"; | ||
| export { | ||
@@ -136,0 +136,0 @@ ackOpsItem, |
+2
-2
@@ -1,3 +0,3 @@ | ||
| import { E as ErrorCode, a as Error } from './client-ObcuFHaV.js'; | ||
| export { A as AckOpsItemData, b as AckOpsItemError, c as AckOpsItemErrors, d as AckOpsItemRequest, e as AckOpsItemResponse, f as AckOpsItemResponse2, g as AckOpsItemResponses, h as AlertApiRow, i as ApproveEventData, j as ApproveEventError, k as ApproveEventErrors, l as ApproveEventRequest, m as ApproveEventResponse, n as ApproveEventResponse2, o as ApproveEventResponses, p as AttributeType, C as ClaudeTriggerConfig, q as Client, r as ClientOptions, s as Config, t as ConfigName, u as ConfigureOptions, v as ConnectorData, w as ConnectorEvent, x as ConnectorProvider, y as ConnectorRecord, z as CopilotTriggerConfig, B as CreateAlertRuleData, D as CreateAlertRuleError, F as CreateAlertRuleErrors, G as CreateAlertRuleRequest, H as CreateAlertRuleResponse, I as CreateAlertRuleResponse2, J as CreateAlertRuleResponses, K as CreateAttributeData, L as CreateAttributeError, M as CreateAttributeErrors, N as CreateAttributeRequest, O as CreateAttributeResponse, P as CreateAttributeResponse2, Q as CreateAttributeResponses, R as CreateBugRequest, S as CreateClaudeTriggerRequest, T as CreateClientConfig, U as CreateConfigData, V as CreateConfigError, W as CreateConfigErrors, X as CreateConfigRequest, Y as CreateConfigResponse, Z as CreateConfigResponse2, _ as CreateConfigResponses, $ as CreateConnectorData, a0 as CreateConnectorError, a1 as CreateConnectorErrors, a2 as CreateConnectorRequest, a3 as CreateConnectorResponse, a4 as CreateConnectorResponse2, a5 as CreateConnectorResponses, a6 as CreateCopilotTriggerRequest, a7 as CreateCursorTriggerRequest, a8 as CreateEventData, a9 as CreateEventError, aa as CreateEventErrors, ab as CreateEventRequest, ac as CreateEventResponse, ad as CreateEventResponse2, ae as CreateEventResponses, af as CreateExperimentData, ag as CreateExperimentError, ah as CreateExperimentErrors, ai as CreateExperimentReadoutData, aj as CreateExperimentReadoutError, ak as CreateExperimentReadoutErrors, al as CreateExperimentReadoutRequest, am as CreateExperimentReadoutResponse, an as CreateExperimentReadoutResponse2, ao as CreateExperimentReadoutResponses, ap as CreateExperimentRequest, aq as CreateExperimentResponse, ar as CreateExperimentResponse2, as as CreateExperimentResponses, at as CreateFeatureRequestRequest, au as CreateGateData, av as CreateGateError, aw as CreateGateErrors, ax as CreateGateRequest, ay as CreateGateResponse, az as CreateGateResponse2, aA as CreateGateResponses, aB as CreateGateTemplateData, aC as CreateGateTemplateError, aD as CreateGateTemplateErrors, aE as CreateGateTemplateRequest, aF as CreateGateTemplateResponse, aG as CreateGateTemplateResponse2, aH as CreateGateTemplateResponses, aI as CreateI18nDraftData, aJ as CreateI18nDraftError, aK as CreateI18nDraftErrors, aL as CreateI18nDraftRequest, aM as CreateI18nDraftResponse, aN as CreateI18nDraftResponses, aO as CreateI18nProfileData, aP as CreateI18nProfileError, aQ as CreateI18nProfileErrors, aR as CreateI18nProfileRequest, aS as CreateI18nProfileResponse, aT as CreateI18nProfileResponse2, aU as CreateI18nProfileResponses, aV as CreateJulesTriggerRequest, aW as CreateKeyData, aX as CreateKeyError, aY as CreateKeyErrors, aZ as CreateKeyRequest, a_ as CreateKeyResponse, a$ as CreateKeyResponse2, b0 as CreateKeyResponses, b1 as CreateKillswitchData, b2 as CreateKillswitchError, b3 as CreateKillswitchErrors, b4 as CreateKillswitchRequest, b5 as CreateKillswitchResponse, b6 as CreateKillswitchResponse2, b7 as CreateKillswitchResponses, b8 as CreateMetricData, b9 as CreateMetricError, ba as CreateMetricErrors, bb as CreateMetricRequest, bc as CreateMetricResponse, bd as CreateMetricResponse2, be as CreateMetricResponses, bf as CreateMetricWithQuery, bg as CreateMetricWithQueryIr, bh as CreateOAuthConnectorRequest, bi as CreateOpsCommentData, bj as CreateOpsCommentError, bk as CreateOpsCommentErrors, bl as CreateOpsCommentRequest, bm as CreateOpsCommentResponse, bn as CreateOpsCommentResponse2, bo as CreateOpsCommentResponses, bp as CreateOpsInvestigationData, bq as CreateOpsInvestigationError, br as CreateOpsInvestigationErrors, bs as CreateOpsInvestigationRequest, bt as CreateOpsInvestigationResponse, bu as CreateOpsInvestigationResponses, bv as CreateOpsItemData, bw as CreateOpsItemError, bx as CreateOpsItemErrors, by as CreateOpsItemRequest, bz as CreateOpsItemResponse, bA as CreateOpsItemResponse2, bB as CreateOpsItemResponses, bC as CreateTriggerConnectorData, bD as CreateTriggerConnectorError, bE as CreateTriggerConnectorErrors, bF as CreateTriggerConnectorRequest, bG as CreateTriggerConnectorResponse, bH as CreateTriggerConnectorResponses, bI as CreateUniverseData, bJ as CreateUniverseError, bK as CreateUniverseErrors, bL as CreateUniverseRequest, bM as CreateUniverseResponse, bN as CreateUniverseResponse2, bO as CreateUniverseResponses, bP as CursorTriggerConfig, bQ as DeleteAlertRuleData, bR as DeleteAlertRuleError, bS as DeleteAlertRuleErrors, bT as DeleteAlertRuleResponse, bU as DeleteAlertRuleResponse2, bV as DeleteAlertRuleResponses, bW as DeleteAttributeData, bX as DeleteAttributeError, bY as DeleteAttributeErrors, bZ as DeleteAttributeResponse, b_ as DeleteAttributeResponse2, b$ as DeleteAttributeResponses, c0 as DeleteConfigData, c1 as DeleteConfigError, c2 as DeleteConfigErrors, c3 as DeleteConfigResponse, c4 as DeleteConfigResponse2, c5 as DeleteConfigResponses, c6 as DeleteConnectorData, c7 as DeleteConnectorError, c8 as DeleteConnectorErrors, c9 as DeleteConnectorResponse, ca as DeleteConnectorResponse2, cb as DeleteConnectorResponses, cc as DeleteEventData, cd as DeleteEventError, ce as DeleteEventErrors, cf as DeleteEventResponse, cg as DeleteEventResponse2, ch as DeleteEventResponses, ci as DeleteExperimentData, cj as DeleteExperimentError, ck as DeleteExperimentErrors, cl as DeleteExperimentResponse, cm as DeleteExperimentResponse2, cn as DeleteExperimentResponses, co as DeleteGateData, cp as DeleteGateError, cq as DeleteGateErrors, cr as DeleteGateResponse, cs as DeleteGateResponse2, ct as DeleteGateResponses, cu as DeleteGateTemplateData, cv as DeleteGateTemplateError, cw as DeleteGateTemplateErrors, cx as DeleteGateTemplateResponse, cy as DeleteGateTemplateResponse2, cz as DeleteGateTemplateResponses, cA as DeleteI18nDraftData, cB as DeleteI18nDraftError, cC as DeleteI18nDraftErrors, cD as DeleteI18nDraftResponse, cE as DeleteI18nDraftResponses, cF as DeleteI18nKeyData, cG as DeleteI18nKeyError, cH as DeleteI18nKeyErrors, cI as DeleteI18nKeyResponse, cJ as DeleteI18nKeyResponses, cK as DeleteI18nProfileData, cL as DeleteI18nProfileError, cM as DeleteI18nProfileErrors, cN as DeleteI18nProfileResponse, cO as DeleteI18nProfileResponses, cP as DeleteKillswitchData, cQ as DeleteKillswitchError, cR as DeleteKillswitchErrors, cS as DeleteKillswitchResponse, cT as DeleteKillswitchResponse2, cU as DeleteKillswitchResponses, cV as DeleteMetricData, cW as DeleteMetricError, cX as DeleteMetricErrors, cY as DeleteMetricResponse, cZ as DeleteMetricResponse2, c_ as DeleteMetricResponses, c$ as DeleteOpsItemData, d0 as DeleteOpsItemError, d1 as DeleteOpsItemErrors, d2 as DeleteOpsItemResponse, d3 as DeleteOpsItemResponse2, d4 as DeleteOpsItemResponses, d5 as DeleteUniverseData, d6 as DeleteUniverseError, d7 as DeleteUniverseErrors, d8 as DeleteUniverseResponse, d9 as DeleteUniverseResponse2, da as DeleteUniverseResponses, db as DisableGateData, dc as DisableGateError, dd as DisableGateErrors, de as DisableGateResponse, df as DisableGateResponse2, dg as DisableGateResponses, dh as DiscardConfigDraftData, di as DiscardConfigDraftError, dj as DiscardConfigDraftErrors, dk as DiscardConfigDraftRequest, dl as DiscardConfigDraftResponse, dm as DiscardConfigDraftResponse2, dn as DiscardConfigDraftResponses, dp as Domain, dq as EnableGateData, dr as EnableGateError, ds as EnableGateErrors, dt as EnableGateResponse, du as EnableGateResponse2, dv as EnableGateResponses, dw as Env, dx as ErrorOccurrence, dy as ErrorRecord, dz as ErrorSeriesRequest, dA as ErrorSeriesResponse, dB as ExperimentApiRow, dC as ExperimentInlineMetric, dD as ExperimentReadoutApiRow, dE as ExperimentReadoutCaveat, dF as ExperimentReadoutMetric, dG as ExperimentResultRow, dH as FileErrorTicketData, dI as FileErrorTicketError, dJ as FileErrorTicketErrors, dK as FileErrorTicketResponse, dL as FileErrorTicketResponse2, dM as FileErrorTicketResponses, dN as FireConnectorData, dO as FireConnectorError, dP as FireConnectorErrors, dQ as FireConnectorRequest, dR as FireConnectorResponse, dS as FireConnectorResponse2, dT as FireConnectorResponses, dU as Folder, dV as GateApiRow, dW as GateTemplate, dX as GateTemplateRule, dY as GateTemplateRuleResponse, dZ as GetAttributeData, d_ as GetAttributeError, d$ as GetAttributeErrors, e0 as GetAttributeResponse, e1 as GetAttributeResponse2, e2 as GetAttributeResponses, e3 as GetConfigData, e4 as GetConfigError, e5 as GetConfigErrors, e6 as GetConfigResponse, e7 as GetConfigResponse2, e8 as GetConfigResponses, e9 as GetConnectorData, ea as GetConnectorError, eb as GetConnectorErrors, ec as GetConnectorResponse, ed as GetConnectorResponses, ee as GetCurrentProjectData, ef as GetCurrentProjectError, eg as GetCurrentProjectErrors, eh as GetCurrentProjectResponse, ei as GetCurrentProjectResponse2, ej as GetCurrentProjectResponses, ek as GetErrorData, el as GetErrorError, em as GetErrorErrors, en as GetErrorResponse, eo as GetErrorResponses, ep as GetErrorSeriesData, eq as GetErrorSeriesError, er as GetErrorSeriesErrors, es as GetErrorSeriesResponse, et as GetErrorSeriesResponses, eu as GetEventData, ev as GetEventError, ew as GetEventErrors, ex as GetEventResponse, ey as GetEventResponse2, ez as GetEventResponses, eA as GetExperimentData, eB as GetExperimentError, eC as GetExperimentErrors, eD as GetExperimentReadoutData, eE as GetExperimentReadoutError, eF as GetExperimentReadoutErrors, eG as GetExperimentReadoutResponse, eH as GetExperimentReadoutResponses, eI as GetExperimentResponse, eJ as GetExperimentResponses, eK as GetExperimentResultsData, eL as GetExperimentResultsError, eM as GetExperimentResultsErrors, eN as GetExperimentResultsResponse, eO as GetExperimentResultsResponse2, eP as GetExperimentResultsResponses, eQ as GetExperimentTimeseriesData, eR as GetExperimentTimeseriesError, eS as GetExperimentTimeseriesErrors, eT as GetExperimentTimeseriesResponse, eU as GetExperimentTimeseriesResponse2, eV as GetExperimentTimeseriesResponses, eW as GetGateData, eX as GetGateError, eY as GetGateErrors, eZ as GetGateResponse, e_ as GetGateResponses, e$ as GetGateTemplateData, f0 as GetGateTemplateError, f1 as GetGateTemplateErrors, f2 as GetGateTemplateResponse, f3 as GetGateTemplateResponses, f4 as GetKillswitchData, f5 as GetKillswitchError, f6 as GetKillswitchErrors, f7 as GetKillswitchResponse, f8 as GetKillswitchResponse2, f9 as GetKillswitchResponses, fa as GetMetricData, fb as GetMetricError, fc as GetMetricErrors, fd as GetMetricResponse, fe as GetMetricResponse2, ff as GetMetricResponses, fg as GetMetricSeriesData, fh as GetMetricSeriesError, fi as GetMetricSeriesErrors, fj as GetMetricSeriesRequest, fk as GetMetricSeriesResponse, fl as GetMetricSeriesResponse2, fm as GetMetricSeriesResponses, fn as GetOpsItemData, fo as GetOpsItemError, fp as GetOpsItemErrors, fq as GetOpsItemResponse, fr as GetOpsItemResponse2, fs as GetOpsItemResponses, ft as GetProjectData, fu as GetProjectError, fv as GetProjectErrors, fw as GetProjectResponse, fx as GetProjectResponses, fy as GithubConnectorData, fz as GithubPrLink, fA as I18nDraft, fB as JulesTriggerConfig, fC as KeyRecord, fD as KillswitchValue, fE as LinkPrToOpsItemData, fF as LinkPrToOpsItemError, fG as LinkPrToOpsItemErrors, fH as LinkPrToOpsItemRequest, fI as LinkPrToOpsItemResponse, fJ as LinkPrToOpsItemResponse2, fK as LinkPrToOpsItemResponses, fL as ListAlertRulesData, fM as ListAlertRulesError, fN as ListAlertRulesErrors, fO as ListAlertRulesResponse, fP as ListAlertRulesResponse2, fQ as ListAlertRulesResponses, fR as ListAlertsData, fS as ListAlertsError, fT as ListAlertsErrors, fU as ListAlertsResponse, fV as ListAlertsResponse2, fW as ListAlertsResponses, fX as ListAttributesData, fY as ListAttributesError, fZ as ListAttributesErrors, f_ as ListAttributesResponse, f$ as ListAttributesResponse2, g0 as ListAttributesResponses, g1 as ListConfigActivityData, g2 as ListConfigActivityError, g3 as ListConfigActivityErrors, g4 as ListConfigActivityResponse, g5 as ListConfigActivityResponse2, g6 as ListConfigActivityResponses, g7 as ListConfigVersionsData, g8 as ListConfigVersionsError, g9 as ListConfigVersionsErrors, ga as ListConfigVersionsResponse, gb as ListConfigVersionsResponse2, gc as ListConfigVersionsResponses, gd as ListConfigsData, ge as ListConfigsError, gf as ListConfigsErrors, gg as ListConfigsResponse, gh as ListConfigsResponse2, gi as ListConfigsResponses, gj as ListConnectorsData, gk as ListConnectorsError, gl as ListConnectorsErrors, gm as ListConnectorsResponse, gn as ListConnectorsResponse2, go as ListConnectorsResponses, gp as ListErrorsData, gq as ListErrorsError, gr as ListErrorsErrors, gs as ListErrorsResponse, gt as ListErrorsResponse2, gu as ListErrorsResponses, gv as ListEventsData, gw as ListEventsError, gx as ListEventsErrors, gy as ListEventsResponse, gz as ListEventsResponse2, gA as ListEventsResponses, gB as ListExperimentsData, gC as ListExperimentsError, gD as ListExperimentsErrors, gE as ListExperimentsResponse, gF as ListExperimentsResponse2, gG as ListExperimentsResponses, gH as ListGateActivityData, gI as ListGateActivityError, gJ as ListGateActivityErrors, gK as ListGateActivityResponse, gL as ListGateActivityResponse2, gM as ListGateActivityResponses, gN as ListGateTemplatesData, gO as ListGateTemplatesError, gP as ListGateTemplatesErrors, gQ as ListGateTemplatesResponse, gR as ListGateTemplatesResponse2, gS as ListGateTemplatesResponses, gT as ListGatesData, gU as ListGatesError, gV as ListGatesErrors, gW as ListGatesResponse, gX as ListGatesResponse2, gY as ListGatesResponses, gZ as ListI18nDraftKeysData, g_ as ListI18nDraftKeysError, g$ as ListI18nDraftKeysErrors, h0 as ListI18nDraftKeysResponse, h1 as ListI18nDraftKeysResponse2, h2 as ListI18nDraftKeysResponses, h3 as ListI18nDraftsData, h4 as ListI18nDraftsError, h5 as ListI18nDraftsErrors, h6 as ListI18nDraftsResponse, h7 as ListI18nDraftsResponse2, h8 as ListI18nDraftsResponses, h9 as ListI18nKeysData, ha as ListI18nKeysError, hb as ListI18nKeysErrors, hc as ListI18nKeysResponse, hd as ListI18nKeysResponse2, he as ListI18nKeysResponses, hf as ListI18nProfilesData, hg as ListI18nProfilesError, hh as ListI18nProfilesErrors, hi as ListI18nProfilesResponse, hj as ListI18nProfilesResponse2, hk as ListI18nProfilesResponses, hl as ListKeysData, hm as ListKeysError, hn as ListKeysErrors, ho as ListKeysResponse, hp as ListKeysResponse2, hq as ListKeysResponses, hr as ListKillswitchesData, hs as ListKillswitchesError, ht as ListKillswitchesErrors, hu as ListKillswitchesResponse, hv as ListKillswitchesResponse2, hw as ListKillswitchesResponses, hx as ListMetricExperimentsData, hy as ListMetricExperimentsError, hz as ListMetricExperimentsErrors, hA as ListMetricExperimentsResponse, hB as ListMetricExperimentsResponse2, hC as ListMetricExperimentsResponses, hD as ListMetricsData, hE as ListMetricsError, hF as ListMetricsErrors, hG as ListMetricsResponse, hH as ListMetricsResponse2, hI as ListMetricsResponses, hJ as ListOpsAgentsData, hK as ListOpsAgentsError, hL as ListOpsAgentsErrors, hM as ListOpsAgentsResponse, hN as ListOpsAgentsResponse2, hO as ListOpsAgentsResponses, hP as ListOpsCommentsData, hQ as ListOpsCommentsError, hR as ListOpsCommentsErrors, hS as ListOpsCommentsResponse, hT as ListOpsCommentsResponse2, hU as ListOpsCommentsResponses, hV as ListOpsInvestigationsData, hW as ListOpsInvestigationsError, hX as ListOpsInvestigationsErrors, hY as ListOpsInvestigationsResponse, hZ as ListOpsInvestigationsResponse2, h_ as ListOpsInvestigationsResponses, h$ as ListOpsItemsData, i0 as ListOpsItemsError, i1 as ListOpsItemsErrors, i2 as ListOpsItemsResponse, i3 as ListOpsItemsResponse2, i4 as ListOpsItemsResponses, i5 as ListSlackChannelsData, i6 as ListSlackChannelsError, i7 as ListSlackChannelsErrors, i8 as ListSlackChannelsResponse, i9 as ListSlackChannelsResponse2, ia as ListSlackChannelsResponses, ib as ListUniversesData, ic as ListUniversesError, id as ListUniversesErrors, ie as ListUniversesResponse, ig as ListUniversesResponse2, ih as ListUniversesResponses, ii as MeasurePlanResource, ij as MeasurePlanStep, ik as MetricDefaultMinEffectOfInterest, il as MetricDirection, im as MetricDisplayUnit, io as MetricEventName, ip as MetricName, iq as MetricQueryDsl, ir as MetricWinsorizePct, is as NotificationTarget, it as NotifyOpsData, iu as NotifyOpsError, iv as NotifyOpsErrors, iw as NotifyOpsRequest, ix as NotifyOpsResponse, iy as NotifyOpsResponse2, iz as NotifyOpsResponses, iA as OkResponse, iB as OpsAgentProfile, iC as OpsAlertContext, iD as OpsAlertMetricSummary, iE as OpsAlertRuleSummary, iF as OpsBrowserContext, iG as OpsComment, iH as OpsCommentAuthorType, iI as OpsErrorContext, iJ as OpsInvestigation, iK as OpsInvestigationState, iL as OpsItemAttachment, iM as OpsItemContext, iN as OpsItemNotifyOrNull, iO as OpsItemOwner, iP as OpsItemPriority, iQ as OpsItemPriorityOrNull, iR as OpsItemRelated, iS as OpsItemStatus, iT as OpsMeasurePlanContext, iU as OpsRun, iV as OpsRunAction, iW as OpsRunActionOrNull, iX as Options, iY as PaginationCursor, iZ as PaginationLimit, i_ as ProjectId, i$ as PublishConfigDraftData, j0 as PublishConfigDraftError, j1 as PublishConfigDraftErrors, j2 as PublishConfigDraftRequest, j3 as PublishConfigDraftResponse, j4 as PublishConfigDraftResponse2, j5 as PublishConfigDraftResponses, j6 as PublishI18nProfileData, j7 as PublishI18nProfileError, j8 as PublishI18nProfileErrors, j9 as PublishI18nProfileRequest, ja as PublishI18nProfileResponse, jb as PublishI18nProfileResponse2, jc as PublishI18nProfileResponses, jd as PushI18nKeysData, je as PushI18nKeysError, jf as PushI18nKeysErrors, jg as PushI18nKeysRequest, jh as PushI18nKeysResponse, ji as PushI18nKeysResponse2, jj as PushI18nKeysResponses, jk as Q, jl as QueryIr, jm as ReanalyzeExperimentData, jn as ReanalyzeExperimentError, jo as ReanalyzeExperimentErrors, jp as ReanalyzeExperimentResponse, jq as ReanalyzeExperimentResponse2, jr as ReanalyzeExperimentResponses, js as RequestResult, jt as ResolveErrorData, ju as ResolveErrorError, jv as ResolveErrorErrors, jw as ResolveErrorResponse, jx as ResolveErrorResponses, jy as ResourceId, jz as RevokeKeyData, jA as RevokeKeyError, jB as RevokeKeyErrors, jC as RevokeKeyResponse, jD as RevokeKeyResponse2, jE as RevokeKeyResponses, jF as SaveConfigDraftData, jG as SaveConfigDraftError, jH as SaveConfigDraftErrors, jI as SaveConfigDraftRequest, jJ as SaveConfigDraftResponse, jK as SaveConfigDraftResponse2, jL as SaveConfigDraftResponses, jM as SearchHit, jN as SearchResourcesData, jO as SearchResourcesError, jP as SearchResourcesErrors, jQ as SearchResourcesResponse, jR as SearchResourcesResponses, jS as SearchResponse, jT as SetExperimentMetricsData, jU as SetExperimentMetricsError, jV as SetExperimentMetricsErrors, jW as SetExperimentMetricsRequest, jX as SetExperimentMetricsResponse, jY as SetExperimentMetricsResponse2, jZ as SetExperimentMetricsResponses, j_ as SetExperimentStatusData, j$ as SetExperimentStatusError, k0 as SetExperimentStatusErrors, k1 as SetExperimentStatusRequest, k2 as SetExperimentStatusResponse, k3 as SetExperimentStatusResponse2, k4 as SetExperimentStatusResponses, k5 as SetI18nLabelData, k6 as SetI18nLabelError, k7 as SetI18nLabelErrors, k8 as SetI18nLabelRequest, k9 as SetI18nLabelResponse, ka as SetI18nLabelResponse2, kb as SetI18nLabelResponses, kc as SetKillswitchSwitchData, kd as SetKillswitchSwitchError, ke as SetKillswitchSwitchErrors, kf as SetKillswitchSwitchRequest, kg as SetKillswitchSwitchResponse, kh as SetKillswitchSwitchResponse2, ki as SetKillswitchSwitchResponses, kj as SetKillswitchValueData, kk as SetKillswitchValueError, kl as SetKillswitchValueErrors, km as SetKillswitchValueRequest, kn as SetKillswitchValueResponse, ko as SetKillswitchValueResponse2, kp as SetKillswitchValueResponses, kq as SlackConnectorData, kr as TestConnectorData, ks as TestConnectorError, kt as TestConnectorErrors, ku as TestConnectorResponse, kv as TestConnectorResponse2, kw as TestConnectorResponses, kx as UnarchiveMetricData, ky as UnarchiveMetricError, kz as UnarchiveMetricErrors, kA as UnarchiveMetricResponse, kB as UnarchiveMetricResponse2, kC as UnarchiveMetricResponses, kD as UniverseParam, kE as UniverseParamSchema, kF as UnsetKillswitchSwitchData, kG as UnsetKillswitchSwitchError, kH as UnsetKillswitchSwitchErrors, kI as UnsetKillswitchSwitchRequest, kJ as UnsetKillswitchSwitchResponse, kK as UnsetKillswitchSwitchResponse2, kL as UnsetKillswitchSwitchResponses, kM as UpdateAlertData, kN as UpdateAlertError, kO as UpdateAlertErrors, kP as UpdateAlertRequest, kQ as UpdateAlertResponse, kR as UpdateAlertResponses, kS as UpdateAlertRuleData, kT as UpdateAlertRuleError, kU as UpdateAlertRuleErrors, kV as UpdateAlertRuleRequest, kW as UpdateAlertRuleResponse, kX as UpdateAlertRuleResponse2, kY as UpdateAlertRuleResponses, kZ as UpdateAttributeData, k_ as UpdateAttributeError, k$ as UpdateAttributeErrors, l0 as UpdateAttributeRequest, l1 as UpdateAttributeResponse, l2 as UpdateAttributeResponse2, l3 as UpdateAttributeResponses, l4 as UpdateBugRequest, l5 as UpdateClaudeTriggerRequest, l6 as UpdateConfigData, l7 as UpdateConfigError, l8 as UpdateConfigErrors, l9 as UpdateConfigRequest, la as UpdateConfigResponse, lb as UpdateConfigResponse2, lc as UpdateConfigResponses, ld as UpdateConfigSchemaData, le as UpdateConfigSchemaError, lf as UpdateConfigSchemaErrors, lg as UpdateConfigSchemaRequest, lh as UpdateConfigSchemaResponse, li as UpdateConfigSchemaResponse2, lj as UpdateConfigSchemaResponses, lk as UpdateConnectorData, ll as UpdateConnectorError, lm as UpdateConnectorErrors, ln as UpdateConnectorRequest, lo as UpdateConnectorResponse, lp as UpdateConnectorResponse2, lq as UpdateConnectorResponses, lr as UpdateCopilotTriggerRequest, ls as UpdateCursorTriggerRequest, lt as UpdateErrorStatusData, lu as UpdateErrorStatusError, lv as UpdateErrorStatusErrors, lw as UpdateErrorStatusRequest, lx as UpdateErrorStatusResponse, ly as UpdateErrorStatusResponses, lz as UpdateEventData, lA as UpdateEventError, lB as UpdateEventErrors, lC as UpdateEventRequest, lD as UpdateEventResponse, lE as UpdateEventResponse2, lF as UpdateEventResponses, lG as UpdateExperimentData, lH as UpdateExperimentError, lI as UpdateExperimentErrors, lJ as UpdateExperimentRequest, lK as UpdateExperimentResponse, lL as UpdateExperimentResponse2, lM as UpdateExperimentResponses, lN as UpdateFeatureRequestRequest, lO as UpdateGateData, lP as UpdateGateError, lQ as UpdateGateErrors, lR as UpdateGateRequest, lS as UpdateGateResponse, lT as UpdateGateResponse2, lU as UpdateGateResponses, lV as UpdateGateTemplateData, lW as UpdateGateTemplateError, lX as UpdateGateTemplateErrors, lY as UpdateGateTemplateRequest, lZ as UpdateGateTemplateResponse, l_ as UpdateGateTemplateResponse2, l$ as UpdateGateTemplateResponses, m0 as UpdateI18nDraftData, m1 as UpdateI18nDraftError, m2 as UpdateI18nDraftErrors, m3 as UpdateI18nDraftRequest, m4 as UpdateI18nDraftResponse, m5 as UpdateI18nDraftResponses, m6 as UpdateI18nKeyData, m7 as UpdateI18nKeyError, m8 as UpdateI18nKeyErrors, m9 as UpdateI18nKeyRequest, ma as UpdateI18nKeyResponse, mb as UpdateI18nKeyResponse2, mc as UpdateI18nKeyResponses, md as UpdateJulesTriggerRequest, me as UpdateKillswitchData, mf as UpdateKillswitchError, mg as UpdateKillswitchErrors, mh as UpdateKillswitchRequest, mi as UpdateKillswitchResponse, mj as UpdateKillswitchResponse2, mk as UpdateKillswitchResponses, ml as UpdateMetricData, mm as UpdateMetricError, mn as UpdateMetricErrors, mo as UpdateMetricFields, mp as UpdateMetricRequest, mq as UpdateMetricResponse, mr as UpdateMetricResponses, ms as UpdateMetricWithQuery, mt as UpdateMetricWithQueryIr, mu as UpdateOpsInvestigationData, mv as UpdateOpsInvestigationError, mw as UpdateOpsInvestigationErrors, mx as UpdateOpsInvestigationRequest, my as UpdateOpsInvestigationResponse, mz as UpdateOpsInvestigationResponses, mA as UpdateOpsItemData, mB as UpdateOpsItemError, mC as UpdateOpsItemErrors, mD as UpdateOpsItemRequest, mE as UpdateOpsItemResponse, mF as UpdateOpsItemResponse2, mG as UpdateOpsItemResponses, mH as UpdateOpsItemStatusRequest, mI as UpdateProjectData, mJ as UpdateProjectError, mK as UpdateProjectErrors, mL as UpdateProjectRequest, mM as UpdateProjectResponse, mN as UpdateProjectResponses, mO as UpdateTriggerConnectorData, mP as UpdateTriggerConnectorError, mQ as UpdateTriggerConnectorErrors, mR as UpdateTriggerConnectorRequest, mS as UpdateTriggerConnectorResponse, mT as UpdateTriggerConnectorResponses, mU as UpdateUniverseData, mV as UpdateUniverseError, mW as UpdateUniverseErrors, mX as UpdateUniverseRequest, mY as UpdateUniverseResponse, mZ as UpdateUniverseResponse2, m_ as UpdateUniverseResponses, m$ as UpsertI18nDraftKeyData, n0 as UpsertI18nDraftKeyError, n1 as UpsertI18nDraftKeyErrors, n2 as UpsertI18nDraftKeyRequest, n3 as UpsertI18nDraftKeyResponse, n4 as UpsertI18nDraftKeyResponses, n5 as UpsertI18nKeysData, n6 as UpsertI18nKeysError, n7 as UpsertI18nKeysErrors, n8 as UpsertI18nKeysRequest, n9 as UpsertI18nKeysResponse, na as UpsertI18nKeysResponse2, nb as UpsertI18nKeysResponses, nc as UpsertProjectData, nd as UpsertProjectError, ne as UpsertProjectErrors, nf as UpsertProjectRequest, ng as UpsertProjectResponse, nh as UpsertProjectResponse2, ni as UpsertProjectResponses, nj as ackOpsItem, nk as approveEvent, nl as client, nm as configure, nn as createAlertRule, no as createAttribute, np as createClient, nq as createClientConfig, nr as createConfig, ns as createConnector, nt as createEvent, nu as createExperiment, nv as createExperimentReadout, nw as createGate, nx as createGateTemplate, ny as createI18nDraft, nz as createI18nProfile, nA as createKey, nB as createKillswitch, nC as createMetric, nD as createOpsComment, nE as createOpsInvestigation, nF as createOpsItem, nG as createTriggerConnector, nH as createUniverse, nI as deleteAlertRule, nJ as deleteAttribute, nK as deleteConfig, nL as deleteConnector, nM as deleteEvent, nN as deleteExperiment, nO as deleteGate, nP as deleteGateTemplate, nQ as deleteI18nDraft, nR as deleteI18nKey, nS as deleteI18nProfile, nT as deleteKillswitch, nU as deleteMetric, nV as deleteOpsItem, nW as deleteUniverse, nX as disableGate, nY as discardConfigDraft, nZ as enableGate, n_ as fileErrorTicket, n$ as fireConnector, o0 as getAttribute, o1 as getConfig, o2 as getConnector, o3 as getCurrentProject, o4 as getError, o5 as getErrorSeries, o6 as getEvent, o7 as getExperiment, o8 as getExperimentReadout, o9 as getExperimentResults, oa as getExperimentTimeseries, ob as getGate, oc as getGateTemplate, od as getKillswitch, oe as getMetric, of as getMetricSeries, og as getOpsItem, oh as getProject, oi as linkPrToOpsItem, oj as listAlertRules, ok as listAlerts, ol as listAttributes, om as listConfigActivity, on as listConfigVersions, oo as listConfigs, op as listConnectors, oq as listErrors, or as listEvents, os as listExperiments, ot as listGateActivity, ou as listGateTemplates, ov as listGates, ow as listI18nDraftKeys, ox as listI18nDrafts, oy as listI18nKeys, oz as listI18nProfiles, oA as listKeys, oB as listKillswitches, oC as listMetricExperiments, oD as listMetrics, oE as listOpsAgents, oF as listOpsComments, oG as listOpsInvestigations, oH as listOpsItems, oI as listSlackChannels, oJ as listUniverses, oK as notifyOps, oL as publishConfigDraft, oM as publishI18nProfile, oN as pushI18nKeys, oO as reanalyzeExperiment, oP as resolveError, oQ as revokeKey, oR as saveConfigDraft, oS as searchResources, oT as setExperimentMetrics, oU as setExperimentStatus, oV as setI18nLabel, oW as setKillswitchSwitch, oX as setKillswitchValue, oY as testConnector, oZ as unarchiveMetric, o_ as unsetKillswitchSwitch, o$ as updateAlert, p0 as updateAlertRule, p1 as updateAttribute, p2 as updateConfig, p3 as updateConfigSchema, p4 as updateConnector, p5 as updateErrorStatus, p6 as updateEvent, p7 as updateExperiment, p8 as updateGate, p9 as updateGateTemplate, pa as updateI18nDraft, pb as updateI18nKey, pc as updateKillswitch, pd as updateMetric, pe as updateOpsInvestigation, pf as updateOpsItem, pg as updateProject, ph as updateTriggerConnector, pi as updateUniverse, pj as upsertI18nDraftKey, pk as upsertI18nKeys, pl as upsertProject } from './client-ObcuFHaV.js'; | ||
| import { E as ErrorCode, a as Error } from './client-DzEqdN5N.js'; | ||
| export { A as AckOpsItemData, b as AckOpsItemError, c as AckOpsItemErrors, d as AckOpsItemRequest, e as AckOpsItemResponse, f as AckOpsItemResponse2, g as AckOpsItemResponses, h as AlertApiRow, i as ApproveEventData, j as ApproveEventError, k as ApproveEventErrors, l as ApproveEventRequest, m as ApproveEventResponse, n as ApproveEventResponse2, o as ApproveEventResponses, p as AttributeType, C as ClaudeTriggerConfig, q as Client, r as ClientOptions, s as Config, t as ConfigName, u as ConfigureOptions, v as ConnectorData, w as ConnectorEvent, x as ConnectorProvider, y as ConnectorRecord, z as CopilotTriggerConfig, B as CreateAlertRuleData, D as CreateAlertRuleError, F as CreateAlertRuleErrors, G as CreateAlertRuleRequest, H as CreateAlertRuleResponse, I as CreateAlertRuleResponse2, J as CreateAlertRuleResponses, K as CreateAttributeData, L as CreateAttributeError, M as CreateAttributeErrors, N as CreateAttributeRequest, O as CreateAttributeResponse, P as CreateAttributeResponse2, Q as CreateAttributeResponses, R as CreateBugRequest, S as CreateClaudeTriggerRequest, T as CreateClientConfig, U as CreateConfigData, V as CreateConfigError, W as CreateConfigErrors, X as CreateConfigRequest, Y as CreateConfigResponse, Z as CreateConfigResponse2, _ as CreateConfigResponses, $ as CreateConnectorData, a0 as CreateConnectorError, a1 as CreateConnectorErrors, a2 as CreateConnectorRequest, a3 as CreateConnectorResponse, a4 as CreateConnectorResponse2, a5 as CreateConnectorResponses, a6 as CreateCopilotTriggerRequest, a7 as CreateCursorTriggerRequest, a8 as CreateEventData, a9 as CreateEventError, aa as CreateEventErrors, ab as CreateEventRequest, ac as CreateEventResponse, ad as CreateEventResponse2, ae as CreateEventResponses, af as CreateExperimentData, ag as CreateExperimentError, ah as CreateExperimentErrors, ai as CreateExperimentReadoutData, aj as CreateExperimentReadoutError, ak as CreateExperimentReadoutErrors, al as CreateExperimentReadoutRequest, am as CreateExperimentReadoutResponse, an as CreateExperimentReadoutResponse2, ao as CreateExperimentReadoutResponses, ap as CreateExperimentRequest, aq as CreateExperimentResponse, ar as CreateExperimentResponse2, as as CreateExperimentResponses, at as CreateFeatureRequestRequest, au as CreateGateData, av as CreateGateError, aw as CreateGateErrors, ax as CreateGateRequest, ay as CreateGateResponse, az as CreateGateResponse2, aA as CreateGateResponses, aB as CreateGateTemplateData, aC as CreateGateTemplateError, aD as CreateGateTemplateErrors, aE as CreateGateTemplateRequest, aF as CreateGateTemplateResponse, aG as CreateGateTemplateResponse2, aH as CreateGateTemplateResponses, aI as CreateI18nDraftData, aJ as CreateI18nDraftError, aK as CreateI18nDraftErrors, aL as CreateI18nDraftRequest, aM as CreateI18nDraftResponse, aN as CreateI18nDraftResponses, aO as CreateI18nProfileData, aP as CreateI18nProfileError, aQ as CreateI18nProfileErrors, aR as CreateI18nProfileRequest, aS as CreateI18nProfileResponse, aT as CreateI18nProfileResponse2, aU as CreateI18nProfileResponses, aV as CreateJulesTriggerRequest, aW as CreateKeyData, aX as CreateKeyError, aY as CreateKeyErrors, aZ as CreateKeyRequest, a_ as CreateKeyResponse, a$ as CreateKeyResponse2, b0 as CreateKeyResponses, b1 as CreateKillswitchData, b2 as CreateKillswitchError, b3 as CreateKillswitchErrors, b4 as CreateKillswitchRequest, b5 as CreateKillswitchResponse, b6 as CreateKillswitchResponse2, b7 as CreateKillswitchResponses, b8 as CreateMetricData, b9 as CreateMetricError, ba as CreateMetricErrors, bb as CreateMetricRequest, bc as CreateMetricResponse, bd as CreateMetricResponse2, be as CreateMetricResponses, bf as CreateMetricWithQuery, bg as CreateMetricWithQueryIr, bh as CreateOAuthConnectorRequest, bi as CreateOpsCommentData, bj as CreateOpsCommentError, bk as CreateOpsCommentErrors, bl as CreateOpsCommentRequest, bm as CreateOpsCommentResponse, bn as CreateOpsCommentResponse2, bo as CreateOpsCommentResponses, bp as CreateOpsInvestigationData, bq as CreateOpsInvestigationError, br as CreateOpsInvestigationErrors, bs as CreateOpsInvestigationRequest, bt as CreateOpsInvestigationResponse, bu as CreateOpsInvestigationResponses, bv as CreateOpsItemData, bw as CreateOpsItemError, bx as CreateOpsItemErrors, by as CreateOpsItemRequest, bz as CreateOpsItemResponse, bA as CreateOpsItemResponse2, bB as CreateOpsItemResponses, bC as CreateTriggerConnectorData, bD as CreateTriggerConnectorError, bE as CreateTriggerConnectorErrors, bF as CreateTriggerConnectorRequest, bG as CreateTriggerConnectorResponse, bH as CreateTriggerConnectorResponses, bI as CreateUniverseData, bJ as CreateUniverseError, bK as CreateUniverseErrors, bL as CreateUniverseRequest, bM as CreateUniverseResponse, bN as CreateUniverseResponse2, bO as CreateUniverseResponses, bP as CursorTriggerConfig, bQ as DeleteAlertRuleData, bR as DeleteAlertRuleError, bS as DeleteAlertRuleErrors, bT as DeleteAlertRuleResponse, bU as DeleteAlertRuleResponse2, bV as DeleteAlertRuleResponses, bW as DeleteAttributeData, bX as DeleteAttributeError, bY as DeleteAttributeErrors, bZ as DeleteAttributeResponse, b_ as DeleteAttributeResponse2, b$ as DeleteAttributeResponses, c0 as DeleteConfigData, c1 as DeleteConfigError, c2 as DeleteConfigErrors, c3 as DeleteConfigResponse, c4 as DeleteConfigResponse2, c5 as DeleteConfigResponses, c6 as DeleteConnectorData, c7 as DeleteConnectorError, c8 as DeleteConnectorErrors, c9 as DeleteConnectorResponse, ca as DeleteConnectorResponse2, cb as DeleteConnectorResponses, cc as DeleteEventData, cd as DeleteEventError, ce as DeleteEventErrors, cf as DeleteEventResponse, cg as DeleteEventResponse2, ch as DeleteEventResponses, ci as DeleteExperimentData, cj as DeleteExperimentError, ck as DeleteExperimentErrors, cl as DeleteExperimentResponse, cm as DeleteExperimentResponse2, cn as DeleteExperimentResponses, co as DeleteGateData, cp as DeleteGateError, cq as DeleteGateErrors, cr as DeleteGateResponse, cs as DeleteGateResponse2, ct as DeleteGateResponses, cu as DeleteGateTemplateData, cv as DeleteGateTemplateError, cw as DeleteGateTemplateErrors, cx as DeleteGateTemplateResponse, cy as DeleteGateTemplateResponse2, cz as DeleteGateTemplateResponses, cA as DeleteI18nDraftData, cB as DeleteI18nDraftError, cC as DeleteI18nDraftErrors, cD as DeleteI18nDraftResponse, cE as DeleteI18nDraftResponses, cF as DeleteI18nKeyData, cG as DeleteI18nKeyError, cH as DeleteI18nKeyErrors, cI as DeleteI18nKeyResponse, cJ as DeleteI18nKeyResponses, cK as DeleteI18nProfileData, cL as DeleteI18nProfileError, cM as DeleteI18nProfileErrors, cN as DeleteI18nProfileResponse, cO as DeleteI18nProfileResponses, cP as DeleteKillswitchData, cQ as DeleteKillswitchError, cR as DeleteKillswitchErrors, cS as DeleteKillswitchResponse, cT as DeleteKillswitchResponse2, cU as DeleteKillswitchResponses, cV as DeleteMetricData, cW as DeleteMetricError, cX as DeleteMetricErrors, cY as DeleteMetricResponse, cZ as DeleteMetricResponse2, c_ as DeleteMetricResponses, c$ as DeleteOpsItemData, d0 as DeleteOpsItemError, d1 as DeleteOpsItemErrors, d2 as DeleteOpsItemResponse, d3 as DeleteOpsItemResponse2, d4 as DeleteOpsItemResponses, d5 as DeleteUniverseData, d6 as DeleteUniverseError, d7 as DeleteUniverseErrors, d8 as DeleteUniverseResponse, d9 as DeleteUniverseResponse2, da as DeleteUniverseResponses, db as DisableGateData, dc as DisableGateError, dd as DisableGateErrors, de as DisableGateResponse, df as DisableGateResponse2, dg as DisableGateResponses, dh as DiscardConfigDraftData, di as DiscardConfigDraftError, dj as DiscardConfigDraftErrors, dk as DiscardConfigDraftRequest, dl as DiscardConfigDraftResponse, dm as DiscardConfigDraftResponse2, dn as DiscardConfigDraftResponses, dp as Domain, dq as EnableGateData, dr as EnableGateError, ds as EnableGateErrors, dt as EnableGateResponse, du as EnableGateResponse2, dv as EnableGateResponses, dw as Env, dx as ErrorOccurrence, dy as ErrorRecord, dz as ErrorSeriesRequest, dA as ErrorSeriesResponse, dB as ExperimentApiRow, dC as ExperimentInlineMetric, dD as ExperimentReadoutApiRow, dE as ExperimentReadoutCaveat, dF as ExperimentReadoutMetric, dG as ExperimentResultRow, dH as FileErrorTicketData, dI as FileErrorTicketError, dJ as FileErrorTicketErrors, dK as FileErrorTicketResponse, dL as FileErrorTicketResponse2, dM as FileErrorTicketResponses, dN as FireConnectorData, dO as FireConnectorError, dP as FireConnectorErrors, dQ as FireConnectorRequest, dR as FireConnectorResponse, dS as FireConnectorResponse2, dT as FireConnectorResponses, dU as Folder, dV as GateApiRow, dW as GateTemplate, dX as GateTemplateRule, dY as GateTemplateRuleResponse, dZ as GetAttributeData, d_ as GetAttributeError, d$ as GetAttributeErrors, e0 as GetAttributeResponse, e1 as GetAttributeResponse2, e2 as GetAttributeResponses, e3 as GetConfigData, e4 as GetConfigError, e5 as GetConfigErrors, e6 as GetConfigResponse, e7 as GetConfigResponse2, e8 as GetConfigResponses, e9 as GetConnectorData, ea as GetConnectorError, eb as GetConnectorErrors, ec as GetConnectorResponse, ed as GetConnectorResponses, ee as GetCurrentProjectData, ef as GetCurrentProjectError, eg as GetCurrentProjectErrors, eh as GetCurrentProjectResponse, ei as GetCurrentProjectResponse2, ej as GetCurrentProjectResponses, ek as GetErrorData, el as GetErrorError, em as GetErrorErrors, en as GetErrorResponse, eo as GetErrorResponses, ep as GetErrorSeriesData, eq as GetErrorSeriesError, er as GetErrorSeriesErrors, es as GetErrorSeriesResponse, et as GetErrorSeriesResponses, eu as GetEventData, ev as GetEventError, ew as GetEventErrors, ex as GetEventResponse, ey as GetEventResponse2, ez as GetEventResponses, eA as GetExperimentData, eB as GetExperimentError, eC as GetExperimentErrors, eD as GetExperimentReadoutData, eE as GetExperimentReadoutError, eF as GetExperimentReadoutErrors, eG as GetExperimentReadoutResponse, eH as GetExperimentReadoutResponses, eI as GetExperimentResponse, eJ as GetExperimentResponses, eK as GetExperimentResultsData, eL as GetExperimentResultsError, eM as GetExperimentResultsErrors, eN as GetExperimentResultsResponse, eO as GetExperimentResultsResponse2, eP as GetExperimentResultsResponses, eQ as GetExperimentTimeseriesData, eR as GetExperimentTimeseriesError, eS as GetExperimentTimeseriesErrors, eT as GetExperimentTimeseriesResponse, eU as GetExperimentTimeseriesResponse2, eV as GetExperimentTimeseriesResponses, eW as GetGateData, eX as GetGateError, eY as GetGateErrors, eZ as GetGateResponse, e_ as GetGateResponses, e$ as GetGateTemplateData, f0 as GetGateTemplateError, f1 as GetGateTemplateErrors, f2 as GetGateTemplateResponse, f3 as GetGateTemplateResponses, f4 as GetKillswitchData, f5 as GetKillswitchError, f6 as GetKillswitchErrors, f7 as GetKillswitchResponse, f8 as GetKillswitchResponse2, f9 as GetKillswitchResponses, fa as GetMetricData, fb as GetMetricError, fc as GetMetricErrors, fd as GetMetricResponse, fe as GetMetricResponse2, ff as GetMetricResponses, fg as GetMetricSeriesData, fh as GetMetricSeriesError, fi as GetMetricSeriesErrors, fj as GetMetricSeriesRequest, fk as GetMetricSeriesResponse, fl as GetMetricSeriesResponse2, fm as GetMetricSeriesResponses, fn as GetOpsItemData, fo as GetOpsItemError, fp as GetOpsItemErrors, fq as GetOpsItemResponse, fr as GetOpsItemResponse2, fs as GetOpsItemResponses, ft as GetProjectData, fu as GetProjectError, fv as GetProjectErrors, fw as GetProjectResponse, fx as GetProjectResponses, fy as GithubConnectorData, fz as GithubPrLink, fA as I18nDraft, fB as JulesTriggerConfig, fC as KeyRecord, fD as KillswitchValue, fE as LinkPrToOpsItemData, fF as LinkPrToOpsItemError, fG as LinkPrToOpsItemErrors, fH as LinkPrToOpsItemRequest, fI as LinkPrToOpsItemResponse, fJ as LinkPrToOpsItemResponse2, fK as LinkPrToOpsItemResponses, fL as ListAlertRulesData, fM as ListAlertRulesError, fN as ListAlertRulesErrors, fO as ListAlertRulesResponse, fP as ListAlertRulesResponse2, fQ as ListAlertRulesResponses, fR as ListAlertsData, fS as ListAlertsError, fT as ListAlertsErrors, fU as ListAlertsResponse, fV as ListAlertsResponse2, fW as ListAlertsResponses, fX as ListAttributesData, fY as ListAttributesError, fZ as ListAttributesErrors, f_ as ListAttributesResponse, f$ as ListAttributesResponse2, g0 as ListAttributesResponses, g1 as ListConfigActivityData, g2 as ListConfigActivityError, g3 as ListConfigActivityErrors, g4 as ListConfigActivityResponse, g5 as ListConfigActivityResponse2, g6 as ListConfigActivityResponses, g7 as ListConfigVersionsData, g8 as ListConfigVersionsError, g9 as ListConfigVersionsErrors, ga as ListConfigVersionsResponse, gb as ListConfigVersionsResponse2, gc as ListConfigVersionsResponses, gd as ListConfigsData, ge as ListConfigsError, gf as ListConfigsErrors, gg as ListConfigsResponse, gh as ListConfigsResponse2, gi as ListConfigsResponses, gj as ListConnectorsData, gk as ListConnectorsError, gl as ListConnectorsErrors, gm as ListConnectorsResponse, gn as ListConnectorsResponse2, go as ListConnectorsResponses, gp as ListErrorsData, gq as ListErrorsError, gr as ListErrorsErrors, gs as ListErrorsResponse, gt as ListErrorsResponse2, gu as ListErrorsResponses, gv as ListEventsData, gw as ListEventsError, gx as ListEventsErrors, gy as ListEventsResponse, gz as ListEventsResponse2, gA as ListEventsResponses, gB as ListExperimentsData, gC as ListExperimentsError, gD as ListExperimentsErrors, gE as ListExperimentsResponse, gF as ListExperimentsResponse2, gG as ListExperimentsResponses, gH as ListGateActivityData, gI as ListGateActivityError, gJ as ListGateActivityErrors, gK as ListGateActivityResponse, gL as ListGateActivityResponse2, gM as ListGateActivityResponses, gN as ListGateTemplatesData, gO as ListGateTemplatesError, gP as ListGateTemplatesErrors, gQ as ListGateTemplatesResponse, gR as ListGateTemplatesResponse2, gS as ListGateTemplatesResponses, gT as ListGatesData, gU as ListGatesError, gV as ListGatesErrors, gW as ListGatesResponse, gX as ListGatesResponse2, gY as ListGatesResponses, gZ as ListI18nDraftKeysData, g_ as ListI18nDraftKeysError, g$ as ListI18nDraftKeysErrors, h0 as ListI18nDraftKeysResponse, h1 as ListI18nDraftKeysResponse2, h2 as ListI18nDraftKeysResponses, h3 as ListI18nDraftsData, h4 as ListI18nDraftsError, h5 as ListI18nDraftsErrors, h6 as ListI18nDraftsResponse, h7 as ListI18nDraftsResponse2, h8 as ListI18nDraftsResponses, h9 as ListI18nKeysData, ha as ListI18nKeysError, hb as ListI18nKeysErrors, hc as ListI18nKeysResponse, hd as ListI18nKeysResponse2, he as ListI18nKeysResponses, hf as ListI18nProfilesData, hg as ListI18nProfilesError, hh as ListI18nProfilesErrors, hi as ListI18nProfilesResponse, hj as ListI18nProfilesResponse2, hk as ListI18nProfilesResponses, hl as ListKeysData, hm as ListKeysError, hn as ListKeysErrors, ho as ListKeysResponse, hp as ListKeysResponse2, hq as ListKeysResponses, hr as ListKillswitchesData, hs as ListKillswitchesError, ht as ListKillswitchesErrors, hu as ListKillswitchesResponse, hv as ListKillswitchesResponse2, hw as ListKillswitchesResponses, hx as ListMetricExperimentsData, hy as ListMetricExperimentsError, hz as ListMetricExperimentsErrors, hA as ListMetricExperimentsResponse, hB as ListMetricExperimentsResponse2, hC as ListMetricExperimentsResponses, hD as ListMetricsData, hE as ListMetricsError, hF as ListMetricsErrors, hG as ListMetricsResponse, hH as ListMetricsResponse2, hI as ListMetricsResponses, hJ as ListOpsAgentsData, hK as ListOpsAgentsError, hL as ListOpsAgentsErrors, hM as ListOpsAgentsResponse, hN as ListOpsAgentsResponse2, hO as ListOpsAgentsResponses, hP as ListOpsCommentsData, hQ as ListOpsCommentsError, hR as ListOpsCommentsErrors, hS as ListOpsCommentsResponse, hT as ListOpsCommentsResponse2, hU as ListOpsCommentsResponses, hV as ListOpsInvestigationsData, hW as ListOpsInvestigationsError, hX as ListOpsInvestigationsErrors, hY as ListOpsInvestigationsResponse, hZ as ListOpsInvestigationsResponse2, h_ as ListOpsInvestigationsResponses, h$ as ListOpsItemsData, i0 as ListOpsItemsError, i1 as ListOpsItemsErrors, i2 as ListOpsItemsResponse, i3 as ListOpsItemsResponse2, i4 as ListOpsItemsResponses, i5 as ListSlackChannelsData, i6 as ListSlackChannelsError, i7 as ListSlackChannelsErrors, i8 as ListSlackChannelsResponse, i9 as ListSlackChannelsResponse2, ia as ListSlackChannelsResponses, ib as ListUniversesData, ic as ListUniversesError, id as ListUniversesErrors, ie as ListUniversesResponse, ig as ListUniversesResponse2, ih as ListUniversesResponses, ii as MeasurePlanResource, ij as MeasurePlanStep, ik as MetricDefaultMinEffectOfInterest, il as MetricDirection, im as MetricDisplayUnit, io as MetricEventName, ip as MetricName, iq as MetricQueryDsl, ir as MetricWinsorizePct, is as NotificationTarget, it as NotifyOpsData, iu as NotifyOpsError, iv as NotifyOpsErrors, iw as NotifyOpsRequest, ix as NotifyOpsResponse, iy as NotifyOpsResponse2, iz as NotifyOpsResponses, iA as OkResponse, iB as OpsAgentProfile, iC as OpsAlertContext, iD as OpsAlertMetricSummary, iE as OpsAlertRuleSummary, iF as OpsBrowserContext, iG as OpsComment, iH as OpsCommentAuthorType, iI as OpsErrorContext, iJ as OpsInvestigation, iK as OpsInvestigationState, iL as OpsItemAttachment, iM as OpsItemContext, iN as OpsItemNotifyOrNull, iO as OpsItemOwner, iP as OpsItemPriority, iQ as OpsItemPriorityOrNull, iR as OpsItemRelated, iS as OpsItemStatus, iT as OpsMeasurePlanContext, iU as OpsRun, iV as OpsRunAction, iW as OpsRunActionOrNull, iX as Options, iY as PaginationCursor, iZ as PaginationLimit, i_ as ProjectId, i$ as PublishConfigDraftData, j0 as PublishConfigDraftError, j1 as PublishConfigDraftErrors, j2 as PublishConfigDraftRequest, j3 as PublishConfigDraftResponse, j4 as PublishConfigDraftResponse2, j5 as PublishConfigDraftResponses, j6 as PublishI18nProfileData, j7 as PublishI18nProfileError, j8 as PublishI18nProfileErrors, j9 as PublishI18nProfileRequest, ja as PublishI18nProfileResponse, jb as PublishI18nProfileResponse2, jc as PublishI18nProfileResponses, jd as PushI18nKeysData, je as PushI18nKeysError, jf as PushI18nKeysErrors, jg as PushI18nKeysRequest, jh as PushI18nKeysResponse, ji as PushI18nKeysResponse2, jj as PushI18nKeysResponses, jk as Q, jl as QueryIr, jm as ReanalyzeExperimentData, jn as ReanalyzeExperimentError, jo as ReanalyzeExperimentErrors, jp as ReanalyzeExperimentResponse, jq as ReanalyzeExperimentResponse2, jr as ReanalyzeExperimentResponses, js as RequestResult, jt as ResolveErrorData, ju as ResolveErrorError, jv as ResolveErrorErrors, jw as ResolveErrorResponse, jx as ResolveErrorResponses, jy as ResourceId, jz as RevokeKeyData, jA as RevokeKeyError, jB as RevokeKeyErrors, jC as RevokeKeyResponse, jD as RevokeKeyResponse2, jE as RevokeKeyResponses, jF as SaveConfigDraftData, jG as SaveConfigDraftError, jH as SaveConfigDraftErrors, jI as SaveConfigDraftRequest, jJ as SaveConfigDraftResponse, jK as SaveConfigDraftResponse2, jL as SaveConfigDraftResponses, jM as SearchHit, jN as SearchResourcesData, jO as SearchResourcesError, jP as SearchResourcesErrors, jQ as SearchResourcesResponse, jR as SearchResourcesResponses, jS as SearchResponse, jT as SetExperimentMetricsData, jU as SetExperimentMetricsError, jV as SetExperimentMetricsErrors, jW as SetExperimentMetricsRequest, jX as SetExperimentMetricsResponse, jY as SetExperimentMetricsResponse2, jZ as SetExperimentMetricsResponses, j_ as SetExperimentStatusData, j$ as SetExperimentStatusError, k0 as SetExperimentStatusErrors, k1 as SetExperimentStatusRequest, k2 as SetExperimentStatusResponse, k3 as SetExperimentStatusResponse2, k4 as SetExperimentStatusResponses, k5 as SetI18nLabelData, k6 as SetI18nLabelError, k7 as SetI18nLabelErrors, k8 as SetI18nLabelRequest, k9 as SetI18nLabelResponse, ka as SetI18nLabelResponse2, kb as SetI18nLabelResponses, kc as SetKillswitchSwitchData, kd as SetKillswitchSwitchError, ke as SetKillswitchSwitchErrors, kf as SetKillswitchSwitchRequest, kg as SetKillswitchSwitchResponse, kh as SetKillswitchSwitchResponse2, ki as SetKillswitchSwitchResponses, kj as SetKillswitchValueData, kk as SetKillswitchValueError, kl as SetKillswitchValueErrors, km as SetKillswitchValueRequest, kn as SetKillswitchValueResponse, ko as SetKillswitchValueResponse2, kp as SetKillswitchValueResponses, kq as SlackConnectorData, kr as TestConnectorData, ks as TestConnectorError, kt as TestConnectorErrors, ku as TestConnectorResponse, kv as TestConnectorResponse2, kw as TestConnectorResponses, kx as UnarchiveMetricData, ky as UnarchiveMetricError, kz as UnarchiveMetricErrors, kA as UnarchiveMetricResponse, kB as UnarchiveMetricResponse2, kC as UnarchiveMetricResponses, kD as UniverseParam, kE as UniverseParamSchema, kF as UnsetKillswitchSwitchData, kG as UnsetKillswitchSwitchError, kH as UnsetKillswitchSwitchErrors, kI as UnsetKillswitchSwitchRequest, kJ as UnsetKillswitchSwitchResponse, kK as UnsetKillswitchSwitchResponse2, kL as UnsetKillswitchSwitchResponses, kM as UpdateAlertData, kN as UpdateAlertError, kO as UpdateAlertErrors, kP as UpdateAlertRequest, kQ as UpdateAlertResponse, kR as UpdateAlertResponses, kS as UpdateAlertRuleData, kT as UpdateAlertRuleError, kU as UpdateAlertRuleErrors, kV as UpdateAlertRuleRequest, kW as UpdateAlertRuleResponse, kX as UpdateAlertRuleResponse2, kY as UpdateAlertRuleResponses, kZ as UpdateAttributeData, k_ as UpdateAttributeError, k$ as UpdateAttributeErrors, l0 as UpdateAttributeRequest, l1 as UpdateAttributeResponse, l2 as UpdateAttributeResponse2, l3 as UpdateAttributeResponses, l4 as UpdateBugRequest, l5 as UpdateClaudeTriggerRequest, l6 as UpdateConfigData, l7 as UpdateConfigError, l8 as UpdateConfigErrors, l9 as UpdateConfigRequest, la as UpdateConfigResponse, lb as UpdateConfigResponse2, lc as UpdateConfigResponses, ld as UpdateConfigSchemaData, le as UpdateConfigSchemaError, lf as UpdateConfigSchemaErrors, lg as UpdateConfigSchemaRequest, lh as UpdateConfigSchemaResponse, li as UpdateConfigSchemaResponse2, lj as UpdateConfigSchemaResponses, lk as UpdateConnectorData, ll as UpdateConnectorError, lm as UpdateConnectorErrors, ln as UpdateConnectorRequest, lo as UpdateConnectorResponse, lp as UpdateConnectorResponse2, lq as UpdateConnectorResponses, lr as UpdateCopilotTriggerRequest, ls as UpdateCursorTriggerRequest, lt as UpdateErrorStatusData, lu as UpdateErrorStatusError, lv as UpdateErrorStatusErrors, lw as UpdateErrorStatusRequest, lx as UpdateErrorStatusResponse, ly as UpdateErrorStatusResponses, lz as UpdateEventData, lA as UpdateEventError, lB as UpdateEventErrors, lC as UpdateEventRequest, lD as UpdateEventResponse, lE as UpdateEventResponse2, lF as UpdateEventResponses, lG as UpdateExperimentData, lH as UpdateExperimentError, lI as UpdateExperimentErrors, lJ as UpdateExperimentRequest, lK as UpdateExperimentResponse, lL as UpdateExperimentResponse2, lM as UpdateExperimentResponses, lN as UpdateFeatureRequestRequest, lO as UpdateGateData, lP as UpdateGateError, lQ as UpdateGateErrors, lR as UpdateGateRequest, lS as UpdateGateResponse, lT as UpdateGateResponse2, lU as UpdateGateResponses, lV as UpdateGateTemplateData, lW as UpdateGateTemplateError, lX as UpdateGateTemplateErrors, lY as UpdateGateTemplateRequest, lZ as UpdateGateTemplateResponse, l_ as UpdateGateTemplateResponse2, l$ as UpdateGateTemplateResponses, m0 as UpdateI18nDraftData, m1 as UpdateI18nDraftError, m2 as UpdateI18nDraftErrors, m3 as UpdateI18nDraftRequest, m4 as UpdateI18nDraftResponse, m5 as UpdateI18nDraftResponses, m6 as UpdateI18nKeyData, m7 as UpdateI18nKeyError, m8 as UpdateI18nKeyErrors, m9 as UpdateI18nKeyRequest, ma as UpdateI18nKeyResponse, mb as UpdateI18nKeyResponse2, mc as UpdateI18nKeyResponses, md as UpdateJulesTriggerRequest, me as UpdateKillswitchData, mf as UpdateKillswitchError, mg as UpdateKillswitchErrors, mh as UpdateKillswitchRequest, mi as UpdateKillswitchResponse, mj as UpdateKillswitchResponse2, mk as UpdateKillswitchResponses, ml as UpdateMetricData, mm as UpdateMetricError, mn as UpdateMetricErrors, mo as UpdateMetricFields, mp as UpdateMetricRequest, mq as UpdateMetricResponse, mr as UpdateMetricResponses, ms as UpdateMetricWithQuery, mt as UpdateMetricWithQueryIr, mu as UpdateOpsInvestigationData, mv as UpdateOpsInvestigationError, mw as UpdateOpsInvestigationErrors, mx as UpdateOpsInvestigationRequest, my as UpdateOpsInvestigationResponse, mz as UpdateOpsInvestigationResponses, mA as UpdateOpsItemData, mB as UpdateOpsItemError, mC as UpdateOpsItemErrors, mD as UpdateOpsItemRequest, mE as UpdateOpsItemResponse, mF as UpdateOpsItemResponse2, mG as UpdateOpsItemResponses, mH as UpdateOpsItemStatusRequest, mI as UpdateProjectData, mJ as UpdateProjectError, mK as UpdateProjectErrors, mL as UpdateProjectRequest, mM as UpdateProjectResponse, mN as UpdateProjectResponses, mO as UpdateTriggerConnectorData, mP as UpdateTriggerConnectorError, mQ as UpdateTriggerConnectorErrors, mR as UpdateTriggerConnectorRequest, mS as UpdateTriggerConnectorResponse, mT as UpdateTriggerConnectorResponses, mU as UpdateUniverseData, mV as UpdateUniverseError, mW as UpdateUniverseErrors, mX as UpdateUniverseRequest, mY as UpdateUniverseResponse, mZ as UpdateUniverseResponse2, m_ as UpdateUniverseResponses, m$ as UpsertI18nDraftKeyData, n0 as UpsertI18nDraftKeyError, n1 as UpsertI18nDraftKeyErrors, n2 as UpsertI18nDraftKeyRequest, n3 as UpsertI18nDraftKeyResponse, n4 as UpsertI18nDraftKeyResponses, n5 as UpsertI18nKeysData, n6 as UpsertI18nKeysError, n7 as UpsertI18nKeysErrors, n8 as UpsertI18nKeysRequest, n9 as UpsertI18nKeysResponse, na as UpsertI18nKeysResponse2, nb as UpsertI18nKeysResponses, nc as UpsertProjectData, nd as UpsertProjectError, ne as UpsertProjectErrors, nf as UpsertProjectRequest, ng as UpsertProjectResponse, nh as UpsertProjectResponse2, ni as UpsertProjectResponses, nj as ackOpsItem, nk as approveEvent, nl as client, nm as configure, nn as createAlertRule, no as createAttribute, np as createClient, nq as createClientConfig, nr as createConfig, ns as createConnector, nt as createEvent, nu as createExperiment, nv as createExperimentReadout, nw as createGate, nx as createGateTemplate, ny as createI18nDraft, nz as createI18nProfile, nA as createKey, nB as createKillswitch, nC as createMetric, nD as createOpsComment, nE as createOpsInvestigation, nF as createOpsItem, nG as createTriggerConnector, nH as createUniverse, nI as deleteAlertRule, nJ as deleteAttribute, nK as deleteConfig, nL as deleteConnector, nM as deleteEvent, nN as deleteExperiment, nO as deleteGate, nP as deleteGateTemplate, nQ as deleteI18nDraft, nR as deleteI18nKey, nS as deleteI18nProfile, nT as deleteKillswitch, nU as deleteMetric, nV as deleteOpsItem, nW as deleteUniverse, nX as disableGate, nY as discardConfigDraft, nZ as enableGate, n_ as fileErrorTicket, n$ as fireConnector, o0 as getAttribute, o1 as getConfig, o2 as getConnector, o3 as getCurrentProject, o4 as getError, o5 as getErrorSeries, o6 as getEvent, o7 as getExperiment, o8 as getExperimentReadout, o9 as getExperimentResults, oa as getExperimentTimeseries, ob as getGate, oc as getGateTemplate, od as getKillswitch, oe as getMetric, of as getMetricSeries, og as getOpsItem, oh as getProject, oi as linkPrToOpsItem, oj as listAlertRules, ok as listAlerts, ol as listAttributes, om as listConfigActivity, on as listConfigVersions, oo as listConfigs, op as listConnectors, oq as listErrors, or as listEvents, os as listExperiments, ot as listGateActivity, ou as listGateTemplates, ov as listGates, ow as listI18nDraftKeys, ox as listI18nDrafts, oy as listI18nKeys, oz as listI18nProfiles, oA as listKeys, oB as listKillswitches, oC as listMetricExperiments, oD as listMetrics, oE as listOpsAgents, oF as listOpsComments, oG as listOpsInvestigations, oH as listOpsItems, oI as listSlackChannels, oJ as listUniverses, oK as notifyOps, oL as publishConfigDraft, oM as publishI18nProfile, oN as pushI18nKeys, oO as reanalyzeExperiment, oP as resolveError, oQ as revokeKey, oR as saveConfigDraft, oS as searchResources, oT as setExperimentMetrics, oU as setExperimentStatus, oV as setI18nLabel, oW as setKillswitchSwitch, oX as setKillswitchValue, oY as testConnector, oZ as unarchiveMetric, o_ as unsetKillswitchSwitch, o$ as updateAlert, p0 as updateAlertRule, p1 as updateAttribute, p2 as updateConfig, p3 as updateConfigSchema, p4 as updateConnector, p5 as updateErrorStatus, p6 as updateEvent, p7 as updateExperiment, p8 as updateGate, p9 as updateGateTemplate, pa as updateI18nDraft, pb as updateI18nKey, pc as updateKillswitch, pd as updateMetric, pe as updateOpsInvestigation, pf as updateOpsItem, pg as updateProject, ph as updateTriggerConnector, pi as updateUniverse, pj as upsertI18nDraftKey, pk as upsertI18nKeys, pl as upsertProject } from './client-DzEqdN5N.js'; | ||
@@ -4,0 +4,0 @@ /** |
+2
-2
@@ -133,6 +133,6 @@ import { | ||
| upsertProject | ||
| } from "./chunk-RDMD5XQT.js"; | ||
| } from "./chunk-V4ZESAIF.js"; | ||
| import { | ||
| zErrorCode | ||
| } from "./chunk-DBTSD3W5.js"; | ||
| } from "./chunk-7T77D5YO.js"; | ||
@@ -139,0 +139,0 @@ // src/errors.ts |
+1
-1
@@ -681,3 +681,3 @@ import { | ||
| zUpsertProjectResponse2 | ||
| } from "./chunk-DBTSD3W5.js"; | ||
| } from "./chunk-7T77D5YO.js"; | ||
| export { | ||
@@ -684,0 +684,0 @@ zAckOpsItemBody, |
+1
-1
| { | ||
| "name": "@shipeasy/openapi", | ||
| "version": "2.5.0", | ||
| "version": "3.0.0", | ||
| "description": "Shipeasy admin OpenAPI 3.2 spec (hand-authored, single source of truth) + the generated TypeScript client, Zod schemas, and types. Consumed by @shipeasy/cli and @shipeasy/mcp.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -97,10 +97,2 @@ ListI18nProfilesResponse: | ||
| - type: "null" | ||
| chunkId: | ||
| description: Owning chunk (authoring grouping) id. | ||
| type: string | ||
| chunkName: | ||
| description: Name of the owning chunk (authoring grouping), or `null` when it cannot be resolved. | ||
| anyOf: | ||
| - type: string | ||
| - type: "null" | ||
| updatedAt: | ||
@@ -120,4 +112,2 @@ description: ISO-8601 timestamp of the last edit. | ||
| - profileName | ||
| - chunkId | ||
| - chunkName | ||
| - updatedAt | ||
@@ -143,8 +133,2 @@ - updatedBy | ||
| description: Target profile id to add keys to. | ||
| chunk: | ||
| description: Logical grouping the new keys are filed under. Defaults to `default`. | ||
| type: string | ||
| minLength: 1 | ||
| maxLength: 64 | ||
| default: default | ||
| keys: | ||
@@ -180,3 +164,7 @@ type: array | ||
| additionalProperties: false | ||
| description: Keys to add. Insert-only — existing keys are reported back as `skipped`. | ||
| description: Keys to add. Insert-only by default — existing keys are reported back as `skipped` (set `force` to overwrite them instead). | ||
| force: | ||
| type: boolean | ||
| default: false | ||
| description: Overwrite keys that already exist with the submitted value instead of skipping them. Overwritten keys come back as `updated`. Off by default so a routine push can never clobber live translations. | ||
| required: | ||
@@ -186,3 +174,3 @@ - profile_id | ||
| additionalProperties: false | ||
| description: "Body for `POST /api/admin/i18n/keys`. Insert-only: keys that already exist are never overwritten — use `PUT /keys/{id}` to change a value." | ||
| description: "Body for `POST /api/admin/i18n/keys`. Insert-only by default: keys that already exist are never overwritten — pass `force: true` to overwrite them in bulk, or use `PUT /keys/{id}` to change one value." | ||
| PushI18nKeysResponse: | ||
@@ -200,3 +188,8 @@ type: object | ||
| type: string | ||
| description: Key names that already existed and were left untouched. | ||
| description: Key names that already existed and were left untouched. Always empty when `force` was set — those key names come back under `updated` instead. | ||
| updated: | ||
| type: array | ||
| items: | ||
| type: string | ||
| description: Key names that already existed and were overwritten with the submitted value. Only ever non-empty when the push set `force`. | ||
| pushed_count: | ||
@@ -208,12 +201,14 @@ type: number | ||
| description: Number of keys skipped (== `skipped.length`). | ||
| chunk: | ||
| description: The chunk the keys were filed under. | ||
| type: string | ||
| updated_count: | ||
| type: number | ||
| description: Number of existing keys overwritten (== `updated.length`). | ||
| required: | ||
| - added | ||
| - skipped | ||
| - updated | ||
| - pushed_count | ||
| - skipped_count | ||
| - updated_count | ||
| additionalProperties: false | ||
| description: Result of an insert-only key push. | ||
| description: Result of a key push — what was inserted, what was left alone, and (with `force`) what was overwritten. | ||
| UpdateI18nKeyRequest: | ||
@@ -259,8 +254,2 @@ type: object | ||
| description: Target profile id to upsert keys into. | ||
| chunk: | ||
| description: Logical grouping the keys are filed under. Defaults to `default`. | ||
| type: string | ||
| minLength: 1 | ||
| maxLength: 64 | ||
| default: default | ||
| keys: | ||
@@ -308,8 +297,4 @@ type: array | ||
| description: Number of keys written (inserted or overwritten). | ||
| chunk: | ||
| type: string | ||
| description: The chunk the keys were filed under. | ||
| required: | ||
| - upserted | ||
| - chunk | ||
| additionalProperties: false | ||
@@ -477,8 +462,5 @@ description: Result of a bulk key upsert. The affected profile's KV snapshot is rebuilt (and the CDN purged) before this returns. | ||
| type: object | ||
| properties: | ||
| chunk: | ||
| description: Optional chunk label to stamp on the audit log. Publishing is profile-wide regardless — the whole profile is snapshotted into one KV blob. | ||
| type: string | ||
| properties: {} | ||
| additionalProperties: false | ||
| description: Body for `POST /api/admin/i18n/profiles/{profileId}/publish`. The `chunk` is an audit label only. | ||
| description: Body for `POST /api/admin/i18n/profiles/{profileId}/publish`. Publishing is profile-wide — the whole profile is snapshotted into one KV blob — so the body takes no options. | ||
| PublishI18nProfileResponse: | ||
@@ -494,7 +476,2 @@ type: object | ||
| description: Profile that was published. | ||
| chunk: | ||
| anyOf: | ||
| - type: string | ||
| - type: "null" | ||
| description: Audit chunk label, or `null` when none was given. | ||
| published_at: | ||
@@ -528,3 +505,2 @@ type: string | ||
| - profile_id | ||
| - chunk | ||
| - published_at | ||
@@ -531,0 +507,0 @@ - version |
@@ -231,3 +231,3 @@ openapi: 3.2.0 | ||
| String Manager (i18n): the worker-safe REST surface — locale profiles, the | ||
| insert-only key push, single-key overwrite, chunk publish, and the read-only | ||
| insert-only key push, single-key overwrite, profile publish, and the read-only | ||
| key/draft listings. | ||
@@ -239,3 +239,3 @@ | ||
| parent: i18n | ||
| description: Locale profiles (e.g. `en:prod`) — create, list, and publish a profile's chunks to the CDN. | ||
| description: Locale profiles (e.g. `en:prod`) — create, list, and publish a profile to the CDN. | ||
| - name: Keys | ||
@@ -242,0 +242,0 @@ parent: i18n |
+13
-11
@@ -8,3 +8,3 @@ /api/admin/i18n/profiles: | ||
| **Use case:** Discover which locale profiles exist before pushing keys or publishing a chunk. | ||
| **Use case:** Discover which locale profiles exist before pushing keys or publishing. | ||
| tags: | ||
@@ -177,7 +177,9 @@ - Profiles | ||
| operationId: pushI18nKeys | ||
| summary: Push new i18n keys (insert-only) | ||
| summary: Push i18n keys (insert-only, or `force` to overwrite) | ||
| description: |- | ||
| Add NEW keys to a profile. Insert-only — existing keys are left untouched (overwrite one with `updateI18nKey`). | ||
| Add NEW keys to a profile. Insert-only by default — existing keys are left untouched and reported back as `skipped`. | ||
| **Use case:** Seed newly-extracted keys without clobbering translations already in the profile. | ||
| Pass `force: true` to overwrite the existing ones in bulk with the submitted values: they come back as `updated` instead of `skipped`. Without `force` the only overwrite paths are `updateI18nKey` (one key) and the devtools-only `upsertI18nKeys`. | ||
| **Use case:** Seed newly-extracted keys without clobbering translations already in the profile — or re-push a whole source-language file with `force` after the copy changed. | ||
| tags: | ||
@@ -200,3 +202,3 @@ - Keys | ||
| "201": | ||
| description: Push new i18n keys (insert-only) | ||
| description: Push i18n keys (insert-only, or `force` to overwrite) | ||
| content: | ||
@@ -210,4 +212,6 @@ application/json: | ||
| skipped: [] | ||
| updated: [] | ||
| pushed_count: 1 | ||
| skipped_count: 0 | ||
| updated_count: 0 | ||
| "400": | ||
@@ -266,3 +270,2 @@ $ref: ../components/responses.yaml#/BadRequest | ||
| upserted: 1 | ||
| chunk: default | ||
| "400": | ||
@@ -734,3 +737,3 @@ $ref: ../components/responses.yaml#/BadRequest | ||
| description: |- | ||
| Publish a profile to the CDN — rebuild its KV snapshot + purge the edge. Publishing is PROFILE-WIDE: the whole profile is snapshotted into one KV blob, so the optional `chunk` in the body is an audit label only (it does not scope what ships). | ||
| Publish a profile to the CDN — rebuild its KV snapshot + purge the edge. Publishing is PROFILE-WIDE: the whole profile is snapshotted into one KV blob, so the body takes no options. | ||
@@ -749,3 +752,3 @@ **Use case:** Ship the latest translations live after pushing/updating keys. | ||
| requestBody: | ||
| required: true | ||
| required: false | ||
| content: | ||
@@ -755,7 +758,6 @@ application/json: | ||
| $ref: ../components/schemas/i18n.yaml#/PublishI18nProfileRequest | ||
| example: | ||
| chunk: default | ||
| example: {} | ||
| responses: | ||
| "200": | ||
| description: Publish a profile chunk | ||
| description: Publish a profile | ||
| content: | ||
@@ -762,0 +764,0 @@ application/json: |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| // src/generated/core/bodySerializer.gen.ts | ||
| var jsonBodySerializer = { | ||
| bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) | ||
| }; | ||
| // src/generated/core/params.gen.ts | ||
| var extraPrefixesMap = { | ||
| $body_: "body", | ||
| $headers_: "headers", | ||
| $path_: "path", | ||
| $query_: "query" | ||
| }; | ||
| var extraPrefixes = Object.entries(extraPrefixesMap); | ||
| // src/generated/core/serverSentEvents.gen.ts | ||
| function createSseClient({ | ||
| onRequest, | ||
| onSseError, | ||
| onSseEvent, | ||
| responseTransformer, | ||
| responseValidator, | ||
| sseDefaultRetryDelay, | ||
| sseMaxRetryAttempts, | ||
| sseMaxRetryDelay, | ||
| sseSleepFn, | ||
| url, | ||
| ...options | ||
| }) { | ||
| let lastEventId; | ||
| const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))); | ||
| const createStream = async function* () { | ||
| let retryDelay = sseDefaultRetryDelay ?? 3e3; | ||
| let attempt = 0; | ||
| const signal = options.signal ?? new AbortController().signal; | ||
| while (true) { | ||
| if (signal.aborted) break; | ||
| attempt++; | ||
| const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers); | ||
| if (lastEventId !== void 0) { | ||
| headers.set("Last-Event-ID", lastEventId); | ||
| } | ||
| try { | ||
| const requestInit = { | ||
| redirect: "follow", | ||
| ...options, | ||
| body: options.serializedBody, | ||
| headers, | ||
| signal | ||
| }; | ||
| let request = new Request(url, requestInit); | ||
| if (onRequest) { | ||
| request = await onRequest(url, requestInit); | ||
| } | ||
| const _fetch = options.fetch ?? globalThis.fetch; | ||
| const response = await _fetch(request); | ||
| if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`); | ||
| if (!response.body) throw new Error("No body in SSE response"); | ||
| const reader = response.body.pipeThrough(new TextDecoderStream()).getReader(); | ||
| let buffer = ""; | ||
| const abortHandler = () => { | ||
| try { | ||
| reader.cancel(); | ||
| } catch { | ||
| } | ||
| }; | ||
| signal.addEventListener("abort", abortHandler); | ||
| try { | ||
| while (true) { | ||
| const { done, value } = await reader.read(); | ||
| if (done) break; | ||
| buffer += value; | ||
| buffer = buffer.replace(/\r\n?/g, "\n"); | ||
| const chunks = buffer.split("\n\n"); | ||
| buffer = chunks.pop() ?? ""; | ||
| for (const chunk of chunks) { | ||
| const lines = chunk.split("\n"); | ||
| const dataLines = []; | ||
| let eventName; | ||
| for (const line of lines) { | ||
| if (line.startsWith("data:")) { | ||
| dataLines.push(line.replace(/^data:\s*/, "")); | ||
| } else if (line.startsWith("event:")) { | ||
| eventName = line.replace(/^event:\s*/, ""); | ||
| } else if (line.startsWith("id:")) { | ||
| lastEventId = line.replace(/^id:\s*/, ""); | ||
| } else if (line.startsWith("retry:")) { | ||
| const parsed = Number.parseInt(line.replace(/^retry:\s*/, ""), 10); | ||
| if (!Number.isNaN(parsed)) { | ||
| retryDelay = parsed; | ||
| } | ||
| } | ||
| } | ||
| let data; | ||
| let parsedJson = false; | ||
| if (dataLines.length) { | ||
| const rawData = dataLines.join("\n"); | ||
| try { | ||
| data = JSON.parse(rawData); | ||
| parsedJson = true; | ||
| } catch { | ||
| data = rawData; | ||
| } | ||
| } | ||
| if (parsedJson) { | ||
| if (responseValidator) { | ||
| await responseValidator(data); | ||
| } | ||
| if (responseTransformer) { | ||
| data = await responseTransformer(data); | ||
| } | ||
| } | ||
| onSseEvent?.({ | ||
| data, | ||
| event: eventName, | ||
| id: lastEventId, | ||
| retry: retryDelay | ||
| }); | ||
| if (dataLines.length) { | ||
| yield data; | ||
| } | ||
| } | ||
| } | ||
| } finally { | ||
| signal.removeEventListener("abort", abortHandler); | ||
| reader.releaseLock(); | ||
| } | ||
| break; | ||
| } catch (error) { | ||
| onSseError?.(error); | ||
| if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) { | ||
| break; | ||
| } | ||
| const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 3e4); | ||
| await sleep(backoff); | ||
| } | ||
| } | ||
| }; | ||
| const stream = createStream(); | ||
| return { stream }; | ||
| } | ||
| // src/generated/core/pathSerializer.gen.ts | ||
| var separatorArrayExplode = (style) => { | ||
| switch (style) { | ||
| case "label": | ||
| return "."; | ||
| case "matrix": | ||
| return ";"; | ||
| case "simple": | ||
| return ","; | ||
| default: | ||
| return "&"; | ||
| } | ||
| }; | ||
| var separatorArrayNoExplode = (style) => { | ||
| switch (style) { | ||
| case "form": | ||
| return ","; | ||
| case "pipeDelimited": | ||
| return "|"; | ||
| case "spaceDelimited": | ||
| return "%20"; | ||
| default: | ||
| return ","; | ||
| } | ||
| }; | ||
| var separatorObjectExplode = (style) => { | ||
| switch (style) { | ||
| case "label": | ||
| return "."; | ||
| case "matrix": | ||
| return ";"; | ||
| case "simple": | ||
| return ","; | ||
| default: | ||
| return "&"; | ||
| } | ||
| }; | ||
| var serializeArrayParam = ({ | ||
| allowReserved, | ||
| explode, | ||
| name, | ||
| style, | ||
| value | ||
| }) => { | ||
| if (!explode) { | ||
| const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style)); | ||
| switch (style) { | ||
| case "label": | ||
| return `.${joinedValues2}`; | ||
| case "matrix": | ||
| return `;${name}=${joinedValues2}`; | ||
| case "simple": | ||
| return joinedValues2; | ||
| default: | ||
| return `${name}=${joinedValues2}`; | ||
| } | ||
| } | ||
| const separator = separatorArrayExplode(style); | ||
| const joinedValues = value.map((v) => { | ||
| if (style === "label" || style === "simple") { | ||
| return allowReserved ? v : encodeURIComponent(v); | ||
| } | ||
| return serializePrimitiveParam({ | ||
| allowReserved, | ||
| name, | ||
| value: v | ||
| }); | ||
| }).join(separator); | ||
| return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues; | ||
| }; | ||
| var serializePrimitiveParam = ({ | ||
| allowReserved, | ||
| name, | ||
| value | ||
| }) => { | ||
| if (value === void 0 || value === null) { | ||
| return ""; | ||
| } | ||
| if (typeof value === "object") { | ||
| throw new Error( | ||
| "Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these." | ||
| ); | ||
| } | ||
| return `${name}=${allowReserved ? value : encodeURIComponent(value)}`; | ||
| }; | ||
| var serializeObjectParam = ({ | ||
| allowReserved, | ||
| explode, | ||
| name, | ||
| style, | ||
| value, | ||
| valueOnly | ||
| }) => { | ||
| if (value instanceof Date) { | ||
| return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`; | ||
| } | ||
| if (style !== "deepObject" && !explode) { | ||
| let values = []; | ||
| Object.entries(value).forEach(([key, v]) => { | ||
| values = [...values, key, allowReserved ? v : encodeURIComponent(v)]; | ||
| }); | ||
| const joinedValues2 = values.join(","); | ||
| switch (style) { | ||
| case "form": | ||
| return `${name}=${joinedValues2}`; | ||
| case "label": | ||
| return `.${joinedValues2}`; | ||
| case "matrix": | ||
| return `;${name}=${joinedValues2}`; | ||
| default: | ||
| return joinedValues2; | ||
| } | ||
| } | ||
| const separator = separatorObjectExplode(style); | ||
| const joinedValues = Object.entries(value).map( | ||
| ([key, v]) => serializePrimitiveParam({ | ||
| allowReserved, | ||
| name: style === "deepObject" ? `${name}[${key}]` : key, | ||
| value: v | ||
| }) | ||
| ).join(separator); | ||
| return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues; | ||
| }; | ||
| // src/generated/core/utils.gen.ts | ||
| var PATH_PARAM_RE = /\{[^{}]+\}/g; | ||
| var defaultPathSerializer = ({ path, url: _url }) => { | ||
| let url = _url; | ||
| const matches = _url.match(PATH_PARAM_RE); | ||
| if (matches) { | ||
| for (const match of matches) { | ||
| let explode = false; | ||
| let name = match.substring(1, match.length - 1); | ||
| let style = "simple"; | ||
| if (name.endsWith("*")) { | ||
| explode = true; | ||
| name = name.substring(0, name.length - 1); | ||
| } | ||
| if (name.startsWith(".")) { | ||
| name = name.substring(1); | ||
| style = "label"; | ||
| } else if (name.startsWith(";")) { | ||
| name = name.substring(1); | ||
| style = "matrix"; | ||
| } | ||
| const value = path[name]; | ||
| if (value === void 0 || value === null) { | ||
| continue; | ||
| } | ||
| if (Array.isArray(value)) { | ||
| url = url.replace(match, serializeArrayParam({ explode, name, style, value })); | ||
| continue; | ||
| } | ||
| if (typeof value === "object") { | ||
| url = url.replace( | ||
| match, | ||
| serializeObjectParam({ | ||
| explode, | ||
| name, | ||
| style, | ||
| value, | ||
| valueOnly: true | ||
| }) | ||
| ); | ||
| continue; | ||
| } | ||
| if (style === "matrix") { | ||
| url = url.replace( | ||
| match, | ||
| `;${serializePrimitiveParam({ | ||
| name, | ||
| value | ||
| })}` | ||
| ); | ||
| continue; | ||
| } | ||
| const replaceValue = encodeURIComponent( | ||
| style === "label" ? `.${value}` : value | ||
| ); | ||
| url = url.replace(match, replaceValue); | ||
| } | ||
| } | ||
| return url; | ||
| }; | ||
| var getUrl = ({ | ||
| baseUrl, | ||
| path, | ||
| query, | ||
| querySerializer, | ||
| url: _url | ||
| }) => { | ||
| const pathUrl = _url.startsWith("/") ? _url : `/${_url}`; | ||
| let url = (baseUrl ?? "") + pathUrl; | ||
| if (path) { | ||
| url = defaultPathSerializer({ path, url }); | ||
| } | ||
| let search = query ? querySerializer(query) : ""; | ||
| if (search.startsWith("?")) { | ||
| search = search.substring(1); | ||
| } | ||
| if (search) { | ||
| url += `?${search}`; | ||
| } | ||
| return url; | ||
| }; | ||
| function getValidRequestBody(options) { | ||
| const hasBody = options.body !== void 0; | ||
| const isSerializedBody = hasBody && options.bodySerializer; | ||
| if (isSerializedBody) { | ||
| if ("serializedBody" in options) { | ||
| const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== ""; | ||
| return hasSerializedBody ? options.serializedBody : null; | ||
| } | ||
| return options.body !== "" ? options.body : null; | ||
| } | ||
| if (hasBody) { | ||
| return options.body; | ||
| } | ||
| return void 0; | ||
| } | ||
| // src/generated/core/auth.gen.ts | ||
| var getAuthToken = async (auth, callback) => { | ||
| const token = typeof callback === "function" ? await callback(auth) : callback; | ||
| if (!token) { | ||
| return; | ||
| } | ||
| if (auth.scheme === "bearer") { | ||
| return `Bearer ${token}`; | ||
| } | ||
| if (auth.scheme === "basic") { | ||
| return `Basic ${btoa(token)}`; | ||
| } | ||
| return token; | ||
| }; | ||
| // src/generated/client/utils.gen.ts | ||
| var createQuerySerializer = ({ | ||
| parameters = {}, | ||
| ...args | ||
| } = {}) => { | ||
| const querySerializer = (queryParams) => { | ||
| const search = []; | ||
| if (queryParams && typeof queryParams === "object") { | ||
| for (const name in queryParams) { | ||
| const value = queryParams[name]; | ||
| if (value === void 0 || value === null) { | ||
| continue; | ||
| } | ||
| const options = parameters[name] || args; | ||
| if (Array.isArray(value)) { | ||
| const serializedArray = serializeArrayParam({ | ||
| allowReserved: options.allowReserved, | ||
| explode: true, | ||
| name, | ||
| style: "form", | ||
| value, | ||
| ...options.array | ||
| }); | ||
| if (serializedArray) search.push(serializedArray); | ||
| } else if (typeof value === "object") { | ||
| const serializedObject = serializeObjectParam({ | ||
| allowReserved: options.allowReserved, | ||
| explode: true, | ||
| name, | ||
| style: "deepObject", | ||
| value, | ||
| ...options.object | ||
| }); | ||
| if (serializedObject) search.push(serializedObject); | ||
| } else { | ||
| const serializedPrimitive = serializePrimitiveParam({ | ||
| allowReserved: options.allowReserved, | ||
| name, | ||
| value | ||
| }); | ||
| if (serializedPrimitive) search.push(serializedPrimitive); | ||
| } | ||
| } | ||
| } | ||
| return search.join("&"); | ||
| }; | ||
| return querySerializer; | ||
| }; | ||
| var getParseAs = (contentType) => { | ||
| if (!contentType) { | ||
| return "stream"; | ||
| } | ||
| const cleanContent = contentType.split(";")[0]?.trim(); | ||
| if (!cleanContent) { | ||
| return; | ||
| } | ||
| if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) { | ||
| return "json"; | ||
| } | ||
| if (cleanContent === "multipart/form-data") { | ||
| return "formData"; | ||
| } | ||
| if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) { | ||
| return "blob"; | ||
| } | ||
| if (cleanContent.startsWith("text/")) { | ||
| return "text"; | ||
| } | ||
| return; | ||
| }; | ||
| var checkForExistence = (options, name) => { | ||
| if (!name) { | ||
| return false; | ||
| } | ||
| if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) { | ||
| return true; | ||
| } | ||
| return false; | ||
| }; | ||
| async function setAuthParams(options) { | ||
| for (const auth of options.security ?? []) { | ||
| if (checkForExistence(options, auth.name)) { | ||
| continue; | ||
| } | ||
| const token = await getAuthToken(auth, options.auth); | ||
| if (!token) { | ||
| continue; | ||
| } | ||
| const name = auth.name ?? "Authorization"; | ||
| switch (auth.in) { | ||
| case "query": | ||
| if (!options.query) { | ||
| options.query = {}; | ||
| } | ||
| options.query[name] = token; | ||
| break; | ||
| case "cookie": | ||
| options.headers.append("Cookie", `${name}=${token}`); | ||
| break; | ||
| case "header": | ||
| default: | ||
| options.headers.set(name, token); | ||
| break; | ||
| } | ||
| } | ||
| } | ||
| var buildUrl = (options) => getUrl({ | ||
| baseUrl: options.baseUrl, | ||
| path: options.path, | ||
| query: options.query, | ||
| querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer), | ||
| url: options.url | ||
| }); | ||
| var mergeConfigs = (a, b) => { | ||
| const config = { ...a, ...b }; | ||
| if (config.baseUrl?.endsWith("/")) { | ||
| config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1); | ||
| } | ||
| config.headers = mergeHeaders(a.headers, b.headers); | ||
| return config; | ||
| }; | ||
| var headersEntries = (headers) => { | ||
| const entries = []; | ||
| headers.forEach((value, key) => { | ||
| entries.push([key, value]); | ||
| }); | ||
| return entries; | ||
| }; | ||
| var mergeHeaders = (...headers) => { | ||
| const mergedHeaders = new Headers(); | ||
| for (const header of headers) { | ||
| if (!header) { | ||
| continue; | ||
| } | ||
| const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header); | ||
| for (const [key, value] of iterator) { | ||
| if (value === null) { | ||
| mergedHeaders.delete(key); | ||
| } else if (Array.isArray(value)) { | ||
| for (const v of value) { | ||
| mergedHeaders.append(key, v); | ||
| } | ||
| } else if (value !== void 0) { | ||
| mergedHeaders.set( | ||
| key, | ||
| typeof value === "object" ? JSON.stringify(value) : value | ||
| ); | ||
| } | ||
| } | ||
| } | ||
| return mergedHeaders; | ||
| }; | ||
| var Interceptors = class { | ||
| fns = []; | ||
| clear() { | ||
| this.fns = []; | ||
| } | ||
| eject(id) { | ||
| const index = this.getInterceptorIndex(id); | ||
| if (this.fns[index]) { | ||
| this.fns[index] = null; | ||
| } | ||
| } | ||
| exists(id) { | ||
| const index = this.getInterceptorIndex(id); | ||
| return Boolean(this.fns[index]); | ||
| } | ||
| getInterceptorIndex(id) { | ||
| if (typeof id === "number") { | ||
| return this.fns[id] ? id : -1; | ||
| } | ||
| return this.fns.indexOf(id); | ||
| } | ||
| update(id, fn) { | ||
| const index = this.getInterceptorIndex(id); | ||
| if (this.fns[index]) { | ||
| this.fns[index] = fn; | ||
| return id; | ||
| } | ||
| return false; | ||
| } | ||
| use(fn) { | ||
| this.fns.push(fn); | ||
| return this.fns.length - 1; | ||
| } | ||
| }; | ||
| var createInterceptors = () => ({ | ||
| error: new Interceptors(), | ||
| request: new Interceptors(), | ||
| response: new Interceptors() | ||
| }); | ||
| var defaultQuerySerializer = createQuerySerializer({ | ||
| allowReserved: false, | ||
| array: { | ||
| explode: true, | ||
| style: "form" | ||
| }, | ||
| object: { | ||
| explode: true, | ||
| style: "deepObject" | ||
| } | ||
| }); | ||
| var defaultHeaders = { | ||
| "Content-Type": "application/json" | ||
| }; | ||
| var createConfig = (override = {}) => ({ | ||
| ...jsonBodySerializer, | ||
| headers: defaultHeaders, | ||
| parseAs: "auto", | ||
| querySerializer: defaultQuerySerializer, | ||
| ...override | ||
| }); | ||
| // src/generated/client/client.gen.ts | ||
| var createClient = (config = {}) => { | ||
| let _config = mergeConfigs(createConfig(), config); | ||
| const getConfig2 = () => ({ ..._config }); | ||
| const setConfig = (config2) => { | ||
| _config = mergeConfigs(_config, config2); | ||
| return getConfig2(); | ||
| }; | ||
| const interceptors = createInterceptors(); | ||
| const beforeRequest = async (options) => { | ||
| const opts = { | ||
| ..._config, | ||
| ...options, | ||
| fetch: options.fetch ?? _config.fetch ?? globalThis.fetch, | ||
| headers: mergeHeaders(_config.headers, options.headers), | ||
| serializedBody: void 0 | ||
| }; | ||
| if (opts.security) { | ||
| await setAuthParams(opts); | ||
| } | ||
| if (opts.requestValidator) { | ||
| await opts.requestValidator(opts); | ||
| } | ||
| if (opts.body !== void 0 && opts.bodySerializer) { | ||
| opts.serializedBody = opts.bodySerializer(opts.body); | ||
| } | ||
| if (opts.body === void 0 || opts.serializedBody === "") { | ||
| opts.headers.delete("Content-Type"); | ||
| } | ||
| const resolvedOpts = opts; | ||
| const url = buildUrl(resolvedOpts); | ||
| return { opts: resolvedOpts, url }; | ||
| }; | ||
| const request = async (options) => { | ||
| const throwOnError = options.throwOnError ?? _config.throwOnError; | ||
| const responseStyle = options.responseStyle ?? _config.responseStyle; | ||
| let request2; | ||
| let response; | ||
| try { | ||
| const { opts, url } = await beforeRequest(options); | ||
| const requestInit = { | ||
| redirect: "follow", | ||
| ...opts, | ||
| body: getValidRequestBody(opts) | ||
| }; | ||
| request2 = new Request(url, requestInit); | ||
| for (const fn of interceptors.request.fns) { | ||
| if (fn) { | ||
| request2 = await fn(request2, opts); | ||
| } | ||
| } | ||
| const _fetch = opts.fetch; | ||
| response = await _fetch(request2); | ||
| for (const fn of interceptors.response.fns) { | ||
| if (fn) { | ||
| response = await fn(response, request2, opts); | ||
| } | ||
| } | ||
| const result = { | ||
| request: request2, | ||
| response | ||
| }; | ||
| if (response.ok) { | ||
| const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json"; | ||
| if (response.status === 204 || response.headers.get("Content-Length") === "0") { | ||
| let emptyData; | ||
| switch (parseAs) { | ||
| case "arrayBuffer": | ||
| case "blob": | ||
| case "text": | ||
| emptyData = await response[parseAs](); | ||
| break; | ||
| case "formData": | ||
| emptyData = new FormData(); | ||
| break; | ||
| case "stream": | ||
| emptyData = response.body; | ||
| break; | ||
| case "json": | ||
| default: | ||
| emptyData = {}; | ||
| break; | ||
| } | ||
| return opts.responseStyle === "data" ? emptyData : { | ||
| data: emptyData, | ||
| ...result | ||
| }; | ||
| } | ||
| let data; | ||
| switch (parseAs) { | ||
| case "arrayBuffer": | ||
| case "blob": | ||
| case "formData": | ||
| case "text": | ||
| data = await response[parseAs](); | ||
| break; | ||
| case "json": { | ||
| const text = await response.text(); | ||
| data = text ? JSON.parse(text) : {}; | ||
| break; | ||
| } | ||
| case "stream": | ||
| return opts.responseStyle === "data" ? response.body : { | ||
| data: response.body, | ||
| ...result | ||
| }; | ||
| } | ||
| if (parseAs === "json") { | ||
| if (opts.responseValidator) { | ||
| await opts.responseValidator(data); | ||
| } | ||
| if (opts.responseTransformer) { | ||
| data = await opts.responseTransformer(data); | ||
| } | ||
| } | ||
| return opts.responseStyle === "data" ? data : { | ||
| data, | ||
| ...result | ||
| }; | ||
| } | ||
| const textError = await response.text(); | ||
| let jsonError; | ||
| try { | ||
| jsonError = JSON.parse(textError); | ||
| } catch { | ||
| } | ||
| throw jsonError ?? textError; | ||
| } catch (error) { | ||
| let finalError = error; | ||
| for (const fn of interceptors.error.fns) { | ||
| if (fn) { | ||
| finalError = await fn(finalError, response, request2, options); | ||
| } | ||
| } | ||
| finalError = finalError || {}; | ||
| if (throwOnError) { | ||
| throw finalError; | ||
| } | ||
| return responseStyle === "data" ? void 0 : { | ||
| error: finalError, | ||
| request: request2, | ||
| response | ||
| }; | ||
| } | ||
| }; | ||
| const makeMethodFn = (method) => (options) => request({ ...options, method }); | ||
| const makeSseFn = (method) => async (options) => { | ||
| const { opts, url } = await beforeRequest(options); | ||
| return createSseClient({ | ||
| ...opts, | ||
| body: opts.body, | ||
| method, | ||
| onRequest: async (url2, init) => { | ||
| let request2 = new Request(url2, init); | ||
| for (const fn of interceptors.request.fns) { | ||
| if (fn) { | ||
| request2 = await fn(request2, opts); | ||
| } | ||
| } | ||
| return request2; | ||
| }, | ||
| serializedBody: getValidRequestBody(opts), | ||
| url | ||
| }); | ||
| }; | ||
| const _buildUrl = (options) => buildUrl({ ..._config, ...options }); | ||
| return { | ||
| buildUrl: _buildUrl, | ||
| connect: makeMethodFn("CONNECT"), | ||
| delete: makeMethodFn("DELETE"), | ||
| get: makeMethodFn("GET"), | ||
| getConfig: getConfig2, | ||
| head: makeMethodFn("HEAD"), | ||
| interceptors, | ||
| options: makeMethodFn("OPTIONS"), | ||
| patch: makeMethodFn("PATCH"), | ||
| post: makeMethodFn("POST"), | ||
| put: makeMethodFn("PUT"), | ||
| request, | ||
| setConfig, | ||
| sse: { | ||
| connect: makeSseFn("CONNECT"), | ||
| delete: makeSseFn("DELETE"), | ||
| get: makeSseFn("GET"), | ||
| head: makeSseFn("HEAD"), | ||
| options: makeSseFn("OPTIONS"), | ||
| patch: makeSseFn("PATCH"), | ||
| post: makeSseFn("POST"), | ||
| put: makeSseFn("PUT"), | ||
| trace: makeSseFn("TRACE") | ||
| }, | ||
| trace: makeMethodFn("TRACE") | ||
| }; | ||
| }; | ||
| // src/generated/client.gen.ts | ||
| var client = createClient(createConfig({ baseUrl: "https://shipeasy.ai" })); | ||
| // src/generated/sdk.gen.ts | ||
| var listGates = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates", | ||
| ...options | ||
| }); | ||
| var createGate = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteGate = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}", | ||
| ...options | ||
| }); | ||
| var getGate = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}", | ||
| ...options | ||
| }); | ||
| var updateGate = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var enableGate = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}/enable", | ||
| ...options | ||
| }); | ||
| var disableGate = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}/disable", | ||
| ...options | ||
| }); | ||
| var listGateActivity = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/{id}/activity", | ||
| ...options | ||
| }); | ||
| var listExperiments = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments", | ||
| ...options | ||
| }); | ||
| var createExperiment = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteExperiment = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}", | ||
| ...options | ||
| }); | ||
| var getExperiment = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}", | ||
| ...options | ||
| }); | ||
| var updateExperiment = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var setExperimentStatus = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/status", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var setExperimentMetrics = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/metrics", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var getExperimentResults = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/results", | ||
| ...options | ||
| }); | ||
| var getExperimentTimeseries = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/timeseries", | ||
| ...options | ||
| }); | ||
| var reanalyzeExperiment = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/reanalyze", | ||
| ...options | ||
| }); | ||
| var createExperimentReadout = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/readouts", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var getExperimentReadout = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/experiments/{id}/readouts/{readoutId}", | ||
| ...options | ||
| }); | ||
| var listConfigs = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs", | ||
| ...options | ||
| }); | ||
| var createConfig2 = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteConfig = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}", | ||
| ...options | ||
| }); | ||
| var getConfig = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}", | ||
| ...options | ||
| }); | ||
| var updateConfig = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var discardConfigDraft = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/drafts", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var saveConfigDraft = (options) => (options.client ?? client).put({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/drafts", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var publishConfigDraft = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/publish", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listConfigActivity = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/activity", | ||
| ...options | ||
| }); | ||
| var updateConfigSchema = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/schema", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listConfigVersions = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/configs/{id}/versions", | ||
| ...options | ||
| }); | ||
| var listKillswitches = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches", | ||
| ...options | ||
| }); | ||
| var createKillswitch = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteKillswitch = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}", | ||
| ...options | ||
| }); | ||
| var getKillswitch = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}", | ||
| ...options | ||
| }); | ||
| var updateKillswitch = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var unsetKillswitchSwitch = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}/switch", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var setKillswitchSwitch = (options) => (options.client ?? client).put({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}/switch", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var setKillswitchValue = (options) => (options.client ?? client).put({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/killswitches/{id}/value", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listUniverses = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/universes", | ||
| ...options | ||
| }); | ||
| var createUniverse = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/universes", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteUniverse = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/universes/{id}", | ||
| ...options | ||
| }); | ||
| var updateUniverse = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/universes/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listGateTemplates = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/templates", | ||
| ...options | ||
| }); | ||
| var createGateTemplate = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/templates", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteGateTemplate = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/templates/{id}", | ||
| ...options | ||
| }); | ||
| var getGateTemplate = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/templates/{id}", | ||
| ...options | ||
| }); | ||
| var updateGateTemplate = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/gates/templates/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listAttributes = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/attributes", | ||
| ...options | ||
| }); | ||
| var createAttribute = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/attributes", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteAttribute = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/attributes/{id}", | ||
| ...options | ||
| }); | ||
| var getAttribute = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/attributes/{id}", | ||
| ...options | ||
| }); | ||
| var updateAttribute = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/attributes/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listMetrics = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics", | ||
| ...options | ||
| }); | ||
| var createMetric = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteMetric = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}", | ||
| ...options | ||
| }); | ||
| var getMetric = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}", | ||
| ...options | ||
| }); | ||
| var updateMetric = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listMetricExperiments = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}/experiments", | ||
| ...options | ||
| }); | ||
| var unarchiveMetric = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}/unarchive", | ||
| ...options | ||
| }); | ||
| var getMetricSeries = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/metrics/{id}/series", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listEvents = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events", | ||
| ...options | ||
| }); | ||
| var createEvent = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteEvent = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events/{id}", | ||
| ...options | ||
| }); | ||
| var getEvent = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events/{id}", | ||
| ...options | ||
| }); | ||
| var updateEvent = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var approveEvent = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/events/{id}/approve", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listOpsItems = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops", | ||
| ...options | ||
| }); | ||
| var createOpsItem = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteOpsItem = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}", | ||
| ...options | ||
| }); | ||
| var getOpsItem = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}", | ||
| ...options | ||
| }); | ||
| var updateOpsItem = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var linkPrToOpsItem = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/link-pr", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var ackOpsItem = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/ack", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listOpsInvestigations = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/investigation", | ||
| ...options | ||
| }); | ||
| var createOpsInvestigation = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/investigation", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var updateOpsInvestigation = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/investigation/{investigationId}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listOpsAgents = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/agent-profiles", | ||
| ...options | ||
| }); | ||
| var listOpsComments = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/comments", | ||
| ...options | ||
| }); | ||
| var createOpsComment = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/ops/{handle}/comments", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var notifyOps = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/notifications", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listSlackChannels = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/slack/channels", | ||
| ...options | ||
| }); | ||
| var listAlertRules = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alert-rules", | ||
| ...options | ||
| }); | ||
| var createAlertRule = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alert-rules", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteAlertRule = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alert-rules/{id}", | ||
| ...options | ||
| }); | ||
| var updateAlertRule = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alert-rules/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listAlerts = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alerts", | ||
| ...options | ||
| }); | ||
| var updateAlert = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/alerts/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var getCurrentProject = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/projects/current", | ||
| ...options | ||
| }); | ||
| var upsertProject = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/projects/upsert", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var getProject = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/projects/{id}", | ||
| ...options | ||
| }); | ||
| var updateProject = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/projects/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listI18nProfiles = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/profiles", | ||
| ...options | ||
| }); | ||
| var createI18nProfile = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/profiles", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listI18nKeys = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/keys", | ||
| ...options | ||
| }); | ||
| var pushI18nKeys = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/keys", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var upsertI18nKeys = (options) => (options.client ?? client).put({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/keys", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteI18nKey = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/keys/{id}", | ||
| ...options | ||
| }); | ||
| var updateI18nKey = (options) => (options.client ?? client).put({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/keys/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listI18nDrafts = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts", | ||
| ...options | ||
| }); | ||
| var createI18nDraft = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteI18nDraft = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts/{draftId}", | ||
| ...options | ||
| }); | ||
| var updateI18nDraft = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts/{draftId}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteI18nProfile = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/profiles/{profileId}", | ||
| ...options | ||
| }); | ||
| var listI18nDraftKeys = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts/{draftId}/keys", | ||
| ...options | ||
| }); | ||
| var upsertI18nDraftKey = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/drafts/{draftId}/keys", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var publishI18nProfile = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/profiles/{profileId}/publish", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var setI18nLabel = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/i18n/set", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listErrors = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors", | ||
| ...options | ||
| }); | ||
| var getError = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors/{id}", | ||
| ...options | ||
| }); | ||
| var updateErrorStatus = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var fileErrorTicket = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors/{id}/file", | ||
| ...options | ||
| }); | ||
| var resolveError = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors/{id}/resolve", | ||
| ...options | ||
| }); | ||
| var getErrorSeries = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/errors/{id}/series", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listConnectors = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors", | ||
| ...options | ||
| }); | ||
| var createConnector = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var deleteConnector = (options) => (options.client ?? client).delete({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}", | ||
| ...options | ||
| }); | ||
| var getConnector = (options) => (options.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}", | ||
| ...options | ||
| }); | ||
| var updateConnector = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var fireConnector = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}/fire", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var testConnector = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}/test", | ||
| ...options | ||
| }); | ||
| var updateTriggerConnector = (options) => (options.client ?? client).patch({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/{id}/trigger", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var createTriggerConnector = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/connectors/trigger", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var listKeys = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/keys", | ||
| ...options | ||
| }); | ||
| var createKey = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/keys", | ||
| ...options, | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| ...options.headers | ||
| } | ||
| }); | ||
| var revokeKey = (options) => (options.client ?? client).post({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/keys/{id}/revoke", | ||
| ...options | ||
| }); | ||
| var searchResources = (options) => (options?.client ?? client).get({ | ||
| security: [{ scheme: "bearer", type: "http" }], | ||
| url: "/api/admin/search", | ||
| ...options | ||
| }); | ||
| // src/client.ts | ||
| function configure({ apiKey, projectId, baseUrl }) { | ||
| client.setConfig({ | ||
| ...baseUrl ? { baseUrl } : {}, | ||
| auth: () => apiKey, | ||
| headers: projectId ? { "X-Project-Id": projectId } : {} | ||
| }); | ||
| } | ||
| export { | ||
| createConfig, | ||
| createClient, | ||
| client, | ||
| listGates, | ||
| createGate, | ||
| deleteGate, | ||
| getGate, | ||
| updateGate, | ||
| enableGate, | ||
| disableGate, | ||
| listGateActivity, | ||
| listExperiments, | ||
| createExperiment, | ||
| deleteExperiment, | ||
| getExperiment, | ||
| updateExperiment, | ||
| setExperimentStatus, | ||
| setExperimentMetrics, | ||
| getExperimentResults, | ||
| getExperimentTimeseries, | ||
| reanalyzeExperiment, | ||
| createExperimentReadout, | ||
| getExperimentReadout, | ||
| listConfigs, | ||
| createConfig2, | ||
| deleteConfig, | ||
| getConfig, | ||
| updateConfig, | ||
| discardConfigDraft, | ||
| saveConfigDraft, | ||
| publishConfigDraft, | ||
| listConfigActivity, | ||
| updateConfigSchema, | ||
| listConfigVersions, | ||
| listKillswitches, | ||
| createKillswitch, | ||
| deleteKillswitch, | ||
| getKillswitch, | ||
| updateKillswitch, | ||
| unsetKillswitchSwitch, | ||
| setKillswitchSwitch, | ||
| setKillswitchValue, | ||
| listUniverses, | ||
| createUniverse, | ||
| deleteUniverse, | ||
| updateUniverse, | ||
| listGateTemplates, | ||
| createGateTemplate, | ||
| deleteGateTemplate, | ||
| getGateTemplate, | ||
| updateGateTemplate, | ||
| listAttributes, | ||
| createAttribute, | ||
| deleteAttribute, | ||
| getAttribute, | ||
| updateAttribute, | ||
| listMetrics, | ||
| createMetric, | ||
| deleteMetric, | ||
| getMetric, | ||
| updateMetric, | ||
| listMetricExperiments, | ||
| unarchiveMetric, | ||
| getMetricSeries, | ||
| listEvents, | ||
| createEvent, | ||
| deleteEvent, | ||
| getEvent, | ||
| updateEvent, | ||
| approveEvent, | ||
| listOpsItems, | ||
| createOpsItem, | ||
| deleteOpsItem, | ||
| getOpsItem, | ||
| updateOpsItem, | ||
| linkPrToOpsItem, | ||
| ackOpsItem, | ||
| listOpsInvestigations, | ||
| createOpsInvestigation, | ||
| updateOpsInvestigation, | ||
| listOpsAgents, | ||
| listOpsComments, | ||
| createOpsComment, | ||
| notifyOps, | ||
| listSlackChannels, | ||
| listAlertRules, | ||
| createAlertRule, | ||
| deleteAlertRule, | ||
| updateAlertRule, | ||
| listAlerts, | ||
| updateAlert, | ||
| getCurrentProject, | ||
| upsertProject, | ||
| getProject, | ||
| updateProject, | ||
| listI18nProfiles, | ||
| createI18nProfile, | ||
| listI18nKeys, | ||
| pushI18nKeys, | ||
| upsertI18nKeys, | ||
| deleteI18nKey, | ||
| updateI18nKey, | ||
| listI18nDrafts, | ||
| createI18nDraft, | ||
| deleteI18nDraft, | ||
| updateI18nDraft, | ||
| deleteI18nProfile, | ||
| listI18nDraftKeys, | ||
| upsertI18nDraftKey, | ||
| publishI18nProfile, | ||
| setI18nLabel, | ||
| listErrors, | ||
| getError, | ||
| updateErrorStatus, | ||
| fileErrorTicket, | ||
| resolveError, | ||
| getErrorSeries, | ||
| listConnectors, | ||
| createConnector, | ||
| deleteConnector, | ||
| getConnector, | ||
| updateConnector, | ||
| fireConnector, | ||
| testConnector, | ||
| updateTriggerConnector, | ||
| createTriggerConnector, | ||
| listKeys, | ||
| createKey, | ||
| revokeKey, | ||
| searchResources, | ||
| configure | ||
| }; | ||
| //# sourceMappingURL=chunk-RDMD5XQT.js.map |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
4101481
-0.01%61403
-0.12%