@omni-commerce/sdk 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/BaseClient.ts","../src/version.ts","../src/environments.ts","../src/errors/OmniError.ts","../src/errors/OmniTimeoutError.ts","../src/errors/status.ts","../src/core/supplier.ts","../src/core/query.ts","../src/core/http-response-promise.ts","../src/core/fetcher.ts","../src/core/multipart.ts","../src/core/path.ts","../src/products.ts","../src/product-batches.ts","../src/jobs.ts","../src/generated/resources.ts","../src/Client.ts","../src/webhooks.ts","../src/api/index.ts"],"names":["record","text","update"],"mappings":";;;;;;;;;;;;;;;;AAoDO,SAAS,sBAAA,CACd,OAAA,GAA6B,EAAC,EACL;AACzB,EAAA,MAAM,SAAA,GAAY,OAAA,CAAQ,KAAA,IAAS,UAAA,CAAW,KAAA;AAC9C,EAAA,IAAI,OAAO,cAAc,UAAA,EAAY;AACnC,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KACF;AAAA,EACF;AACA,EAAA,OAAO;AAAA,IACL,aAAa,OAAA,CAAQ,WAAA;AAAA,IACrB,SAAS,OAAA,CAAQ,OAAA;AAAA,IACjB,QAAQ,OAAA,CAAQ,MAAA;AAAA,IAChB,SAAS,OAAA,CAAQ,OAAA;AAAA,IACjB,gBAAA,EAAkB,QAAQ,gBAAA,IAAoB,EAAA;AAAA,IAC9C,UAAA,EAAY,QAAQ,UAAA,IAAc,CAAA;AAAA,IAClC,KAAA,EAAO;AAAA,GACT;AACF;;;ACtEO,IAAM,WAAA,GAAc;AACpB,IAAM,cAAA,GAAiB,mBAAmB,WAAW,CAAA,CAAA;;;ACArD,IAAM,eAAA,GAAkB;AAAA,EAC7B,UAAA,EAAY,yBAAA;AAAA,EACZ,KAAA,EAAO;AACT;;;ACFO,IAAM,SAAA,GAAN,cAAwB,KAAA,CAAM;AAAA,EAKnC,W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AAI,CAAC,KAAA,EAAO;AACV,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KACF;AAAA,EACF;AACA,EAAA,IAAI,MAAA,GAAkB,OAAA;AACtB,EAAA,IAAI;AACF,IAAA,MAAA,GAAS,IAAA,CAAK,MAAM,OAAO,CAAA;AAAA,EAC7B,CAAA,CAAA,MAAQ;AACN,IAAA,MAAM,IAAI,MAAM,0DAA0D,CAAA;AAAA,EAC5E;AACA,EAAA,OAAO;AAAA,IACL,OAAA,EAAS,WAAA,CAAY,OAAA,EAAS,uBAAuB,CAAA;AAAA,IACrD,SAAA,EAAW,WAAA,CAAY,OAAA,EAAS,yBAAyB,CAAA;AAAA,IACzD,SAAA;AAAA,IACA,OAAA,EAAS,MAAA;AAAA,IACT;AAAA,GACF;AACF;;;ACpIA,IAAA,WAAA,GAAA;AAAA,QAAA,CAAA,WAAA,EAAA;AAAA,EAAA,mBAAA,EAAA,MAAA;AAAA,CAAA,CAAA","file":"index.js","sourcesContent":["import { OmniEnvironment } from \"./environments\";\nimport type { Supplier } from \"./core/supplier\";\n\nexport type FetchLike = (\n input: RequestInfo | URL,\n init?: RequestInit,\n) => Promise<Response>;\n\nexport interface BaseClientOptions {\n /**\n * API host. Defaults to production (`https://omnicommerce.sg`).\n * Pass `OmniEnvironment.Local` for `http://localhost:3000`.\n */\n environment?: Supplier<OmniEnvironment | string>;\n /** Explicit API origin. Overrides `environment` when set. */\n baseUrl?: Supplier<string>;\n /**\n * Organization API key (`omni_sk_...`) or OAuth access token.\n * Defaults to `process.env.OMNI_API_KEY`.\n */\n apiKey?: Supplier<string>;\n /** Extra headers sent on every request. */\n headers?: Record<\n string,\n string | Supplier<string | null | undefined> | null | undefined\n >;\n /** Default timeout in seconds. Defaults to 60. */\n timeoutInSeconds?: number;\n /** Retry count for 408/429/5xx and network failures. Defaults to 2. */\n maxRetries?: number;\n /** Custom fetch implementation. */\n fetch?: FetchLike;\n}\n\nexport interface BaseRequestOptions {\n timeoutInSeconds?: number;\n maxRetries?: number;\n abortSignal?: AbortSignal;\n queryParams?: Record<string, unknown>;\n headers?: Record<string, string | undefined>;\n}\n\nexport type NormalizedClientOptions = {\n environment?: Supplier<OmniEnvironment | string>;\n baseUrl?: Supplier<string>;\n apiKey?: Supplier<string>;\n headers?: BaseClientOptions[\"headers\"];\n timeoutInSeconds: number;\n maxRetries: number;\n fetch: FetchLike;\n};\n\nexport function normalizeClientOptions(\n options: BaseClientOptions = {},\n): NormalizedClientOptions {\n const fetchImpl = options.fetch ?? globalThis.fetch;\n if (typeof fetchImpl !== \"function\") {\n throw new Error(\n \"No fetch implementation found. Pass `fetch` in OmniClient options.\",\n );\n }\n return {\n environment: options.environment,\n baseUrl: options.baseUrl,\n apiKey: options.apiKey,\n headers: options.headers,\n timeoutInSeconds: options.timeoutInSeconds ?? 60,\n maxRetries: options.maxRetries ?? 2,\n fetch: fetchImpl,\n };\n}\n","export const SDK_VERSION = \"0.21.0\";\nexport const SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;\n","// Generated from the canonical OpenAPI Production server.\nexport const OmniEnvironment = {\n Production: \"https://omnicommerce.ai\",\n Local: \"http://localhost:3000\",\n} as const;\n\nexport type OmniEnvironment =\n (typeof OmniEnvironment)[keyof typeof OmniEnvironment];\n","import type { RawResponse } from \"../core/http-response-promise\";\n\nexport class OmniError extends Error {\n readonly statusCode?: number;\n readonly body?: unknown;\n readonly rawResponse?: RawResponse;\n\n constructor({\n message,\n statusCode,\n body,\n rawResponse,\n }: {\n message?: string;\n statusCode?: number;\n body?: unknown;\n rawResponse?: RawResponse;\n }) {\n super(message ?? defaultErrorMessage(statusCode, body));\n this.name = \"OmniError\";\n this.statusCode = statusCode;\n this.body = body;\n this.rawResponse = rawResponse;\n }\n}\n\nfunction defaultErrorMessage(statusCode?: number, body?: unknown): string {\n const fromBody = extractErrorMessage(body);\n if (fromBody) return fromBody;\n if (statusCode) return `Omni API error (${statusCode})`;\n return \"Omni API error\";\n}\n\nexport function extractErrorMessage(body: unknown): string | undefined {\n if (typeof body === \"string\" && body.trim()) return body;\n if (!body || typeof body !== \"object\") return undefined;\n const record = body as Record<string, unknown>;\n for (const key of [\"error\", \"message\", \"detail\"]) {\n const value = record[key];\n if (typeof value === \"string\" && value.trim()) return value;\n }\n return undefined;\n}\n","export class OmniTimeoutError extends Error {\n constructor(message = \"Request timed out\") {\n super(message);\n this.name = \"OmniTimeoutError\";\n }\n}\n","import type { RawResponse } from \"../core/http-response-promise\";\nimport { OmniError } from \"./OmniError\";\n\nexport class BadRequestError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({ message: \"Bad request\", statusCode: 400, body, rawResponse });\n this.name = \"BadRequestError\";\n }\n}\n\nexport class UnauthorizedError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({ message: \"Unauthorized\", statusCode: 401, body, rawResponse });\n this.name = \"UnauthorizedError\";\n }\n}\n\nexport class ForbiddenError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({ message: \"Forbidden\", statusCode: 403, body, rawResponse });\n this.name = \"ForbiddenError\";\n }\n}\n\nexport class NotFoundError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({ message: \"Not found\", statusCode: 404, body, rawResponse });\n this.name = \"NotFoundError\";\n }\n}\n\nexport class UnprocessableEntityError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({\n message: \"Unprocessable entity\",\n statusCode: 422,\n body,\n rawResponse,\n });\n this.name = \"UnprocessableEntityError\";\n }\n}\n\nexport class TooManyRequestsError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({\n message: \"Too many requests\",\n statusCode: 429,\n body,\n rawResponse,\n });\n this.name = \"TooManyRequestsError\";\n }\n}\n\nexport class InternalServerError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({\n message: \"Internal server error\",\n statusCode: 500,\n body,\n rawResponse,\n });\n this.name = \"InternalServerError\";\n }\n}\n\nexport class BadGatewayError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({ message: \"Bad gateway\", statusCode: 502, body, rawResponse });\n this.name = \"BadGatewayError\";\n }\n}\n\nexport class ServiceUnavailableError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({\n message: \"Service unavailable\",\n statusCode: 503,\n body,\n rawResponse,\n });\n this.name = \"ServiceUnavailableError\";\n }\n}\n\nexport function errorFromStatus(\n statusCode: number,\n body: unknown,\n rawResponse: RawResponse,\n): OmniError {\n switch (statusCode) {\n case 400:\n return new BadRequestError(body, rawResponse);\n case 401:\n return new UnauthorizedError(body, rawResponse);\n case 403:\n return new ForbiddenError(body, rawResponse);\n case 404:\n return new NotFoundError(body, rawResponse);\n case 422:\n return new UnprocessableEntityError(body, rawResponse);\n case 429:\n return new TooManyRequestsError(body, rawResponse);\n case 500:\n return new InternalServerError(body, rawResponse);\n case 502:\n return new BadGatewayError(body, rawResponse);\n case 503:\n return new ServiceUnavailableError(body, rawResponse);\n default:\n return new OmniError({ statusCode, body, rawResponse });\n }\n}\n","export type Supplier<T> = T | Promise<T> | (() => T | Promise<T>);\n\nexport async function getSupplierValue<T>(\n value: Supplier<T> | undefined,\n): Promise<T | undefined> {\n if (value === undefined) return undefined;\n if (typeof value === \"function\") {\n return await (value as () => T | Promise<T>)();\n }\n return value;\n}\n","const isPlainObject = (value: unknown): value is Record<string, unknown> =>\n Boolean(value) && Object.getPrototypeOf(value) === Object.prototype;\n\nexport function toQueryString(\n query: Record<string, unknown> | undefined,\n): string {\n if (!query) return \"\";\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(query)) {\n appendQueryParam(params, key, value);\n }\n return params.toString();\n}\n\nfunction appendQueryParam(\n params: URLSearchParams,\n key: string,\n value: unknown,\n): void {\n if (value === undefined || value === null) return;\n if (Array.isArray(value)) {\n for (const item of value) appendQueryParam(params, key, item);\n return;\n }\n if (typeof value === \"boolean\" || typeof value === \"number\") {\n params.append(key, String(value));\n return;\n }\n if (typeof value === \"string\") {\n params.append(key, value);\n return;\n }\n if (isPlainObject(value) || Array.isArray(value)) {\n params.append(key, JSON.stringify(value));\n return;\n }\n params.append(key, String(value));\n}\n\nexport function joinUrl(baseUrl: string, path: string, query?: string): string {\n const trimmedBase = baseUrl.replace(/\\/+$/, \"\");\n const normalizedPath = path.startsWith(\"/\") ? path : `/${path}`;\n const url = `${trimmedBase}${normalizedPath}`;\n return query ? `${url}?${query}` : url;\n}\n","export type RawResponse = {\n status: number;\n headers: Headers;\n url: string;\n};\n\nexport type WithRawResponse<T> = {\n data: T;\n rawResponse: RawResponse;\n};\n\nexport class HttpResponsePromise<T> extends Promise<T> {\n readonly #response: Promise<WithRawResponse<T>>;\n\n private constructor(\n executor: (\n resolve: (value: T | PromiseLike<T>) => void,\n reject: (reason?: unknown) => void,\n ) => void,\n response: Promise<WithRawResponse<T>>,\n ) {\n super(executor);\n this.#response = response;\n }\n\n static from<T>(\n response: Promise<WithRawResponse<T>>,\n ): HttpResponsePromise<T> {\n return new HttpResponsePromise<T>((resolve, reject) => {\n void response.then((result) => resolve(result.data), reject);\n }, response);\n }\n\n withRawResponse(): Promise<WithRawResponse<T>> {\n return this.#response;\n }\n}\n\nexport function toRawResponse(response: Response): RawResponse {\n return {\n status: response.status,\n headers: response.headers,\n url: response.url,\n };\n}\n","import { SDK_USER_AGENT } from \"../version\";\nimport { OmniEnvironment } from \"../environments\";\nimport {\n type NormalizedClientOptions,\n type BaseRequestOptions,\n} from \"../BaseClient\";\nimport { errorFromStatus, OmniError } from \"../errors\";\nimport { OmniTimeoutError } from \"../errors/OmniTimeoutError\";\nimport { getSupplierValue } from \"./supplier\";\nimport { joinUrl, toQueryString } from \"./query\";\nimport {\n HttpResponsePromise,\n toRawResponse,\n type RawResponse,\n} from \"./http-response-promise\";\n\nconst IDEMPOTENT_METHODS = new Set([\"GET\", \"HEAD\", \"OPTIONS\", \"PUT\", \"DELETE\"]);\n\nexport type OmniRequestInit = {\n method: string;\n path: string;\n query?: Record<string, unknown>;\n body?: unknown;\n headers?: Record<string, string | undefined>;\n timeoutInSeconds?: number;\n maxRetries?: number;\n abortSignal?: AbortSignal;\n queryParams?: Record<string, unknown>;\n};\n\nexport class OmniHttp {\n constructor(private readonly options: NormalizedClientOptions) {}\n\n request<T>(init: OmniRequestInit): HttpResponsePromise<T> {\n return HttpResponsePromise.from(this.requestWithRaw<T>(init));\n }\n\n async requestWithRaw<T>(\n init: OmniRequestInit,\n ): Promise<{ data: T; rawResponse: RawResponse }> {\n const url = await this.buildUrl(init);\n const headers = await this.buildHeaders(init);\n const serialized = serializeBody(init.body, headers);\n const timeoutMs =\n (init.timeoutInSeconds ?? this.options.timeoutInSeconds) * 1000;\n const maxRetries = init.maxRetries ?? this.options.maxRetries;\n const fetchImpl = this.options.fetch;\n\n let lastError: unknown;\n for (let attempt = 0; attempt <= maxRetries; attempt++) {\n const controller = new AbortController();\n const timeout = setTimeout(() => controller.abort(), timeoutMs);\n const onAbort = () => controller.abort();\n init.abortSignal?.addEventListener(\"abort\", onAbort, { once: true });\n try {\n const response = await fetchImpl(url, {\n method: init.method,\n headers,\n body: serialized.body,\n signal: controller.signal,\n });\n const rawResponse = toRawResponse(response);\n if (response.ok) {\n const data = (await parseSuccessBody(response)) as T;\n return { data, rawResponse };\n }\n const errorBody = await parseErrorBody(response);\n if (attempt < maxRetries && shouldRetry(init.method, response.status)) {\n await sleep(\n retryDelayMs(attempt, response.headers.get(\"retry-after\")),\n );\n continue;\n }\n throw errorFromStatus(response.status, errorBody, rawResponse);\n } catch (error) {\n lastError = error;\n if (error instanceof OmniError) throw error;\n const aborted =\n error instanceof Error &&\n (error.name === \"AbortError\" || error.name === \"TimeoutError\");\n if (aborted && init.abortSignal?.aborted) {\n throw error;\n }\n if (aborted) {\n lastError = new OmniTimeoutError(\n `Request timed out after ${timeoutMs}ms`,\n );\n }\n if (attempt >= maxRetries || !shouldRetry(init.method, undefined)) {\n throw lastError;\n }\n await sleep(retryDelayMs(attempt, null));\n } finally {\n clearTimeout(timeout);\n init.abortSignal?.removeEventListener(\"abort\", onAbort);\n }\n }\n throw lastError;\n }\n\n private async buildUrl(init: OmniRequestInit): Promise<string> {\n const baseUrl =\n (await getSupplierValue(this.options.baseUrl)) ??\n (await getSupplierValue(this.options.environment)) ??\n OmniEnvironment.Production;\n const query = toQueryString({\n ...init.query,\n ...init.queryParams,\n });\n return joinUrl(baseUrl, init.path, query);\n }\n\n private async buildHeaders(\n init: OmniRequestInit,\n ): Promise<Record<string, string>> {\n const headers: Record<string, string> = {\n Accept: \"application/json\",\n \"User-Agent\": SDK_USER_AGENT,\n };\n const apiKey =\n (await getSupplierValue(this.options.apiKey)) ?? readEnvApiKey();\n if (apiKey) {\n headers.Authorization = `Bearer ${apiKey}`;\n }\n if (this.options.headers) {\n for (const [key, value] of Object.entries(this.options.headers)) {\n const resolved = await getSupplierValue(value ?? undefined);\n if (resolved) headers[key] = resolved;\n }\n }\n if (init.headers) {\n for (const [key, value] of Object.entries(init.headers)) {\n if (value) headers[key] = value;\n }\n }\n return headers;\n }\n}\n\nexport function mergeRequestOptions(\n requestOptions?: BaseRequestOptions,\n): Pick<\n OmniRequestInit,\n \"timeoutInSeconds\" | \"maxRetries\" | \"abortSignal\" | \"queryParams\" | \"headers\"\n> {\n return {\n timeoutInSeconds: requestOptions?.timeoutInSeconds,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n queryParams: requestOptions?.queryParams,\n headers: requestOptions?.headers,\n };\n}\n\nfunction readEnvApiKey(): string | undefined {\n if (typeof process === \"undefined\" || !process.env) return undefined;\n const value = process.env.OMNI_API_KEY;\n return value && value.trim() ? value : undefined;\n}\n\nfunction serializeBody(\n body: unknown,\n headers: Record<string, string>,\n): { body?: BodyInit } {\n if (body === undefined || body === null) return {};\n if (typeof FormData !== \"undefined\" && body instanceof FormData) {\n return { body };\n }\n if (\n typeof URLSearchParams !== \"undefined\" &&\n body instanceof URLSearchParams\n ) {\n if (!headers[\"Content-Type\"]) {\n headers[\"Content-Type\"] = \"application/x-www-form-urlencoded\";\n }\n return { body };\n }\n if (typeof Blob !== \"undefined\" && body instanceof Blob) {\n return { body };\n }\n if (typeof body === \"string\") {\n if (!headers[\"Content-Type\"]) headers[\"Content-Type\"] = \"application/json\";\n return { body };\n }\n if (!headers[\"Content-Type\"]) headers[\"Content-Type\"] = \"application/json\";\n return { body: JSON.stringify(body) };\n}\n\nasync function parseSuccessBody(response: Response): Promise<unknown> {\n if (response.status === 204) return undefined;\n const contentType = response.headers.get(\"content-type\") ?? \"\";\n if (contentType.includes(\"application/json\")) {\n const text = await response.text();\n if (!text) return undefined;\n return JSON.parse(text);\n }\n if (contentType.includes(\"text/\")) {\n return response.text();\n }\n const text = await response.text();\n if (!text) return undefined;\n try {\n return JSON.parse(text);\n } catch {\n return text;\n }\n}\n\nasync function parseErrorBody(response: Response): Promise<unknown> {\n const text = await response.text();\n if (!text) return undefined;\n try {\n return JSON.parse(text);\n } catch {\n return text;\n }\n}\n\nfunction shouldRetry(method: string, status: number | undefined): boolean {\n if (status === 408 || status === 429) return true;\n const idempotent = IDEMPOTENT_METHODS.has(method.toUpperCase());\n if (status !== undefined) {\n return idempotent && status >= 500;\n }\n return idempotent;\n}\n\nfunction retryDelayMs(attempt: number, retryAfter: string | null): number {\n if (retryAfter) {\n const seconds = Number(retryAfter);\n if (Number.isFinite(seconds) && seconds >= 0) {\n return Math.min(seconds * 1000, 30_000);\n }\n }\n const base = Math.min(500 * 2 ** attempt, 8_000);\n return base + Math.random() * base * 0.2;\n}\n\nfunction sleep(ms: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, ms));\n}\n","/**\n * Build the multipart body for a file upload. Blobs and Files become file\n * parts (a File keeps its name); objects are sent as JSON text.\n */\nexport function toMultipartBody(fields: Record<string, unknown>): FormData {\n const form = new FormData();\n for (const [key, value] of Object.entries(fields)) {\n if (value === undefined || value === null) continue;\n if (value instanceof Blob) form.append(key, value);\n else if (typeof value === \"object\") form.append(key, JSON.stringify(value));\n else form.append(key, String(value));\n }\n return form;\n}\n","export function encodePathParam(name: string, value: unknown): string {\n if (typeof value !== \"string\" || value.trim() === \"\") {\n throw new Error(`Missing required path parameter: ${name}`);\n }\n return encodeURIComponent(value);\n}\n","import type { BaseRequestOptions } from \"./BaseClient\";\nimport type { operations } from \"./generated/openapi\";\nimport type { OperationQuery, SuccessData } from \"./types\";\n\nexport type ProductScanRequest = Omit<\n OperationQuery<operations[\"get_v1_products\"]>,\n \"includeSummary\"\n>;\ntype ProductPage = SuccessData<operations[\"get_v1_products\"]>;\ntype ProductItem = NonNullable<ProductPage[\"items\"]>[number];\n\nexport type ProductScanProgress = {\n pagesRead: number;\n itemsRead: number;\n complete: boolean;\n /** Persist with the page's items. Pass unchanged to scan() to resume. */\n next: ProductScanRequest | null;\n};\nexport type ProductScanResult = ProductScanProgress & { items: ProductItem[] };\nexport type ProductScanOptions = Omit<BaseRequestOptions, \"queryParams\"> & {\n /** Pages per chunk, 1–100. Defaults to one; no unbounded catalog downloads. */\n maxPages?: number;\n onProgress?: (\n progress: ProductScanProgress,\n items: ProductItem[],\n ) => void | Promise<void>;\n};\n\nexport class ProductScanError extends Error {\n constructor(\n readonly partial: ProductScanResult,\n readonly cause: unknown,\n ) {\n super(\n \"Product scan failed. Resume from partial.next after saving partial.items.\",\n );\n this.name = \"ProductScanError\";\n }\n}\n\n/** One sequential, bounded chunk. Completed pages survive failures via partial. */\nexport async function scanProducts(\n list: (\n request: OperationQuery<operations[\"get_v1_products\"]>,\n options?: BaseRequestOptions,\n ) => PromiseLike<ProductPage>,\n request: ProductScanRequest,\n options: ProductScanOptions = {},\n): Promise<ProductScanResult> {\n const { maxPages = 1, onProgress, ...requestOptions } = options;\n if (!Number.isInteger(maxPages) || maxPages < 1 || maxPages > 100)\n throw new RangeError(\"maxPages must be an integer between 1 and 100.\");\n if (\"queryParams\" in requestOptions)\n throw new TypeError(\"Pass scan filters in the request, not queryParams.\");\n let next: ProductScanRequest | null = { limit: 50, offset: 0, ...request };\n const items: ProductItem[] = [];\n let pagesRead = 0;\n const progress = (): ProductScanProgress => ({\n pagesRead,\n itemsRead: items.length,\n complete: next === null,\n next: next ? { ...next } : null,\n });\n try {\n while (next && pagesRead < maxPages) {\n requestOptions.abortSignal?.throwIfAborted();\n const current: ProductScanRequest = next;\n const page = await list(\n { ...current, includeSummary: false },\n requestOptions,\n );\n const pagination = page.pagination;\n if (\n !Array.isArray(page.items) ||\n typeof pagination?.hasMore !== \"boolean\"\n )\n throw new Error(\"Invalid product page response.\");\n if (pagination.hasMore) {\n if (\n !page.items.length ||\n !Number.isInteger(pagination.nextOffset) ||\n pagination.nextOffset! <= (current.offset ?? 0) ||\n (pagination.nextCursor != null &&\n (typeof pagination.nextCursor !== \"string\" ||\n !pagination.nextCursor ||\n pagination.nextCursor === current.cursor))\n )\n throw new Error(\"Product pagination did not advance.\");\n const continuation: ProductScanRequest = {\n ...current,\n offset: pagination.nextOffset!,\n };\n if (pagination.nextCursor) continuation.cursor = pagination.nextCursor;\n else delete continuation.cursor;\n next = continuation;\n } else next = null;\n items.push(...page.items);\n pagesRead++;\n await onProgress?.(progress(), [...page.items]);\n }\n return { ...progress(), items };\n } catch (cause) {\n throw new ProductScanError({ ...progress(), items }, cause);\n }\n}\n","import type { BaseRequestOptions } from \"./BaseClient\";\nimport { OmniError } from \"./errors\";\nimport type { operations } from \"./generated/openapi\";\nimport type { OperationPath, OperationBody, SuccessData } from \"./types\";\n\ntype PublishOperation = operations[\"post_v1_products_by_productid_publish\"];\ntype DelistOperation = operations[\"post_v1_products_by_productid_delist\"];\ntype UpdateOperation = operations[\"patch_v1_products_by_productid\"];\ntype ProductRequest<Operation> = OperationPath<Operation> &\n OperationBody<Operation>;\n\nexport type BatchPublishProductsRequest = OperationBody<PublishOperation> & {\n productIds: readonly string[];\n};\nexport type BatchDelistProductsRequest = OperationBody<DelistOperation> & {\n productIds: readonly string[];\n};\nexport type BatchUpdateProductsRequest = {\n /** One update per product; duplicate product IDs are rejected before any writes. */\n updates: readonly ProductRequest<UpdateOperation>[];\n};\nexport type ProductBatchOptions = BaseRequestOptions & {\n /** Concurrent product requests, 1–10. Defaults to 3. */\n concurrency?: number;\n};\nexport type ProductBatchItemResult<T> = {\n /** Requested ID, even when the server resolves a variant to its parent listing. */\n productId: string;\n success: boolean;\n /** False when cancelled before this product's request started. */\n attempted: boolean;\n data?: T;\n /** Original HTTP/transport error, or an error for an unsuccessful API response. */\n error?: unknown;\n jobIds: string[];\n};\nexport type ProductBatchResult<T> = {\n /** All requests succeeded/queued; marketplace job completion is separate. */\n success: boolean;\n productIds: string[];\n succeededCount: number;\n failedCount: number;\n results: ProductBatchItemResult<T>[];\n /** Every returned job/batch/inventory handle, deduplicated in result order. */\n jobIds: string[];\n};\nexport type BatchPublishProductsResult = ProductBatchResult<\n SuccessData<PublishOperation>\n>;\nexport type BatchDelistProductsResult = ProductBatchResult<\n SuccessData<DelistOperation>\n>;\nexport type BatchUpdateProductsResult = ProductBatchResult<\n SuccessData<UpdateOperation>\n>;\n\n/** Bound the input before deduplication, so accidental catalog-sized calls fail locally. */\nfunction validateItems(items: readonly unknown[]): void {\n if (!Array.isArray(items) || items.length < 1 || items.length > 100)\n throw new RangeError(\"Provide between 1 and 100 products per batch.\");\n}\n\nfunction normalizeProductId(value: unknown): string {\n if (typeof value !== \"string\" || !value.trim() || value.trim().length > 160)\n throw new TypeError(\n \"Each product ID must be a nonempty string of at most 160 characters.\",\n );\n return value.trim();\n}\n\nfunction requestsForIds<T extends { productIds: readonly string[] }>(\n request: T,\n) {\n if (\"productId\" in request)\n throw new TypeError(\"Use productIds, not productId, for a batch.\");\n const { productIds, ...shared } = request;\n validateItems(productIds);\n return [...new Set(Array.from(productIds, normalizeProductId))].map(\n (productId) => ({\n ...shared,\n productId,\n }),\n );\n}\n\nconst record = (value: unknown): Record<string, unknown> =>\n value !== null && typeof value === \"object\"\n ? (value as Record<string, unknown>)\n : {};\n\nfunction jobIdsFrom(value: unknown): string[] {\n const response = record(value);\n const data = record(response.data);\n const targets = Array.isArray(data.results) ? data.results.map(record) : [];\n return [\n ...new Set(\n [\n response.jobId,\n data.jobBatchId,\n ...targets.flatMap((target) => [\n target.jobId,\n ...(Array.isArray(target.correlations)\n ? target.correlations.map((correlation) => record(correlation).id)\n : []),\n ]),\n ].filter((id): id is string => typeof id === \"string\" && id.length > 0),\n ),\n ];\n}\n\nasync function runProductBatch<Request extends { productId: string }, Response>(\n operation: (\n request: Request,\n options?: BaseRequestOptions,\n ) => PromiseLike<Response>,\n requests: Request[],\n successKey: \"ok\" | \"success\",\n options: ProductBatchOptions = {},\n): Promise<ProductBatchResult<Response>> {\n const { concurrency = 3, ...requestOptions } = options;\n if (!Number.isInteger(concurrency) || concurrency < 1 || concurrency > 10)\n throw new RangeError(\"concurrency must be an integer between 1 and 10.\");\n const results = new Array<ProductBatchItemResult<Response>>(requests.length);\n let next = 0;\n const worker = async () => {\n while (next < requests.length) {\n const index = next++;\n const request = requests[index]!;\n let attempted = false;\n try {\n requestOptions.abortSignal?.throwIfAborted();\n attempted = true;\n const data = await operation(request, requestOptions);\n const success = record(data)[successKey] === true;\n results[index] = {\n productId: request.productId,\n success,\n attempted,\n data,\n jobIds: jobIdsFrom(data),\n ...(success ? {} : { error: new OmniError({ body: data }) }),\n };\n } catch (error) {\n results[index] = {\n productId: request.productId,\n success: false,\n attempted,\n error,\n jobIds: jobIdsFrom(\n error instanceof OmniError ? error.body : undefined,\n ),\n };\n }\n }\n };\n await Promise.all(\n Array.from({ length: Math.min(concurrency, requests.length) }, worker),\n );\n const succeededCount = results.filter((result) => result.success).length;\n return {\n success: succeededCount === requests.length,\n productIds: requests.map((request) => request.productId),\n succeededCount,\n failedCount: requests.length - succeededCount,\n results,\n jobIds: [...new Set(results.flatMap((result) => result.jobIds))],\n };\n}\n\nexport function batchPublishProducts(\n publish: (\n request: ProductRequest<PublishOperation>,\n options?: BaseRequestOptions,\n ) => PromiseLike<SuccessData<PublishOperation>>,\n request: BatchPublishProductsRequest,\n options?: ProductBatchOptions,\n): Promise<BatchPublishProductsResult> {\n return runProductBatch(publish, requestsForIds(request), \"ok\", options);\n}\n\nexport function batchDelistProducts(\n delist: (\n request: ProductRequest<DelistOperation>,\n options?: BaseRequestOptions,\n ) => PromiseLike<SuccessData<DelistOperation>>,\n request: BatchDelistProductsRequest,\n options?: ProductBatchOptions,\n): Promise<BatchDelistProductsResult> {\n return runProductBatch(delist, requestsForIds(request), \"ok\", options);\n}\n\nexport function batchUpdateProducts(\n update: (\n request: ProductRequest<UpdateOperation>,\n options?: BaseRequestOptions,\n ) => PromiseLike<SuccessData<UpdateOperation>>,\n request: BatchUpdateProductsRequest,\n options?: ProductBatchOptions,\n): Promise<BatchUpdateProductsResult> {\n if (\"productId\" in request || \"productIds\" in request)\n throw new TypeError(\"Use updates for a batch of catalog edits.\");\n validateItems(request.updates);\n const seen = new Set<string>();\n const updates = Array.from(request.updates, (update) => {\n const productId = normalizeProductId(update?.productId);\n if (seen.has(productId))\n throw new TypeError(\"Provide only one update per product ID.\");\n seen.add(productId);\n return { ...update, productId };\n });\n return runProductBatch(update, updates, \"success\", options);\n}\n","import type { OmniHttp } from \"./core/fetcher\";\nimport { OmniError } from \"./errors\";\nimport type { BaseRequestOptions } from \"./BaseClient\";\n\nconst SUCCESS_STATUSES = new Set([\n \"completed\",\n \"complete\",\n \"succeeded\",\n \"success\",\n]);\nconst FAILURE_STATUSES = new Set([\"failed\", \"error\"]);\nconst CANCELLED_STATUSES = new Set([\"cancelled\", \"canceled\"]);\nconst TERMINAL_STATUSES = new Set([\n ...SUCCESS_STATUSES,\n ...FAILURE_STATUSES,\n ...CANCELLED_STATUSES,\n]);\n\nexport type WaitForJobRequest = {\n jobId: string;\n organizationId?: string;\n};\n\nexport type WaitForJobOptions = BaseRequestOptions & {\n intervalMs?: number;\n timeoutInSeconds?: number;\n};\n\nexport class JobFailedError extends OmniError {\n readonly jobStatus: string;\n constructor(jobStatus: string, body: unknown) {\n super({\n message: `Job ended with status \"${jobStatus}\"`,\n body,\n });\n this.name = \"JobFailedError\";\n this.jobStatus = jobStatus;\n }\n}\n\nexport function readJobStatus(payload: unknown): string | undefined {\n if (!payload || typeof payload !== \"object\") return undefined;\n const record = payload as Record<string, unknown>;\n const nested = record.data;\n if (nested && typeof nested === \"object\") {\n const nestedStatus = (nested as Record<string, unknown>).status;\n if (typeof nestedStatus === \"string\" && nestedStatus.trim()) {\n return nestedStatus;\n }\n }\n if (typeof record.status === \"string\" && record.status.trim()) {\n return record.status;\n }\n return undefined;\n}\n\nexport async function waitForJob(\n http: OmniHttp,\n request: WaitForJobRequest,\n options?: WaitForJobOptions,\n): Promise<unknown> {\n const intervalMs = options?.intervalMs ?? 2000;\n const timeoutMs = (options?.timeoutInSeconds ?? 300) * 1000;\n const started = Date.now();\n\n while (true) {\n const result = await http.requestWithRaw<unknown>({\n method: \"GET\",\n path: `/api/v1/jobs/${encodeURIComponent(request.jobId)}`,\n query: request.organizationId\n ? { organizationId: request.organizationId }\n : undefined,\n timeoutInSeconds: options?.timeoutInSeconds,\n maxRetries: options?.maxRetries,\n abortSignal: options?.abortSignal,\n queryParams: options?.queryParams,\n headers: options?.headers,\n });\n const status = readJobStatus(result.data)?.toLowerCase();\n if (status && TERMINAL_STATUSES.has(status)) {\n if (SUCCESS_STATUSES.has(status)) return result.data;\n throw new JobFailedError(status, result.data);\n }\n if (Date.now() - started + intervalMs > timeoutMs) {\n throw new OmniError({\n message: `Timed out waiting for job ${request.jobId}`,\n body: result.data,\n });\n }\n await new Promise((resolve) => setTimeout(resolve, intervalMs));\n }\n}\n","/**\n * Auto-generated from docs/openapi.json. Do not edit.\n *\n * Resource methods take one request object and use\n * `get`/`list`/`create`-style names.\n */\n\nimport type { BaseRequestOptions } from \"../BaseClient\";\nimport { mergeRequestOptions, type OmniHttp } from \"../core/fetcher\";\nimport type { HttpResponsePromise } from \"../core/http-response-promise\";\nimport { toMultipartBody } from \"../core/multipart\";\nimport { encodePathParam } from \"../core/path\";\nimport {\n scanProducts,\n type ProductScanRequest,\n type ProductScanOptions,\n type ProductScanResult,\n} from \"../products\";\nimport {\n batchPublishProducts,\n batchDelistProducts,\n batchUpdateProducts,\n type BatchPublishProductsRequest,\n type BatchDelistProductsRequest,\n type BatchUpdateProductsRequest,\n type BatchPublishProductsResult,\n type BatchDelistProductsResult,\n type BatchUpdateProductsResult,\n type ProductBatchOptions,\n} from \"../product-batches\";\nimport type {\n OperationBody,\n OperationPath,\n OperationQuery,\n SuccessData,\n} from \"../types\";\nimport {\n waitForJob,\n type WaitForJobOptions,\n type WaitForJobRequest,\n} from \"../jobs\";\nimport type { operations } from \"./openapi\";\n\nexport class AgentsGeneralClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Invoke the Omni agent\n *\n * Run the general Omni agent and wait until it completes, pauses for approval, or fails. Requires `agents:invoke`.\n\nA waiting call can take several minutes; raise the client timeout. Send `decisions` with the same `thread_id` to approve or reject a paused run. Omit `config.enabled_tools` to use the organization's agent tools. Attach images on the latest user message as `{ type: \"image\", url }` HTTP(S) URLs.\n *\n * `POST /api/v1/agents/general/invoke`\n */\n invoke(\n request: OperationBody<operations[\"post_v1_agents_general_invoke\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_agents_general_invoke\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/agents/general/invoke\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Start an Omni agent run\n *\n * Queue the general Omni agent and return immediately with the run in `queued` state. Poll the URL in the `Location` header (`GET /api/v1/agents/general/runs/{runId}`), honoring `Retry-After`. Requires `agents:invoke`. The request body matches invoke.\n *\n * `POST /api/v1/agents/general/runs`\n */\n start(\n request: OperationBody<operations[\"post_v1_agents_general_runs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_agents_general_runs\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/agents/general/runs\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get an Omni agent run\n *\n * Read a queued, running, completed, paused, or failed Omni agent run. Requires `agents:invoke`.\n *\n * `GET /api/v1/agents/general/runs/{runId}`\n */\n getRun(\n request: OperationPath<operations[\"get_v1_agents_general_runs_by_runid\"]> &\n OperationQuery<operations[\"get_v1_agents_general_runs_by_runid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_agents_general_runs_by_runid\"]>\n > {\n const { runId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/agents/general/runs/${encodePathParam(\"runId\", runId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class AgentsClient {\n readonly general: AgentsGeneralClient;\n constructor(protected readonly _http: OmniHttp) {\n this.general = new AgentsGeneralClient(this._http);\n }\n}\n\nexport class AnalyticsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Ads Analytics\n *\n * Ad spend, attributed sales, ROAS, and ACOS over the last 28 days, and per-product sales and ad metrics for today, yesterday, 7-day and 28-day averages, and the same day one and four weeks ago. Matches the Ads page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. The periods count back from the end of the range.\n *\n * `GET /api/v1/analytics/ads`\n */\n getAds(\n request: OperationQuery<operations[\"get_v1_analytics_ads\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_ads\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/ads\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get AI Traffic Analytics\n *\n * Visits and crawls from AI assistants and search engines: totals, a daily trend, breakdowns by source, route, country, and product, and recent events. Matches the AI Traffic page. Requires `analytics:read`.\n\nA range covers at most 365 days; a longer one is shortened to the last 365 days. Read the applied range from `data.filters`.\n *\n * `GET /api/v1/analytics/ai-traffic`\n */\n getAiTraffic(\n request: OperationQuery<operations[\"get_v1_analytics_ai_traffic\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_analytics_ai_traffic\"]>\n > {\n const {\n organizationId,\n from,\n to,\n timeZone,\n source,\n trafficType,\n route,\n country,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/ai-traffic\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n source,\n trafficType,\n route,\n country,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Video and LIVE Analytics\n *\n * Views, product clicks, orders, and GMV from shoppable videos and LIVE streams, by day, by content type, and per video. Matches the Video / LIVE page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/content`\n */\n getContent(\n request: OperationQuery<operations[\"get_v1_analytics_content\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_content\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/content\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Order Analytics\n *\n * Order KPIs with their change against the previous period, a daily trend, sales by order status and by marketplace, and the top products by net sales. Repeat buyers are counted but not listed. Matches the Orders analysis page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/orders`\n */\n getOrders(\n request: OperationQuery<operations[\"get_v1_analytics_orders\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_orders\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/orders\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Growth Overview\n *\n * Sales, traffic, and profit KPIs with their change against the previous period, a daily trend, the traffic funnel, sales by channel, top and lagging products, and ranked next actions. Matches the Growth Intelligence overview page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/overview`\n */\n getOverview(\n request: OperationQuery<operations[\"get_v1_analytics_overview\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_overview\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/overview\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Pricing Analytics\n *\n * Selling products with their margin, velocity, stock cover, prices, competitor median, and a pricing recommendation. Matches the Pricing page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/pricing`\n */\n getPricing(\n request: OperationQuery<operations[\"get_v1_analytics_pricing\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_pricing\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/pricing\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Product Analytics\n *\n * Per-product sales, traffic, price, stock, profit, and ad performance, ranked by net sales, with ranked insights. Pass `productId` for specific products, for example on a product page. Matches the Products page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/products`\n */\n getProducts(\n request: OperationQuery<operations[\"get_v1_analytics_products\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_products\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n q,\n productId,\n limit,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/products\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n q,\n productId,\n limit,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Profit Analytics\n *\n * Revenue, costs, fees, and profit with a waterfall, cost breakdowns, a daily trend, the most and least profitable products, and products missing a cost price. Session members also need finance access. Matches the P&L Analysis page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/profit`\n */\n getProfit(\n request: OperationQuery<operations[\"get_v1_analytics_profit\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_profit\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n sku,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/profit\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n sku,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Business Report\n *\n * The management summary: headline KPIs, top products, sales by marketplace, alerts, settlement totals, and data quality. Matches the Business Reports page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/reports`\n */\n getReports(\n request: OperationQuery<operations[\"get_v1_analytics_reports\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_reports\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/reports\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Store Analytics\n *\n * Seller Centre shop metrics: visitors, page views, followers, the placed, paid, and confirmed buyer funnel, a daily trend, and the app and web split. Matches the Analytics (Seller Centre) page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/stores`\n */\n getStores(\n request: OperationQuery<operations[\"get_v1_analytics_stores\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_stores\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/stores\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Traffic Analytics\n *\n * Impressions, page views, visitors, add-to-cart, and conversion, with the funnel, a daily trend, products ranked by lost conversion, diagnostics, and the videos that drive traffic. Matches the Traffic page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/traffic`\n */\n getTraffic(\n request: OperationQuery<operations[\"get_v1_analytics_traffic\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_traffic\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/traffic\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class AopClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get AOP configuration\n *\n * Retrieve prompt, agent, structured inputs/output, and notification settings. Requires `aops:read`.\n *\n * `GET /api/v1/aop/{aopId}/config`\n */\n getConfig(\n request: OperationPath<operations[\"get_v1_aop_by_aopid_config\"]> &\n OperationQuery<operations[\"get_v1_aop_by_aopid_config\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_aop_by_aopid_config\"]>\n > {\n const { aopId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/aop/${encodePathParam(\"aopId\", aopId)}/config`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Overwrite AOP configuration\n *\n * Updates AOP configuration. Omitted fields keep their current values. Send `user_notification_configs: null` to clear notification overrides. Requires `aops:write`.\n *\n * `PUT /api/v1/aop/{aopId}/config`\n */\n updateConfig(\n request: OperationPath<operations[\"put_v1_aop_by_aopid_config\"]> &\n OperationBody<operations[\"put_v1_aop_by_aopid_config\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"put_v1_aop_by_aopid_config\"]>\n > {\n const { aopId, ...body } = request ?? {};\n return this._http.request({\n method: \"PUT\",\n path: `/api/v1/aop/${encodePathParam(\"aopId\", aopId)}/config`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Execute an AOP\n *\n * Start an AOP run and return immediately with a `thread_id`. Poll `GET /api/v1/threads/{thread_id}/status`. Requires `aops:write`.\n *\n * `POST /api/v1/aop/{aopId}/execute`\n */\n execute(\n request: OperationPath<operations[\"post_v1_aop_by_aopid_execute\"]> &\n OperationBody<operations[\"post_v1_aop_by_aopid_execute\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_aop_by_aopid_execute\"]>\n > {\n const { aopId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/aop/${encodePathParam(\"aopId\", aopId)}/execute`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create AOP\n *\n * Create an organization-scoped AOP. Use `[[ placeholder ]]` in the prompt for user inputs supplied at execution time. Requires `aops:write`.\n *\n * `POST /api/v1/aop/create`\n */\n create(\n request: OperationBody<operations[\"post_v1_aop_create\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_aop_create\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/aop/create\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Retry a failed AOP execution\n *\n * Looks up a failed AOP thread, then enqueues a new run. Requires `aops:write`.\n *\n * `POST /api/v1/aop/retry`\n */\n retry(\n request: OperationBody<operations[\"post_v1_aop_retry\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_aop_retry\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/aop/retry\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ApiClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Discover a published merchant agent\n *\n * A2A 1.0 Agent Card for any configured agent published to a customer deployment. Private model settings, prompts and publisher identity are excluded.\n *\n * `GET /api/embed/{deploymentId}/.well-known/agent-card.json`\n */\n getEmbedwellKnownagentCardJson(\n request: OperationPath<\n operations[\"get_embed_by_deploymentid_well_known_agent_card_json\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<\n operations[\"get_embed_by_deploymentid_well_known_agent_card_json\"]\n >\n > {\n const { deploymentId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/embed/${encodePathParam(\"deploymentId\", deploymentId)}/.well-known/agent-card.json`,\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Call a merchant agent using A2A\n *\n * Official A2A 1.0 JSON-RPC SendMessage, GetTask and CancelTask.\n\n### Authentication\n\nUses the existing customer JWT from /api/embed/{deploymentId}/session; send the same Origin when creating and using the session.\n\n### Messages\n\nSendMessage accepts text user messages with a UUID messageId and up to 4000 characters. For asynchronous execution set configuration.returnImmediately=true and retrieve the task. Every task is bound to the customer session.\n\nBot verification and storefront protection apply. Payment proofs belong in the checkout completion endpoint, outside model messages.\n\n### Signed offers and buyer agents\n\nPayable offers in purchase-offers artifacts include checkoutJwt when the platform signing key is configured. Requests may carry a Web Bot Auth signature; the verified agent orig\n *\n * `POST /api/embed/{deploymentId}/a2a`\n */\n embeda2a(\n request: OperationPath<operations[\"post_embed_by_deploymentid_a2a\"]> &\n OperationBody<operations[\"post_embed_by_deploymentid_a2a\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_embed_by_deploymentid_a2a\"]>\n > {\n const { deploymentId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/embed/${encodePathParam(\"deploymentId\", deploymentId)}/a2a`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Manage customer-owned purchase offers\n *\n * ### Operations\n\ncreate: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe-hosted card entry.\n\n### Results and safeguards\n\nBatches return ordered per-target results, succeededCount and failedCount. At most ten unpaid offers may be held per customer. Merchant-approved currency, countries, shipping and tax terms are required. Shopify-listed products return the supported Shopify checkout handoff.\n\n### Payment\n\nCompletion reuses the existing Stripe ACP or x402 rail. Hosted card checkout requires this org\n *\n * `POST /api/embed/{deploymentId}/checkout-sessions/{operation}`\n */\n embedcheckoutSessions(\n request: OperationPath<\n operations[\"post_embed_by_deploymentid_checkout_sessions_by_operation\"]\n > &\n OperationBody<\n operations[\"post_embed_by_deploymentid_checkout_sessions_by_operation\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<\n operations[\"post_embed_by_deploymentid_checkout_sessions_by_operation\"]\n >\n > {\n const { deploymentId, operation, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/embed/${encodePathParam(\"deploymentId\", deploymentId)}/checkout-sessions/${encodePathParam(\"operation\", operation)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class BrandKitsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Brand Kits\n *\n * List full brand kits and canonical image-source websites. Requires branding:read. Supports q, limit (1–1000), and offset. Bearer credentials resolve the organization; sessions supply organizationId.\n *\n * `GET /api/v1/brand-kits`\n */\n list(\n request: OperationQuery<operations[\"get_v1_brand_kits\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_brand_kits\"]>> {\n const { organizationId, q, limit, offset } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/brand-kits\",\n query: { organizationId, q, limit, offset },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Brand Kit\n *\n * Create a full brand kit with optional imageSourceUrls. Requires branding:write. All brandKit fields are supported; omitted fields receive canonical defaults.\n\nSource websites accept HTTP(S) URLs or domain/path scopes and return normalized host/path values. The kit and sources save atomically. Use public HTTP(S) URLs for logo/icons; embedded images are rejected.\n *\n * `POST /api/v1/brand-kits`\n */\n create(\n request: OperationBody<operations[\"post_v1_brand_kits\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_brand_kits\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/brand-kits\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Brand Kit\n *\n * Delete the organization-owned kit and its saved brand image-source websites. Requires branding:write. Historical job snapshots are preserved.\n *\n * `DELETE /api/v1/brand-kits/{brandKitId}`\n */\n delete(\n request: OperationPath<operations[\"delete_v1_brand_kits_by_brandkitid\"]> &\n OperationQuery<operations[\"delete_v1_brand_kits_by_brandkitid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_brand_kits_by_brandkitid\"]>\n > {\n const { brandKitId, organizationId } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/brand-kits/${encodePathParam(\"brandKitId\", brandKitId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Brand Kit\n *\n * Read the complete kit and imageSourceUrls. Requires branding:read.\n *\n * `GET /api/v1/brand-kits/{brandKitId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_brand_kits_by_brandkitid\"]> &\n OperationQuery<operations[\"get_v1_brand_kits_by_brandkitid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_brand_kits_by_brandkitid\"]>\n > {\n const { brandKitId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/brand-kits/${encodePathParam(\"brandKitId\", brandKitId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Brand Kit\n *\n * Edit name, any nested brandKit fields, and imageSourceUrls. Requires branding:write. Nested objects merge and arrays replace; omitted fields are preserved.\n\nimageSourceUrls: [] clears websites. Renaming keeps source websites attached. Parent kit IDs must belong to this organization. Existing running jobs keep their frozen source snapshot until explicitly retried with brandKitIds.\n *\n * `PATCH /api/v1/brand-kits/{brandKitId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_brand_kits_by_brandkitid\"]> &\n OperationBody<operations[\"patch_v1_brand_kits_by_brandkitid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_brand_kits_by_brandkitid\"]>\n > {\n const { brandKitId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/brand-kits/${encodePathParam(\"brandKitId\", brandKitId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class BrandsgatewayClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Import BrandsGateway Products\n *\n * Requires catalog:write and a connected BrandsGateway account. Uses the same parameters and import service as the import_brandsgateway_products tool.\n\n### Selection\n\nChoose catalogProductIds or importAllMatching with filters. maxProducts limits new imports to 1–50 across pages (default 50); already imported products are skipped. Numeric brandIds, vendorIds (supplier warehouses), categoryIds, and conditionIds arrays match any value within each field and all supplied fields together. Omit a field for no restriction; empty arrays and legacy singular/string filters are rejected. Brands accept at most 500 IDs; other filter arrays accept at most 50 each. Broad combinations may exceed the supplier request budget and return a failure asking you to narrow the filters.\n\n### Updated dates and enrichme\n *\n * `POST /api/v1/brandsgateway/import`\n */\n importProducts(\n request: OperationBody<operations[\"post_v1_brandsgateway_import\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_brandsgateway_import\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/brandsgateway/import\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class BulkClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Catalog Operations for Session\n *\n * Read the latest 20 compact catalog-operation summaries linked to an authorized session. Requires catalog:read; product data scope is rechecked.\n *\n * `GET /api/v1/catalog/operations`\n */\n listForSession(\n request: OperationQuery<operations[\"get_v1_catalog_operations\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_catalog_operations\"]>> {\n const { organizationId, sessionId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/catalog/operations\",\n query: { organizationId, sessionId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Start Catalog Operation\n *\n * Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write. Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.\n *\n * `POST /api/v1/catalog/operations`\n */\n start(\n request: OperationBody<operations[\"post_v1_catalog_operations\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_catalog_operations\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/catalog/operations\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Catalog Operation Results\n *\n * Read ordered per-product receipts and verification evidence for up to 50 operationIds. Filter status=failed to inspect failures directly. At most 100 rows across the requested operations per page. Requires catalog:read.\n *\n * `POST /api/v1/catalog/operations/results`\n */\n results(\n request: OperationBody<operations[\"post_v1_catalog_operations_results\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_catalog_operations_results\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/catalog/operations/results\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Catalog Operation Status\n *\n * Read compact progress for up to 50 operationIds in first-requested order. Pending is incomplete, and partial failures remain explicit. Requires catalog:read. Detailed receipts are returned only by the paginated report API.\n *\n * `POST /api/v1/catalog/operations/status`\n */\n status(\n request: OperationBody<operations[\"post_v1_catalog_operations_status\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_catalog_operations_status\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/catalog/operations/status\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class CampaignsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Campaigns\n *\n * List campaigns for the authenticated organization. `stage=all` is the workspace working set: draft and running. Requires `promotions:read`.\n *\n * `GET /api/v1/campaigns`\n */\n list(\n request: OperationQuery<operations[\"get_v1_campaigns\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_campaigns\"]>> {\n const {\n organizationId,\n q,\n marketplace,\n store,\n stage,\n offset,\n limit,\n sortBy,\n sortDir,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/campaigns\",\n query: {\n organizationId,\n q,\n marketplace,\n store,\n stage,\n offset,\n limit,\n sortBy,\n sortDir,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Campaign\n *\n * Create a draft campaign. `ownerId` and `approverId` must be members of the organization, and every store must already be connected. Requires `promotions:write`.\n *\n * `POST /api/v1/campaigns`\n */\n create(\n request: OperationBody<operations[\"post_v1_campaigns\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_campaigns\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Campaign\n *\n * Read one campaign, including its plan, executions, audit, schedule, and progress. Requires `promotions:read`.\n *\n * `GET /api/v1/campaigns/{campaignId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_campaigns_by_campaignid\"]> &\n OperationQuery<operations[\"get_v1_campaigns_by_campaignid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_campaigns_by_campaignid\"]>\n > {\n const { campaignId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Change Campaign Details\n *\n * Partially edit the brief, upsert windows and promotion offers by stable id, or explicitly remove offer/window IDs. Omitted fields and children stay unchanged. Uses the campaign editor's canonical merger and marketplace validation.\n\nRunning edits build on the pending proposal and require named-approver approval before delivery. Send expectedRevision; expectedPendingVersion can guard a reviewed proposal (null for none). Requires promotions:write.\n *\n * `PATCH /api/v1/campaigns/{campaignId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_campaigns_by_campaignid\"]> &\n OperationBody<operations[\"patch_v1_campaigns_by_campaignid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_campaigns_by_campaignid\"]>\n > {\n const { campaignId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Campaign\n *\n * Replace a draft or approved plan, or propose one change to a running plan. Send `expectedRevision` from the last read. Requires `promotions:write`.\n *\n * `PUT /api/v1/campaigns/{campaignId}`\n */\n replace(\n request: OperationPath<operations[\"put_v1_campaigns_by_campaignid\"]> &\n OperationBody<operations[\"put_v1_campaigns_by_campaignid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"put_v1_campaigns_by_campaignid\"]>\n > {\n const { campaignId, ...body } = request ?? {};\n return this._http.request({\n method: \"PUT\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Act on Campaign\n *\n * Approve, start, end, resume, retry, or decide a proposed live change. Approve, run, resume, and approving a change must be called by the named approver. Requires `promotions:write`.\n *\n * `POST /api/v1/campaigns/{campaignId}/actions`\n */\n actions(\n request: OperationPath<\n operations[\"post_v1_campaigns_by_campaignid_actions\"]\n > &\n OperationBody<operations[\"post_v1_campaigns_by_campaignid_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_campaigns_by_campaignid_actions\"]>\n > {\n const { campaignId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}/actions`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Campaign Analytics\n *\n * Read the same imported-order campaign analytics as the application. Monetary totals are partitioned by currency. Optional analyticsWindow selects one campaign window; voucher utilisation limitations are explicit.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `GET /api/v1/campaigns/{campaignId}/analytics`\n */\n getAnalytics(\n request: OperationPath<\n operations[\"get_v1_campaigns_by_campaignid_analytics\"]\n > &\n OperationQuery<operations[\"get_v1_campaigns_by_campaignid_analytics\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_campaigns_by_campaignid_analytics\"]>\n > {\n const { campaignId, organizationId, analyticsWindow } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}/analytics`,\n query: { organizationId, analyticsWindow },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Campaign Notifications\n *\n * Read the executing actor's campaign notification preference.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `GET /api/v1/campaigns/{campaignId}/notifications`\n */\n getNotifications(\n request: OperationPath<\n operations[\"get_v1_campaigns_by_campaignid_notifications\"]\n > &\n OperationQuery<\n operations[\"get_v1_campaigns_by_campaignid_notifications\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_campaigns_by_campaignid_notifications\"]>\n > {\n const { campaignId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}/notifications`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Set Campaign Notifications\n *\n * Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `PUT /api/v1/campaigns/{campaignId}/notifications`\n */\n setNotifications(\n request: OperationPath<\n operations[\"put_v1_campaigns_by_campaignid_notifications\"]\n > &\n OperationBody<operations[\"put_v1_campaigns_by_campaignid_notifications\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"put_v1_campaigns_by_campaignid_notifications\"]>\n > {\n const { campaignId, ...body } = request ?? {};\n return this._http.request({\n method: \"PUT\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}/notifications`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * List Campaign Offers\n *\n * Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `GET /api/v1/campaigns/{campaignId}/offers`\n */\n listOffers(\n request: OperationPath<\n operations[\"get_v1_campaigns_by_campaignid_offers\"]\n > &\n OperationQuery<operations[\"get_v1_campaigns_by_campaignid_offers\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_campaigns_by_campaignid_offers\"]>\n > {\n const { campaignId, kind, window, review, offset, limit, organizationId } =\n request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}/offers`,\n query: { kind, window, review, offset, limit, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Act on Campaigns\n *\n * Apply one action to 1–20 reviewed targets. Approve, run, approve_and_run, end, resume, retry, approve_change, discard_change, archive, restore or delete. Requires each expectedRevision and the pending version for live-change decisions. Named-approver and current role/store checks remain enforced. Duplicates execute once; partial failures remain explicit. Starting queues durable delivery; inspect campaign executions to verify marketplace outcomes.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/campaigns/actions`\n */\n actBatch(\n request: OperationBody<operations[\"post_v1_campaigns_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_campaigns_actions\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/actions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Archive Campaigns\n *\n * Archive campaigns, or restore archived campaigns by id or by the current archived list filters. Requires `promotions:write`.\n *\n * `POST /api/v1/campaigns/archive`\n */\n archive(\n request: OperationBody<operations[\"post_v1_campaigns_archive\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_campaigns_archive\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/archive\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Campaigns\n *\n * Permanently delete archived campaigns by explicit id or by archived list filters. Requires `promotions:write`.\n *\n * `POST /api/v1/campaigns/delete`\n */\n delete(\n request: OperationBody<operations[\"post_v1_campaigns_delete\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_campaigns_delete\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/delete\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Import Campaign Workbooks\n *\n * Import 1–10 uploaded Excel document IDs. Preview defaults to true; set preview=false to save. Re-upload one document with campaignId to update a campaign. To apply a running campaign immediately, use applyChanges=true with the reviewed expectedRevision and expectedPendingVersion (null when none); only the named approver with publish permission may apply. Changed values and qualifying SKU removals use canonical marketplace validation and durable sync. Requires documents:read in addition to promotions:write. No browser session is required.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/campaigns/import`\n */\n importBriefs(\n request: OperationBody<operations[\"post_v1_campaigns_import\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_campaigns_import\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/import\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Campaign Options\n *\n * List the organization members and connected stores a campaign plan can name. Use a member `id` for `ownerId` and `approverId`. Requires `promotions:write`.\n *\n * `GET /api/v1/campaigns/options`\n */\n getOptions(\n request: OperationQuery<operations[\"get_v1_campaigns_options\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_campaigns_options\"]>> {\n const { organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/campaigns/options\",\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Resolve Campaign Promotion Selection\n *\n * Read 1–50 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/campaigns/promotion-options`\n */\n resolvePromotionOptions(\n request: OperationBody<operations[\"post_v1_campaigns_promotion_options\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_campaigns_promotion_options\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/promotion-options\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Validate Campaigns\n *\n * Read-only preflight of 1–10 saved campaign IDs or proposed plans. Uses the same readiness, connected-store and offer validation as approval. shiftToNow returns a proposed shifted plan; syncMode=campaign_start selects Full sync. Neither option saves or publishes. Save the returned plan with the reviewed revision before approve_and_run. Current marketplace delivery is separate execution evidence.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/campaigns/validate`\n */\n validate(\n request: OperationBody<operations[\"post_v1_campaigns_validate\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_campaigns_validate\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/validate\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class CatalogClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Export Catalog Items\n *\n * Cursor-page the authenticated organization's product and variant catalog for pricing systems. Requires `catalog:read`.\n\nEach item includes product-family identity, SKU/UPC, cost, current, sale, compare-at, MAP, and MSRP prices, inventory, active promotion context, and exact marketplace identifiers. Set `format=csv` for a flat catalog-intake CSV shape.\n *\n * `GET /api/v1/catalog/items`\n */\n listItems(\n request: OperationQuery<operations[\"get_v1_catalog_items\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_catalog_items\"]>> {\n const { organizationId, updatedSince, cursor, limit, format } =\n request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/catalog/items\",\n query: { organizationId, updatedSince, cursor, limit, format },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Query Catalog\n *\n * Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match. Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.\n *\n * `POST /api/v1/catalog/query`\n */\n query(\n request: OperationBody<operations[\"post_v1_catalog_query\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_catalog_query\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/catalog/query\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class CheckoutSessionsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Create Agentic Checkout Session\n *\n * Create a merchant-fulfilled checkout session, reserve inventory, and return rail-specific payment requirements. Requires an OAuth client token with `checkout:write`.\n *\n * `POST /api/v1/checkout-sessions`\n */\n create(\n request: OperationBody<operations[\"post_v1_checkout_sessions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_checkout_sessions\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/checkout-sessions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Agentic Checkout Session\n *\n * Fetch the current checkout session, cart items, totals, payment requirements, and linked order when completed.\n *\n * `GET /api/v1/checkout-sessions/{sessionId}`\n */\n get(\n request: OperationPath<\n operations[\"get_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<operations[\"get_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Agentic Checkout Session\n *\n * Update cart/contact fields, recompute totals, and refresh inventory reservations before payment. Requires `checkout:write`.\n *\n * `PATCH /api/v1/checkout-sessions/{sessionId}`\n */\n update(\n request: OperationPath<\n operations[\"patch_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<operations[\"patch_v1_checkout_sessions_by_sessionid\"]> &\n OperationBody<operations[\"patch_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Replace Agentic Checkout Session Fields\n *\n * UCP-compatible update method for cart/contact fields. The current implementation applies provided fields and leaves omitted fields unchanged. Requires `checkout:write`.\n *\n * `PUT /api/v1/checkout-sessions/{sessionId}`\n */\n replace(\n request: OperationPath<\n operations[\"put_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<operations[\"put_v1_checkout_sessions_by_sessionid\"]> &\n OperationBody<operations[\"put_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"put_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PUT\",\n path: `/api/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Cancel Agentic Checkout Session\n *\n * Cancel a ready-for-payment checkout session and release reserved inventory. This operation is exposed for UCP REST clients and requires `checkout:write`.\n *\n * `POST /api/v1/checkout-sessions/{sessionId}/cancel`\n */\n cancel(\n request: OperationPath<\n operations[\"post_v1_checkout_sessions_by_sessionid_cancel\"]\n > &\n OperationQuery<\n operations[\"post_v1_checkout_sessions_by_sessionid_cancel\"]\n > &\n Record<string, unknown>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_checkout_sessions_by_sessionid_cancel\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}/cancel`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Complete Agentic Checkout Session\n *\n * Settle the selected rail and create a native `agentic` order. Definitive settlement failures return 402. Pending confirmation locks the offer in `payment_pending`; durable recovery resumes the same attempt.\n *\n * `POST /api/v1/checkout-sessions/{sessionId}/complete`\n */\n complete(\n request: OperationPath<\n operations[\"post_v1_checkout_sessions_by_sessionid_complete\"]\n > &\n OperationQuery<\n operations[\"post_v1_checkout_sessions_by_sessionid_complete\"]\n > &\n OperationBody<\n operations[\"post_v1_checkout_sessions_by_sessionid_complete\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_checkout_sessions_by_sessionid_complete\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}/complete`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class CommerceClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Await Commerce Jobs\n *\n * Wait for a mixed batch of returned commerce correlations: inventory_job, price_event, price_book_sync, publish_job, delist_batch, store_switch, omni_delete, zalora_import, enrichment_batch, order_action and return_action.\n\n### Request limits and access\n\nMaximum 50000 entries; IDs are trimmed and duplicates collapse by kind/id in first-requested order. timeoutMs=0 reads once; bounded waits allow up to 120000ms. Catalog jobs require catalog:read; order/return jobs require orders:read; mixed batches require both. Session callers include organizationId.\n\n### Result interpretation\n\nEvery job retains its target identity, status, errors and available label artifacts. Missing or inaccessible fulfillment jobs fail explicitly. needs_review is an uncertain outcome, never automatic success or authoriz\n *\n * `POST /api/v1/commerce/jobs/await`\n */\n awaitJobs(\n request: OperationBody<operations[\"post_v1_commerce_jobs_await\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_commerce_jobs_await\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/commerce/jobs/await\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Verify Commerce State\n *\n * Perform fresh marketplace verification using the canonical services for every supported marketplace.\n\n### Targets and access\n\nFor products provide productIds plus expected, or targets[{productId,expected}] for mixed values. For order, return and price-book operations provide their returned order_action/return_action/price_book_sync correlations; product and fulfillment checks may share one request. Maximum 50000 entries per target array, with bounded concurrency. Catalog verification requires catalog:read; fulfillment verification requires orders:read; mixed batches require both. Session callers include organizationId.\n\n### Verification results\n\nMissing, unauthorized, unsupported and unconfirmed targets fail explicitly. A return decision can be confirmed while later lifecycle steps remain\n *\n * `POST /api/v1/commerce/state/verify`\n */\n verifyState(\n request: OperationBody<operations[\"post_v1_commerce_state_verify\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_commerce_state_verify\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/commerce/state/verify\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Start Commerce Verification\n *\n * Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read. Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.\n *\n * `POST /api/v1/commerce/state/verify/jobs`\n */\n startVerification(\n request: OperationBody<operations[\"post_v1_commerce_state_verify_jobs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_commerce_state_verify_jobs\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/commerce/state/verify/jobs\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class CompareClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Compare Public Products\n *\n * Compare 2 to 10 public products side-by-side across price, ACO readiness, marketplace coverage, and inventory.\n *\n * `GET /api/v1/compare`\n */\n get(\n request: OperationQuery<operations[\"get_v1_compare\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_compare\"]>> {\n const { products, language } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/compare\",\n query: { products, language },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class DirectoryClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Public Merchants\n *\n * Discover merchants with public products available through OmniCommerce's public agent APIs.\n *\n * `GET /api/v1/directory`\n */\n list(\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_directory\"]>> {\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/directory\",\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class DocumentsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Upload Document\n *\n * Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.\n\nAccepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to 10 MB, images up to 8 MB, CSV and Markdown up to 2 MB. PDFs, Word, PowerPoint, Markdown, and images are indexed in the background; poll `GET /api/v1/documents/{documentId}` until `status` is `completed`. CSV and Excel are stored for agents to read but are not indexed.\n *\n * `POST /api/v1/documents`\n */\n upload(\n request: OperationBody<operations[\"post_v1_documents\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_documents\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/documents\",\n query: undefined,\n body: toMultipartBody(body),\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Document\n *\n * Read one knowledge base document and its indexing status. Requires `documents:read`. Set includeDownloadUrl=true for a private file URL valid for five minutes, suitable for SDK file downloads. URLs are scoped to the authenticated organization and are not returned for bank statements. Responses must not be cached.\n *\n * `GET /api/v1/documents/{documentId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_documents_by_documentid\"]> &\n OperationQuery<operations[\"get_v1_documents_by_documentid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_documents_by_documentid\"]>\n > {\n const { documentId, organizationId, includeDownloadUrl } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/documents/${encodePathParam(\"documentId\", documentId)}`,\n query: { organizationId, includeDownloadUrl },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class EvaluateClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Evaluate SKU Readiness\n *\n * Score a persisted product or inline SKU payload for agentic commerce readiness, engine eligibility, and recommended fixes.\n *\n * `POST /api/v1/evaluate`\n */\n run(\n request: Record<string, unknown> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_evaluate\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/evaluate\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class FeedClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Merchant LLM Feed\n *\n * Return a plain-text, LLM-optimized merchant feed keyed by website domain.\n *\n * `GET /api/v1/feed/{domain}/llms.txt`\n */\n getLlmsTxt(\n request: OperationPath<operations[\"get_v1_feed_by_domain_llms_txt\"]> &\n OperationQuery<operations[\"get_v1_feed_by_domain_llms_txt\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_feed_by_domain_llms_txt\"]>\n > {\n const { domain, limit } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/feed/${encodePathParam(\"domain\", domain)}/llms.txt`,\n query: { limit },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ImagesClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Generate Ghost Mannequin Image\n *\n * Remove the visible mannequin from a product photo and return the generated image URL. The source image must be an HTTP(S) URL; data URIs are rejected. Authenticate with an OmniCommerce API key that has the `catalog:enrich` scope.\n *\n * `POST /api/v1/images/ghost-mannequin`\n */\n ghostMannequin(\n request: OperationBody<operations[\"post_v1_images_ghost_mannequin\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_images_ghost_mannequin\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/images/ghost-mannequin\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class InventoryClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Inventory Groups\n *\n * Read active inventory using the same canonical quantities, filters and grouping as the inventory assistant. Requires catalog:read and inventory.read permission. Organization scope comes only from the credential.\n\n### Stock and listing absence\n\nstatus=in_stock means positive available stock (on hand minus locked), with variants rolled up for product groups. unlistedMarketplaces checks every organization store and the entire saved catalog, including product/variant identities, exact catalog SKUs, and historical listings. Source marketplace/country/storeIds filters do not restrict absence evidence. All supported marketplaces are accepted.\n\nlistingPresence reports saved-catalog evidence and unknown missing-SKU families. It does not establish fresh live marketplace absence. Stock quantities fro\n *\n * `GET /api/v1/inventory`\n */\n list(\n request: OperationQuery<operations[\"get_v1_inventory\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_inventory\"]>> {\n const {\n productIds,\n query,\n marketplace,\n country,\n storeIds,\n unlistedMarketplaces,\n groupBy,\n status,\n offset,\n limit,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/inventory\",\n query: {\n productIds,\n query,\n marketplace,\n country,\n storeIds,\n unlistedMarketplaces,\n groupBy,\n status,\n offset,\n limit,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class JobsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Developer Job Status\n *\n * Fetch shared async status for developer-platform operations, including product workflow jobs, bulk CSV import jobs, Look generation jobs, import jobs, enrichment jobs, price comparison jobs, and sync jobs.\n\nPrice comparison jobs expose partial progress in data.results and their final batch result in data.result; completed means processing finished, so inspect data.result.success for comparison failures.\n *\n * `GET /api/v1/jobs/{jobId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_jobs_by_jobid\"]> &\n OperationQuery<operations[\"get_v1_jobs_by_jobid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_jobs_by_jobid\"]>> {\n const { jobId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/jobs/${encodePathParam(\"jobId\", jobId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Cancel Developer Job\n *\n * Request cancellation for a running or pending developer job.\n\nSupported jobs:\n\n- Product workflows returned by `POST /api/v1/products`\n\n- Bulk CSV imports returned by `POST /api/v1/products/bulk-import`\n\n- Look generation returned by `POST /api/v1/looks`\n\nCompleted or failed jobs cannot be cancelled and are returned with their current terminal status.\n *\n * `POST /api/v1/jobs/{jobId}/cancel`\n */\n cancel(\n request: OperationPath<operations[\"post_v1_jobs_by_jobid_cancel\"]> &\n OperationBody<operations[\"post_v1_jobs_by_jobid_cancel\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_jobs_by_jobid_cancel\"]>\n > {\n const { jobId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/jobs/${encodePathParam(\"jobId\", jobId)}/cancel`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Poll `GET /api/v1/jobs/{jobId}` until the nested job status is terminal.\n */\n wait(\n request: WaitForJobRequest,\n requestOptions?: WaitForJobOptions,\n ): Promise<unknown> {\n return waitForJob(this._http, request, requestOptions);\n }\n}\n\nexport class LooksClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Looks\n *\n * List AI-styled product Looks for the authenticated organization, newest first. Use query parameters for search, status filtering, and pagination.\n *\n * `GET /api/v1/looks`\n */\n list(\n request: OperationQuery<operations[\"get_v1_looks\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_looks\"]>> {\n const { q, status, limit, offset } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/looks\",\n query: { q, status, limit, offset },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Look\n *\n * Create a Look from existing catalog products and queue AI image generation for a fast preview. The response is asynchronous: poll `GET /api/v1/jobs/{jobId}?organizationId={organizationId}` until the `look_...` job completes, then fetch the generated Look with `GET /api/v1/looks/{lookId}`.\n *\n * `POST /api/v1/looks`\n */\n create(\n request: OperationBody<operations[\"post_v1_looks\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_looks\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/looks\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Look\n *\n * Fetch a single Look by ID, including the generated hero image URL and the shoppable product cards used in the Look.\n *\n * `GET /api/v1/looks/{lookId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_looks_by_lookid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_looks_by_lookid\"]>> {\n const { lookId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/looks/${encodePathParam(\"lookId\", lookId)}`,\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class MarketplacesClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Connected Marketplaces\n *\n * List connected marketplace stores for the authenticated organization. Results are scoped to the API key organization unless `organizationId` is supplied for session-authenticated calls.\n *\n * `GET /api/v1/marketplaces/connected`\n */\n listConnected(\n request: OperationQuery<operations[\"get_v1_marketplaces_connected\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_marketplaces_connected\"]>\n > {\n const { organizationId, marketplace, country } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/marketplaces/connected\",\n query: { organizationId, marketplace, country },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class MerchantsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Public Merchant Manifest\n *\n * Return machine-readable capability and endpoint metadata for a single public merchant.\n *\n * `GET /api/v1/merchants/{merchantId}/manifest`\n */\n getManifest(\n request: OperationPath<\n operations[\"get_v1_merchants_by_merchantid_manifest\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_merchants_by_merchantid_manifest\"]>\n > {\n const { merchantId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/merchants/${encodePathParam(\"merchantId\", merchantId)}/manifest`,\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * List Public Merchant Products\n *\n * Browse a single merchant's public product feed with optional marketplace and localization filters.\n *\n * `GET /api/v1/merchants/{merchantId}/products`\n */\n listProducts(\n request: OperationPath<\n operations[\"get_v1_merchants_by_merchantid_products\"]\n > &\n OperationQuery<operations[\"get_v1_merchants_by_merchantid_products\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_merchants_by_merchantid_products\"]>\n > {\n const { merchantId, platform, country, language, limit, offset } =\n request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/merchants/${encodePathParam(\"merchantId\", merchantId)}/products`,\n query: { platform, country, language, limit, offset },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Search Within Public Merchant Catalog\n *\n * Search within a single merchant's public product feed using the same filter model as the cross-merchant search API.\n *\n * `GET /api/v1/merchants/{merchantId}/search`\n */\n search(\n request: OperationPath<\n operations[\"get_v1_merchants_by_merchantid_search\"]\n > &\n OperationQuery<operations[\"get_v1_merchants_by_merchantid_search\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_merchants_by_merchantid_search\"]>\n > {\n const {\n merchantId,\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/merchants/${encodePathParam(\"merchantId\", merchantId)}/search`,\n query: {\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class MonitorClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Run AI Shelf Share Monitor\n *\n * Queue AI Shelf Share replay/monitoring for a product, query, or organization catalog.\n *\n * `POST /api/v1/monitor`\n */\n run(\n request: Record<string, unknown> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_monitor\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/monitor\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class OauthClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Revoke Access Token\n *\n * Revoke an OAuth bearer access token using client_secret_post authentication.\n *\n * `POST /api/v1/oauth/revoke`\n */\n revoke(\n request: OperationBody<operations[\"post_v1_oauth_revoke\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_oauth_revoke\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/oauth/revoke\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Access Token\n *\n * Exchange client credentials for an access token using OAuth 2.0 client_credentials grant. Tokens are valid for 1 hour.\n *\n * `POST /api/v1/oauth/token`\n */\n token(\n request: OperationBody<operations[\"post_v1_oauth_token\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_oauth_token\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/oauth/token\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class OrdersClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Orders\n *\n * List orders for the authenticated organization using the same filters, sorting, and pagination semantics as the workspace Orders listing page. Requires `orders:read`.\n *\n * `GET /api/v1/orders`\n */\n list(\n request: OperationQuery<operations[\"get_v1_orders\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_orders\"]>> {\n const {\n organizationId,\n q,\n status,\n marketplace,\n country,\n store,\n bundleType,\n sortBy,\n dateFrom,\n dateTo,\n limit,\n offset,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/orders\",\n query: {\n organizationId,\n q,\n status,\n marketplace,\n country,\n store,\n bundleType,\n sortBy,\n dateFrom,\n dateTo,\n limit,\n offset,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Order\n *\n * Create a native `agentic` order with line items. This operation uses the same upsert path as agentic checkout completion.\n\n### Authentication\n\nRequires `orders:write`.\n\n### Upsert behavior\n\n- Reusing an `externalOrderId` updates the existing order instead of creating a duplicate.\n- For one-row-per-SKU integrations, use the marketplace order ID as `externalOrderId` and the row ID as `items[].externalOrderItemId`.\n- When `totalAmount` is omitted, OmniCommerce recomputes it from all order lines after the upsert.\n\n### Pricing and catalog defaults\n\n- Each line can provide `price`, `unitPrice`, `paidPrice`, and `costPrice`.\n- When `productId` is provided, missing price or currency values may resolve from the product catalog.\n- An explicit `costPrice` updates `product_data.costPrice` and is snaps\n *\n * `POST /api/v1/orders`\n */\n create(\n request: OperationBody<operations[\"post_v1_orders\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_orders\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/orders\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Order\n *\n * Get one order by its OmniCommerce UUID for the authenticated organization.\n\n### Authentication\n\nRequires `orders:read`.\n\n### Response\n\nThe organization-scoped detail includes:\n\n- Line items and normalized status\n- Buyer and contact fields\n- Shipping and billing addresses\n- Return context\n- Finance breakdown\n- Settlement projection, when available\n\nOrders outside the authenticated organization are not exposed and return `404 Not Found`.\n *\n * `GET /api/v1/orders/{orderId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_orders_by_orderid\"]> &\n OperationQuery<operations[\"get_v1_orders_by_orderid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_orders_by_orderid\"]>> {\n const { orderId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/orders/${encodePathParam(\"orderId\", orderId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Order\n *\n * Update a native **agentic** order.\n\n### Authentication\n\nRequires `orders:write`.\n\n### Supported changes\n\n- External order identifiers, status, currency, and country\n- `totalAmount`, `shippingFee`, and `discountAmount`\n- Metadata and `orderCreatedAt`\n- Line identifiers, prices, COGS, currency, status, and quantity\n\n### Line upserts\n\n- A matching `externalOrderItemId` updates the existing line.\n- A new `externalOrderItemId` with `productName` and `quantity` appends a line.\n- When lines change and `totalAmount` is omitted, OmniCommerce recomputes the total from all lines.\n\n### Country resolution\n\nWhen `country` is omitted and the stored country is empty, OmniCommerce may derive it from an unambiguous resulting order currency.\n\n### Restrictions and events\n\nMarketplace-owned orders from Shopee,\n *\n * `PATCH /api/v1/orders/{orderId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_orders_by_orderid\"]> &\n OperationBody<operations[\"patch_v1_orders_by_orderid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_orders_by_orderid\"]>\n > {\n const { orderId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/orders/${encodePathParam(\"orderId\", orderId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Order Action Options\n *\n * Ask the marketplace which choices an action needs, such as pickup or drop-off for `ship`. Requires `orders:write`.\n\nSend the chosen choice's `payload` with `POST /api/v1/orders/{orderId}/actions`.\n *\n * `GET /api/v1/orders/{orderId}/action-options`\n */\n getActionOptions(\n request: OperationPath<\n operations[\"get_v1_orders_by_orderid_action_options\"]\n > &\n OperationQuery<operations[\"get_v1_orders_by_orderid_action_options\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_orders_by_orderid_action_options\"]>\n > {\n const { orderId, organizationId, action } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/orders/${encodePathParam(\"orderId\", orderId)}/action-options`,\n query: { organizationId, action },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * List Order Actions\n *\n * The order's 20 most recent action jobs, newest first, plus its latest successful label job. Requires `orders:read`.\n\nPoll this after queueing an action. A succeeded `labels` job lists its label files in `labels`.\n *\n * `GET /api/v1/orders/{orderId}/actions`\n */\n listActions(\n request: OperationPath<operations[\"get_v1_orders_by_orderid_actions\"]> &\n OperationQuery<operations[\"get_v1_orders_by_orderid_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_orders_by_orderid_actions\"]>\n > {\n const { orderId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/orders/${encodePathParam(\"orderId\", orderId)}/actions`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Queue Order Action\n *\n * Ship, cancel, generate shipping labels for, or update tracking on a marketplace order. Requires `orders:write`.\n\nThe marketplace call runs in the background: the response is `202` with `jobId`; poll `GET /api/v1/orders/{orderId}/actions`. A repeated `idempotencyKey` returns `200` with the original job.\n *\n * `POST /api/v1/orders/{orderId}/actions`\n */\n queueAction(\n request: OperationPath<operations[\"post_v1_orders_by_orderid_actions\"]> &\n OperationBody<operations[\"post_v1_orders_by_orderid_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_orders_by_orderid_actions\"]>\n > {\n const { orderId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/orders/${encodePathParam(\"orderId\", orderId)}/actions`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Check Order Action Options\n *\n * ### Authorization\n\nRequires orders:write.\n\n### Choices\n\nRead current marketplace choices for ship, cancel, labels or update_tracking for 1–50 order UUIDs using repeated orderIds query parameters. The shared order service checks status, store connection and marketplace capability. Results preserve first-requested order, with explicit per-order errors. Use the exact choice payload and supply any fields marked requiresInput. An unsupported marketplace operation is an explicit failure, not a silently skipped order. Ship arranges shipment; labels generates printable files. Fulfillment behavior is identical to the existing single-order API and workspace UI.\n *\n * `GET /api/v1/orders/actions`\n */\n listBatchActionOptions(\n request: OperationQuery<operations[\"get_v1_orders_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_orders_actions\"]>> {\n const { orderIds, action, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/orders/actions\",\n query: { orderIds, action, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Process Order Actions\n *\n * ### Authorization\n\nRequires orders:write.\n\n### Batch submission\n\nQueue 1–50 distinct order operations with a UUID requestId. Each operation has orderId, action (ship, cancel, labels or update_tracking), and optional payload. Use exact marketplace choices from GET /api/v1/orders/actions and supply required carrier, tracking, pickup/drop-off or cancellation details. One operation per order is allowed in a batch; later stages such as labels after shipment require another submission. All targets are authorized before any enqueue. Per-order failures are isolated; results retain request order and include every accepted jobId. data.success means all submissions were accepted, not that marketplace processing finished.\n\n### Recovery and completion\n\nRetain requestId and unchanged operations for retr\n *\n * `POST /api/v1/orders/actions`\n */\n processActions(\n request: OperationBody<operations[\"post_v1_orders_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_orders_actions\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/orders/actions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Order Action Jobs\n *\n * ### Authorization\n\nRequires orders:read.\n\n### Outcomes and labels\n\nRead every requested order action job in one batch of 1–50 UUIDs using repeated jobIds parameters. Results preserve first-requested order. data.success is true only when every requested job succeeded; failedCount includes failed and not_supported, while pendingCount includes queued and running. Successful label jobs contain downloadable files in labels[]. A missing or cross-organization job returns 404; current store restrictions apply to all targets. The top-level completed status describes the lookup, not job completion. No raw provider acknowledgements are exposed.\n *\n * `GET /api/v1/orders/actions/jobs`\n */\n getActionJobs(\n request: OperationQuery<operations[\"get_v1_orders_actions_jobs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_orders_actions_jobs\"]>\n > {\n const { jobIds, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/orders/actions/jobs\",\n query: { jobIds, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Picking List\n *\n * ### Authorization\n\nRequires orders:read. API keys resolve organization scope from their credential; session callers include organizationId.\n\n### PDF output\n\nCreate a private PDF picking list for 1–500 order UUIDs, trimmed and deduplicated in first-requested order. Missing or inaccessible orders fail the complete selection without creating a partial document. The same grouping, product quantities, SKU/variation and currency-labeled prices as the workspace Orders page are used. timeZone accepts an IANA time zone; omitted API requests use UTC. This does not arrange shipment or change orders.\n\nThe result contains structured list data, every orderId, a saved documentId and a signed HTTPS downloadUrl valid until expiresAt (five minutes). Generate a fresh list for a new download URL. Download the\n *\n * `POST /api/v1/orders/picking-list`\n */\n createPickingList(\n request: OperationBody<operations[\"post_v1_orders_picking_list\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_orders_picking_list\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/orders/picking-list\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class OrganizationsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Create Organization\n *\n * Create a new organization for the signed-in user. This endpoint uses first-party session authentication because API keys are scoped to an existing organization.\n *\n * `POST /api/v1/organizations`\n */\n create(\n request: OperationBody<operations[\"post_v1_organizations\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_organizations\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/organizations\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class PriceBooksClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Price Book Rules\n *\n * List marketplace price book rules for the authenticated organization. A rule applies either a buyer formula or a markup percent to the catalog price at publish time, by platform and optional store/country. Requires `price_books:read`.\n *\n * `GET /api/v1/price-books`\n */\n list(\n request: OperationQuery<operations[\"get_v1_price_books\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_price_books\"]>> {\n const { organizationId, platform, enabledOnly } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/price-books\",\n query: { organizationId, platform, enabledOnly },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Price Book Rule\n *\n * Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.\n\n`expression` is the buyer formula and replaces markup percent. `price` in that formula is the catalog price, not cost price. Without an expression, `marginValue` is the markup percent.\n *\n * `POST /api/v1/price-books`\n */\n create(\n request: OperationBody<operations[\"post_v1_price_books\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_price_books\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/price-books\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Price Book Rule\n *\n * Delete a marketplace price book rule by ID. Requires `price_books:write`.\n *\n * `DELETE /api/v1/price-books/{ruleId}`\n */\n delete(\n request: OperationPath<operations[\"delete_v1_price_books_by_ruleid\"]> &\n OperationQuery<operations[\"delete_v1_price_books_by_ruleid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_price_books_by_ruleid\"]>\n > {\n const { ruleId, organizationId } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/price-books/${encodePathParam(\"ruleId\", ruleId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Price Book Rule\n *\n * Fetch one marketplace price book rule by ID. Requires `price_books:read`.\n *\n * `GET /api/v1/price-books/{ruleId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_price_books_by_ruleid\"]> &\n OperationQuery<operations[\"get_v1_price_books_by_ruleid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_price_books_by_ruleid\"]>\n > {\n const { ruleId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/price-books/${encodePathParam(\"ruleId\", ruleId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Price Book Rule\n *\n * Update store, country, markup, buyer formula, rounding, currency, or enabled flag for a price book rule. Platform cannot be changed; create a new rule instead. Requires `price_books:write`.\n *\n * `PATCH /api/v1/price-books/{ruleId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_price_books_by_ruleid\"]> &\n OperationQuery<operations[\"patch_v1_price_books_by_ruleid\"]> &\n OperationBody<operations[\"patch_v1_price_books_by_ruleid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_price_books_by_ruleid\"]>\n > {\n const { ruleId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/price-books/${encodePathParam(\"ruleId\", ruleId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Preview Channel List Price\n *\n * Compute channel list price from a canonical list price using matching enabled rules (or a forced ruleId). Requires `price_books:read`.\n *\n * `POST /api/v1/price-books/preview`\n */\n preview(\n request: OperationBody<operations[\"post_v1_price_books_preview\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_price_books_preview\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/price-books/preview\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ProductCategoriesClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Recommend Marketplace Product Categories\n *\n * Suggest best-fit marketplace categories and category attribute values for a persisted product using semantic taxonomy search. Authenticate with an OmniCommerce API key as `Authorization: Bearer omni_sk_...`.\n *\n * `POST /api/v1/manage-product-category/recommend`\n */\n recommend(\n request: OperationBody<\n operations[\"post_v1_manage_product_category_recommend\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_manage_product_category_recommend\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/manage-product-category/recommend\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ProductsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Products\n *\n * List products for the authenticated organization with optional filters and pagination. Authenticate with an API key or OAuth bearer token. The organization is taken from that credential; do not send `organizationId`.\n\n### Stock and variants\n\nRows are in `items`. Read catalog stock from `items[].stockQuantity`: parent rows already aggregate their non-deleted variants, and virtual bundles use component availability with any manual cap. Null means unknown, not zero. A row with `variantCount` above 0 has variants; fetch them from `GET /api/v1/products/{productId}`. List rows do not contain `inventoryQuantity`, `inventory.quantity`, or an embedded `variants` array.\n *\n * `GET /api/v1/products`\n */\n list(\n request: OperationQuery<operations[\"get_v1_products\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_products\"]>> {\n const {\n status,\n marketplace,\n country,\n q,\n sku,\n minPrice,\n maxPrice,\n sortBy,\n limit,\n offset,\n store,\n storeKeys,\n brands,\n bundleType,\n language,\n hasImage,\n stock,\n duplicateStatus,\n duplicateType,\n publishedFrom,\n publishedTo,\n publishedTimeZone,\n cursor,\n includeSummary,\n detail,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/products\",\n query: {\n status,\n marketplace,\n country,\n q,\n sku,\n minPrice,\n maxPrice,\n sortBy,\n limit,\n offset,\n store,\n storeKeys,\n brands,\n bundleType,\n language,\n hasImage,\n stock,\n duplicateStatus,\n duplicateType,\n publishedFrom,\n publishedTo,\n publishedTimeZone,\n cursor,\n includeSummary,\n detail,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Product\n *\n * Queue a single-product create workflow for the authenticated organization. Product enrichment is disabled by default; set `workflow.enrich` to `true` to enable it.\n\n### Request behavior\n\n- `product` contains developer-supplied fields. Unknown fields are preserved as enrichment context.\n- SKU is the unique product upsert identifier.\n- Externally hosted HTTP(S) images are copied to managed R2 storage.\n- `targetMarketplaces` and `targetCountries` are optional; enrichment can run without publishing targets.\n\n### Asynchronous result\n\nThe API returns a job ID. Poll `GET /api/v1/jobs/{jobId}` for completion. Product creation, image ingestion, enrichment, and taxonomy assignment run in the same product workflow job. ACO generation runs separately when enabled; poll `result.geoJobId` for its comple\n *\n * `POST /api/v1/products`\n */\n create(\n request: OperationBody<operations[\"post_v1_products\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_products\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Product\n *\n * Soft-delete a product by ID. The product will be marked as deleted but not permanently removed. Call again on a deleted product to permanently delete it. Supports API key Bearer token authentication.\n *\n * `DELETE /api/v1/products/{productId}`\n */\n delete(\n request: OperationPath<operations[\"delete_v1_products_by_productid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_products_by_productid\"]>\n > {\n const { productId } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}`,\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Product\n *\n * Retrieve a single product by ID for the authenticated organization.\n\nAuthenticate with an API key using Bearer token authentication.\n\nWhen available, the response includes generated Agentic Commerce Optimization (ACO) data:\n\n- Profile metadata and FAQs\n- Localization content and cultural notes\n- Intent queries and signals\n- Sources and claims\n\nA parent product returns its variants in `variants`, with each variant's option values, price, stock, image, and marketplace listings.\n *\n * `GET /api/v1/products/{productId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_products_by_productid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_products_by_productid\"]>\n > {\n const { productId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}`,\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Product\n *\n * Update an existing product by ID. Only provided fields will be updated. Supports API key Bearer token authentication.\n *\n * `PATCH /api/v1/products/{productId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_products_by_productid\"]> &\n OperationBody<operations[\"patch_v1_products_by_productid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_products_by_productid\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Product Cost\n *\n * Set catalog cost for one simple product or variant UUID. Cost is Omni-only and never syncs to marketplaces. Prefer `POST /api/v1/products/cost` for Windmill or other bulk jobs.\n\nRequires `catalog:write`. When `costPriceCurrency` differs from the product selling currency and `costPriceFxRate` is omitted, Omni stores an FX quote on the product.\n *\n * `PATCH /api/v1/products/{productId}/cost`\n */\n updateCost(\n request: OperationPath<operations[\"patch_v1_products_by_productid_cost\"]> &\n OperationBody<operations[\"patch_v1_products_by_productid_cost\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_products_by_productid_cost\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/cost`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delist Product\n *\n * Queue delist for one product on the marketplaces you name. `marketplaces` accepts one or more of shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, and ebay. Each named marketplace must already have a listing; other channels are left untouched. Omit `marketplaces` to delist every existing listing. This does not delete the OmniCommerce product.\n\nPoll GET /api/v1/jobs/{jobId} until data.status is succeeded, partial, or failed. Accepted means the job was queued, not that the marketplace has removed the listing.\n *\n * `POST /api/v1/products/{productId}/delist`\n */\n delist(\n request: OperationPath<operations[\"post_v1_products_by_productid_delist\"]> &\n OperationBody<operations[\"post_v1_products_by_productid_delist\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_by_productid_delist\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/delist`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Upload Product Image\n *\n * Upload one image to a product's or variant's gallery as multipart/form-data. Requires `catalog:write`.\n\nJPEG, PNG, WebP, AVIF, or HEIC up to 8 MB; WebP, AVIF, and HEIC are stored as JPEG. The image is added at `position`, or at the end. Publish the product to send the new gallery to marketplaces.\n *\n * `POST /api/v1/products/{productId}/images`\n */\n uploadImage(\n request: OperationPath<operations[\"post_v1_products_by_productid_images\"]> &\n OperationBody<operations[\"post_v1_products_by_productid_images\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_by_productid_images\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/images`,\n query: undefined,\n body: toMultipartBody(body),\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Product Inventory\n *\n * Update canonical on-hand inventory for a simple product or variant UUID. Multi-variant parent products must be updated through their variant IDs. A successful quantity change emits `product.inventory.changed` to matching developer webhook subscriptions.\n\n### Authorization\n\nRequires an API credential with `catalog:write`. OmniCommerce derives `organizationId` from that credential; the request body cannot select or override an organization. ERP-managed and multi-source inventory keeps its existing ownership protections.\n\n### Marketplace sync\n\nThe update is Omni-only by default. Set `syncToMarketplaces` to `true` to create one durable inventory outbox job per marketplace account. Omit `targets` to sync every enabled, published account for the product, or provide exact `{ platform, accountId }\n *\n * `PATCH /api/v1/products/{productId}/inventory`\n */\n updateInventory(\n request: OperationPath<\n operations[\"patch_v1_products_by_productid_inventory\"]\n > &\n OperationBody<operations[\"patch_v1_products_by_productid_inventory\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_products_by_productid_inventory\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/inventory`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Product Listings\n *\n * Where a product is listed: each marketplace's store, live or delisted state, item id, buyer-facing URL, and the latest publish attempt with any rejection details. Requires `catalog:read`.\n\nPoll after `POST /api/v1/products/{productId}/publish`.\n *\n * `GET /api/v1/products/{productId}/listings`\n */\n getListings(\n request: OperationPath<\n operations[\"get_v1_products_by_productid_listings\"]\n > &\n OperationQuery<operations[\"get_v1_products_by_productid_listings\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_products_by_productid_listings\"]>\n > {\n const { productId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/listings`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Product Price\n *\n * Update the canonical catalog price for a simple product or variant UUID. Multi-variant parent products must be updated through their variant IDs. A successful change emits `product.price.changed` to matching developer webhook subscriptions.\n\n### Authorization\n\nRequires an API credential with `catalog:write`. OmniCommerce derives `organizationId` from that credential; the request body cannot select or override an organization.\n\n### Marketplace sync\n\nThe update is Omni-only by default. Set `syncToMarketplaces` to `true` to queue durable marketplace work. Omit `targets` to sync every enabled, published account for the product, or provide exact `{ platform, accountId }` targets. Every explicit target is validated before the catalog changes. The response contains pollable job IDs and immediate\n *\n * `PATCH /api/v1/products/{productId}/price`\n */\n updatePrice(\n request: OperationPath<operations[\"patch_v1_products_by_productid_price\"]> &\n OperationBody<operations[\"patch_v1_products_by_productid_price\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_products_by_productid_price\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/price`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Publish Product\n *\n * ### Publishing\n\nQueue durable marketplace publish/update jobs for a product. Omit marketplaces to use every enabled or already listed marketplace, or name the marketplaces to target. Omit updateFields for a full publish with live/draft visibility. Set updateFields to update only saved values for those fields on existing listings with assigned stores; other fields and listing visibility stay unchanged. No new listing is created by a selected-field update.\n\n### Marketplace capabilities\n\nSEO is Shopify-only; highlights support Lazada, TikTok and Amazon; attributes exclude WhatsApp. Category-only updates require a full publish on TikTok and Amazon. Unsupported combinations and missing listings/stores return explicit per-marketplace failures while valid targets continue.\n\n### Completion\n\nAccept\n *\n * `POST /api/v1/products/{productId}/publish`\n */\n publish(\n request: OperationPath<\n operations[\"post_v1_products_by_productid_publish\"]\n > &\n OperationBody<operations[\"post_v1_products_by_productid_publish\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_by_productid_publish\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/publish`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Bulk Import Products from JSON or CSV\n *\n * Queue a bulk product import for the authenticated organization.\n\nSupply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing or incompatible size systems and other required options block publishing. Each row remains a standalone product; no child variants are created for the default.\n\n### Input options\n\n- Upload a CSV (2 MiB) or JSON products file (8 MiB) using `multipart/form-data`.\n- Send JSON with a `products` array of 1–5,000 flat product objects (8 MiB request maximum).\n- Send JSON with inline `csvText`.\n- Send\n *\n * `POST /api/v1/products/bulk-import`\n */\n bulkImport(\n request: OperationBody<operations[\"post_v1_products_bulk_import\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_bulk_import\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/bulk-import\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Import Retry Progress\n *\n * Read actual row and review generation progress using an importretry_... handle. Requires catalog:read. success is null while running, true only for successful completion, and false for missing targets, dispatch failure, or stage failures.\n\nRow IDs, review request IDs, errors, and per-stage counts remain available. The same handle works with GET /api/v1/jobs/{jobId} and SDK jobs.wait.\n *\n * `GET /api/v1/products/bulk-import/retries/{retryJobId}`\n */\n getBulkImportRetry(\n request: OperationPath<\n operations[\"get_v1_products_bulk_import_retries_by_retryjobid\"]\n > &\n OperationQuery<\n operations[\"get_v1_products_bulk_import_retries_by_retryjobid\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_products_bulk_import_retries_by_retryjobid\"]>\n > {\n const { retryJobId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/products/bulk-import/retries/${encodePathParam(\"retryJobId\", retryJobId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Retry Failed Import or Review Jobs\n *\n * Retry 1–20 jobs with durable background execution. Requires catalog:write.\n\n### Targets\n\njobIds accepts import UUIDs, bulk_... developer job handles, or review_<batch UUID> for a Review job (including jobs created in the app). Inputs are trimmed, bounded, and deduplicated in first-requested order.\n\n### Retry scope\n\nstages=all retries failed source rows and linked review stages; stages=images retries failed review images only. Completed work, applied products, cancelled stages, and active work are preserved. Optional brandKitIds replaces image-source selection using the kits' current organization-owned websites. Omit it to keep frozen sources. To resume interrupted dispatch, pass an importretry_... handle without overrides; the saved target plan is reused.\n\n### Results\n\nUse the returned ord\n *\n * `POST /api/v1/products/bulk-import/retry`\n */\n retryBulkImport(\n request: OperationBody<operations[\"post_v1_products_bulk_import_retry\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_bulk_import_retry\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/bulk-import/retry\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Compare Product Market Prices\n *\n * Research market offers for a batch of OmniCommerce simple product or variant UUIDs using the same BigGo API and Serper Shopping fallback as pricing strategy. Read-only; no prices are changed.\n\n### Authorization\n\nRequires catalog:read. API keys resolve organizationId from the credential; session callers must provide an authorized organizationId.\n\n### Durable batches\n\nAccepts 1–50 input entries, trimmed and deduplicated in first-requested order. Returns HTTP 202 and a durable jobId. Retrieve progress and results from GET /api/v1/products/compare-prices/jobs/{jobId} or await jobs.wait in the SDK with a suitable timeout. A client timeout does not cancel the job. Use variant IDs for products with variants. Each listing market has its own durable search step; searches use bounded concurrency and\n *\n * `POST /api/v1/products/compare-prices`\n */\n comparePrices(\n request: OperationBody<operations[\"post_v1_products_compare_prices\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_compare_prices\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/compare-prices\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Product Price Comparison\n *\n * Read durable batch progress and ordered per-product results. Requires catalog:read and the job's organization.\n\ncompleted means every target was processed; inspect result.success, succeededCount, failedCount, and each result for partial failures. Session callers must supply organizationId.\n *\n * `GET /api/v1/products/compare-prices/jobs/{jobId}`\n */\n getPriceComparison(\n request: OperationPath<\n operations[\"get_v1_products_compare_prices_jobs_by_jobid\"]\n > &\n OperationQuery<\n operations[\"get_v1_products_compare_prices_jobs_by_jobid\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_products_compare_prices_jobs_by_jobid\"]>\n > {\n const { jobId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/products/compare-prices/jobs/${encodePathParam(\"jobId\", jobId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Batch Update Product Cost\n *\n * Set catalog cost price and currency for one or more products. Cost is Omni-only and never syncs to marketplaces.\n\nEach update targets `productId` or `sku` (Omni `products.sku`). Provide `costPrice` with `costPriceCurrency` when the source amount is not in the product selling currency. If `costPriceFxRate` is omitted and the currencies differ, Omni quotes FX via the canonical FX service and stores the rate on the product.\n\n### Authorization\n\nRequires `catalog:write`. `organizationId` comes from the credential; the body cannot select an organization.\n\n### Limits\n\n`updates` is required, 1–200 items. Duplicate product IDs fail after the first occurrence. `costPrice: null` clears cost and FX.\n *\n * `POST /api/v1/products/cost`\n */\n updateCosts(\n request: OperationBody<operations[\"post_v1_products_cost\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_products_cost\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/cost\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Count Products\n *\n * Count matching catalog parent products using the Products page's canonical filters and authorization, without loading rows, pricing, or location data.\n\nProducts are counted once even when multiple listings match. This does not count variants or verify live marketplace status. status is the catalog lifecycle/derived view. All marketplaces are supported. Use storeKeys for exact marketplace/country/account identity.\n\nAuthenticate with a read-only catalog credential; organization comes only from that credential.\n *\n * `GET /api/v1/products/count`\n */\n count(\n request: OperationQuery<operations[\"get_v1_products_count\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_products_count\"]>> {\n const {\n status,\n marketplace,\n country,\n q,\n sku,\n minPrice,\n maxPrice,\n store,\n storeKeys,\n brands,\n bundleType,\n language,\n hasImage,\n stock,\n duplicateStatus,\n duplicateType,\n publishedFrom,\n publishedTo,\n publishedTimeZone,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/products/count\",\n query: {\n status,\n marketplace,\n country,\n q,\n sku,\n minPrice,\n maxPrice,\n store,\n storeKeys,\n brands,\n bundleType,\n language,\n hasImage,\n stock,\n duplicateStatus,\n duplicateType,\n publishedFrom,\n publishedTo,\n publishedTimeZone,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Queue Product Enrichment\n *\n * Requires catalog:enrich. Queue content enrichment for 1–1,000 existing Omni product IDs across all supported marketplaces. Returns 202 after queue submission without awaiting AI completion or publication.\n\n### Enrichment options\n\nFields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections.\n\nautoApplyHighConfidence defaults to false.\n *\n * `POST /api/v1/products/enrich`\n */\n enrich(\n request: OperationBody<operations[\"post_v1_products_enrich\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_products_enrich\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/enrich\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /** Read a bounded chunk without summary classification; persist progress to resume. */\n scan(\n request: ProductScanRequest = {},\n options?: ProductScanOptions,\n ): Promise<ProductScanResult> {\n return scanProducts(\n (page, requestOptions) => this.list(page, requestOptions),\n request,\n options,\n );\n }\n\n /**\n * Publish saved products; updateFields limits writes to selected fields on existing listings.\n * Accepts 1–100 entries; concurrency is 1–10 (default 3).\n * productIds are trimmed and deduplicated in first-requested order.\n * Omit marketplaces for all eligible marketplaces, or preserve the requested targets.\n * Returns success, productIds, succeededCount, failedCount, ordered results and jobIds.\n * Results retain each response/error, even for partial failures. Success means submitted,\n * not marketplace-verified. Preserve typed correlations from the responses for commerce.awaitJobs.\n * These client-side requests are not atomic or a durable server batch. Keep this process\n * alive during submission and persist receipts before the next chunk. Request options\n * apply per product, not to the entire batch. An abortSignal stops unstarted submissions.\n */\n batchPublish(\n request: BatchPublishProductsRequest,\n options?: ProductBatchOptions,\n ): Promise<BatchPublishProductsResult> {\n return batchPublishProducts(\n (item, requestOptions) => this.publish(item, requestOptions),\n request,\n options,\n );\n }\n\n /**\n * Delist products using their eligible or explicitly selected marketplaces.\n * Accepts 1–100 entries; concurrency is 1–10 (default 3).\n * productIds are trimmed and deduplicated in first-requested order.\n * Omit marketplaces for all eligible marketplaces, or preserve the requested targets.\n * Returns success, productIds, succeededCount, failedCount, ordered results and jobIds.\n * Results retain each response/error, even for partial failures. Success means submitted,\n * not marketplace-verified. Preserve typed correlations from the responses for commerce.awaitJobs.\n * These client-side requests are not atomic or a durable server batch. Keep this process\n * alive during submission and persist receipts before the next chunk. Request options\n * apply per product, not to the entire batch. An abortSignal stops unstarted submissions.\n */\n batchDelist(\n request: BatchDelistProductsRequest,\n options?: ProductBatchOptions,\n ): Promise<BatchDelistProductsResult> {\n return batchDelistProducts(\n (item, requestOptions) => this.delist(item, requestOptions),\n request,\n options,\n );\n }\n\n /**\n * Save per-product catalog edits; publish saved fields separately when requested.\n * Accepts 1–100 entries; concurrency is 1–10 (default 3).\n * Each update uses productId and normal update fields; duplicate IDs are rejected.\n * Submit price/currency changes separately from other product fields.\n * Returns success, productIds, succeededCount, failedCount, ordered results and jobIds.\n * Results retain each response/error, even for partial failures. Success means submitted,\n * not marketplace-verified. Preserve typed correlations from the responses for commerce.awaitJobs.\n * These client-side requests are not atomic or a durable server batch. Keep this process\n * alive during submission and persist receipts before the next chunk. Request options\n * apply per product, not to the entire batch. An abortSignal stops unstarted submissions.\n */\n batchUpdate(\n request: BatchUpdateProductsRequest,\n options?: ProductBatchOptions,\n ): Promise<BatchUpdateProductsResult> {\n return batchUpdateProducts(\n (item, requestOptions) => this.update(item, requestOptions),\n request,\n options,\n );\n }\n}\n\nexport class PromotionsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Promotions\n *\n * List central promotions for the authenticated organization with filters and offset pagination matching the workspace Promotions listing. Requires `promotions:read`.\n *\n * `GET /api/v1/promotions`\n */\n list(\n request: OperationQuery<operations[\"get_v1_promotions\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_promotions\"]>> {\n const {\n organizationId,\n campaign,\n q,\n status,\n marketplace,\n store,\n sortBy,\n sortDir,\n limit,\n offset,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/promotions\",\n query: {\n organizationId,\n campaign,\n q,\n status,\n marketplace,\n store,\n sortBy,\n sortDir,\n limit,\n offset,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Promotion\n *\n * Create a central promotion targeting connected stores. Requires `promotions:write`. Fixed-amount discounts resolve currency from the selected store countries.\n *\n * `POST /api/v1/promotions`\n */\n create(\n request: OperationBody<operations[\"post_v1_promotions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_promotions\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Promotion\n *\n * Delete a promotion by ID. Requires `promotions:write`.\n *\n * `DELETE /api/v1/promotions/{promotionId}`\n */\n delete(\n request: OperationPath<operations[\"delete_v1_promotions_by_promotionid\"]> &\n OperationQuery<operations[\"delete_v1_promotions_by_promotionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_promotions_by_promotionid\"]>\n > {\n const { promotionId, organizationId } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Promotion\n *\n * Fetch one promotion by ID, including effective status. Requires `promotions:read`.\n *\n * `GET /api/v1/promotions/{promotionId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_promotions_by_promotionid\"]> &\n OperationQuery<operations[\"get_v1_promotions_by_promotionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_promotions_by_promotionid\"]>\n > {\n const { promotionId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Promotion\n *\n * Update promotion fields (name, discount, schedule, status, stores). Requires `promotions:write`.\n *\n * `PATCH /api/v1/promotions/{promotionId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_promotions_by_promotionid\"]> &\n OperationQuery<operations[\"patch_v1_promotions_by_promotionid\"]> &\n OperationBody<operations[\"patch_v1_promotions_by_promotionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_promotions_by_promotionid\"]>\n > {\n const { promotionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Preview Promotion Prices\n *\n * Read canonical effective prices for up to 50 products, optionally scoped to an exact marketplace, store and country. Uses the same authoring permissions as the application's preview. Does not publish or change prices.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/{promotionId}/preview`\n */\n preview(\n request: OperationPath<\n operations[\"post_v1_promotions_by_promotionid_preview\"]\n > &\n OperationBody<operations[\"post_v1_promotions_by_promotionid_preview\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_by_promotionid_preview\"]>\n > {\n const { promotionId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}/preview`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Unassign Products from Promotion\n *\n * Remove product assignments and queue marketplace teardown. Requires `promotions:write`.\n *\n * `DELETE /api/v1/promotions/{promotionId}/products`\n */\n removeProducts(\n request: OperationPath<\n operations[\"delete_v1_promotions_by_promotionid_products\"]\n > &\n OperationQuery<\n operations[\"delete_v1_promotions_by_promotionid_products\"]\n > &\n OperationBody<operations[\"delete_v1_promotions_by_promotionid_products\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_promotions_by_promotionid_products\"]>\n > {\n const { promotionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}/products`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * List Promotion Assignments\n *\n * List products assigned to a promotion. Requires `promotions:read`.\n *\n * `GET /api/v1/promotions/{promotionId}/products`\n */\n listProducts(\n request: OperationPath<\n operations[\"get_v1_promotions_by_promotionid_products\"]\n > &\n OperationQuery<operations[\"get_v1_promotions_by_promotionid_products\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_promotions_by_promotionid_products\"]>\n > {\n const { promotionId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}/products`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Assign Products to Promotion\n *\n * Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication. Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.\n *\n * `POST /api/v1/promotions/{promotionId}/products`\n */\n addProducts(\n request: OperationPath<\n operations[\"post_v1_promotions_by_promotionid_products\"]\n > &\n OperationQuery<operations[\"post_v1_promotions_by_promotionid_products\"]> &\n OperationBody<operations[\"post_v1_promotions_by_promotionid_products\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_by_promotionid_products\"]>\n > {\n const { promotionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}/products`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Retry Marketplace Delivery\n *\n * Run marketplace delivery again after a failure, for example once a store is reconnected. Requires `promotions:write`.\n\nYou do not need this to publish a promotion: creating or activating it, editing it while active or scheduled, and assigning products already deliver it, and pausing, ending, or archiving removes it. A retry brings each marketplace back in line with the promotion's current status.\n *\n * `POST /api/v1/promotions/{promotionId}/retry`\n */\n retry(\n request: OperationPath<\n operations[\"post_v1_promotions_by_promotionid_retry\"]\n > &\n OperationQuery<operations[\"post_v1_promotions_by_promotionid_retry\"]> &\n OperationBody<operations[\"post_v1_promotions_by_promotionid_retry\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_by_promotionid_retry\"]>\n > {\n const { promotionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}/retry`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Promotions with Products\n *\n * Create 1–50 promotions using the shared flat promotion-write contract, with qualifying products and per-product discounts. Set promotion.status=draft explicitly when preparing drafts; otherwise the canonical creation flow activates promotions and requires publish permission. Saved IDs and delivery evidence are retained on partial delivery failure; retry those IDs rather than creating duplicates.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/batch`\n */\n createBatch(\n request: OperationBody<operations[\"post_v1_promotions_batch\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_promotions_batch\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/batch\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Find Promotion Campaigns\n *\n * Search campaign options with assigned promotions in the authenticated organization.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `GET /api/v1/promotions/campaign-options`\n */\n getCampaignOptions(\n request: OperationQuery<\n operations[\"get_v1_promotions_campaign_options\"]\n > = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_promotions_campaign_options\"]>\n > {\n const { organizationId, q } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/promotions/campaign-options\",\n query: { organizationId, q },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Promotion Marketplace Capabilities\n *\n * Report every canonical marketplace and promotion kind, including native, projected, browser-AOP and unsupported capabilities and voucher subtypes. WhatsApp's lack of promotion publishing is explicit.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `GET /api/v1/promotions/capabilities`\n */\n getCapabilities(\n request: OperationQuery<operations[\"get_v1_promotions_capabilities\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_promotions_capabilities\"]>\n > {\n const { organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/promotions/capabilities\",\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Promotions\n *\n * Delete 1–500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/delete`\n */\n deleteBatch(\n request: OperationBody<operations[\"post_v1_promotions_delete\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_promotions_delete\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/delete\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Read Promotion Delivery\n *\n * Read exact store/assignment delivery evidence for 1–50 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/delivery`\n */\n getDelivery(\n request: OperationBody<operations[\"post_v1_promotions_delivery\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_delivery\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/delivery\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Find Eligible Promotion Products\n *\n * Search or check up to 50 product IDs using canonical promotion assignment eligibility for the selected exact stores. Draft/unlisted products can be eligible for planning; live marketplace availability is rechecked during delivery.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/product-options`\n */\n getProductOptions(\n request: OperationBody<operations[\"post_v1_promotions_product_options\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_product_options\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/product-options\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Set Promotion Statuses\n *\n * Activate/publish, pause or archive 1–500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/status`\n */\n setStatuses(\n request: OperationBody<operations[\"post_v1_promotions_status\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_promotions_status\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/status\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Validate Promotions\n *\n * Read-only validation of 1–50 saved promotion IDs or proposed definitions and product IDs. Reports marketplace terms, connected-store targeting and qualifying-product issues per target. Publishing still revalidates current state and can encounter marketplace API rejections.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/validate`\n */\n validate(\n request: OperationBody<operations[\"post_v1_promotions_validate\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_validate\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/validate\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ReturnsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Returns\n *\n * List normalized, PII-free marketplace returns with SKU-level lines. Requires `returns:read`. Use updatedSince and cursor for bootstrap/recovery alongside return webhooks.\n *\n * `GET /api/v1/returns`\n */\n list(\n request: OperationQuery<operations[\"get_v1_returns\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_returns\"]>> {\n const {\n organizationId,\n marketplace,\n accountId,\n externalOrderId,\n updatedSince,\n cursor,\n limit,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/returns\",\n query: {\n organizationId,\n marketplace,\n accountId,\n externalOrderId,\n updatedSince,\n cursor,\n limit,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Return\n *\n * Get one normalized, PII-free return by OmniCommerce UUID. Requires `returns:read`; another organization's return returns 404.\n *\n * `GET /api/v1/returns/{returnId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_returns_by_returnid\"]> &\n OperationQuery<operations[\"get_v1_returns_by_returnid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_returns_by_returnid\"]>\n > {\n const { returnId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/returns/${encodePathParam(\"returnId\", returnId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Check Return Actions\n *\n * ### Authorization\n\nRequires orders:write.\n\n### Eligibility\n\nRead live marketplace decisions for 1–50 OmniCommerce return UUIDs using repeated returnIds query parameters. Refreshes the saved return state through the same service as the order UI. All targets are organization- and store-scoped before marketplace access. Results preserve first-requested order; one provider failure does not block another store. data.success describes eligibility checks, not whether an action is available. Completed, cancelled and other terminal returns have no actions. Check actions.length and limitation; never infer eligibility from status alone. Amazon and WhatsApp currently return explicit processing limitations. Other marketplaces expose only decisions supported by their current API state. No buyer remarks,\n *\n * `GET /api/v1/returns/actions`\n */\n listActions(\n request: OperationQuery<operations[\"get_v1_returns_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_returns_actions\"]>> {\n const { returnIds, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/returns/actions\",\n query: { returnIds, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Process Returns\n *\n * ### Authorization\n\nRequires orders:write.\n\n### Submit decisions\n\nQueue 1–50 selected return decisions, including a one-element batch for a single return. Use only actionId/version pairs from a fresh eligibility check. Identical duplicate return operations are deduplicated in first-requested order; conflicting duplicates are rejected. requestId is a UUID idempotency key: retry the same key and unchanged operations after a transport failure. An active matching decision is reused; conflicting active decisions return 409. Returns HTTP 202 with every returnId and jobId. The durable worker rechecks current permissions, store identity, eligibility and version immediately before writing, then verifies the marketplace result. Follow links.poll or GET /api/v1/returns/actions/jobs with every jobIds e\n *\n * `POST /api/v1/returns/actions`\n */\n process(\n request: OperationBody<operations[\"post_v1_returns_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_returns_actions\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/returns/actions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Return Action Jobs\n *\n * ### Authorization\n\nRequires orders:read.\n\n### Job outcomes\n\nRead the current state of 1–50 return-processing job UUIDs in one request using repeated jobIds parameters. Use every job ID returned by submission. Results preserve first-requested order. pendingCount counts queued, running and submitting; succeededCount counts succeeded; failedCount includes failed and needs_review. data.success is true only if every requested job succeeded. The top-level completed status refers to this lookup, not to the jobs. Missing or cross-organization jobs return 404; jobs outside assigned stores are forbidden. Evidence contains accepted/verified flags and before/after marketplace statuses, without raw provider payloads.\n *\n * `GET /api/v1/returns/actions/jobs`\n */\n getActionJobs(\n request: OperationQuery<operations[\"get_v1_returns_actions_jobs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_returns_actions_jobs\"]>\n > {\n const { jobIds, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/returns/actions/jobs\",\n query: { jobIds, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Order Returns\n *\n * Requires orders:read. Read stored return requests for 1–50 order UUIDs using repeated orderIds query parameters.\n\n### Return identity\n\nResults preserve first-requested order and include distinct active and historical return requests. processingEligible is a local candidate flag, not live eligibility. Pass returnId values to GET /api/v1/returns/actions before choosing a decision. Every order is authorized before reading returns, including store restrictions; no buyer data is exposed.\n *\n * `GET /api/v1/returns/orders`\n */\n listForOrders(\n request: OperationQuery<operations[\"get_v1_returns_orders\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_returns_orders\"]>> {\n const { orderIds, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/returns/orders\",\n query: { orderIds, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ReviewsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Reviews\n *\n * List marketplace product reviews, newest first unless `sortBy` says otherwise. Requires `reviews:read`.\n\nUse `priority=unreplied` for a reply queue. `replyRestriction` is null when a reply will be accepted.\n *\n * `GET /api/v1/reviews`\n */\n list(\n request: OperationQuery<operations[\"get_v1_reviews\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_reviews\"]>> {\n const {\n organizationId,\n q,\n marketplace,\n status,\n priority,\n store,\n productId,\n sortBy,\n limit,\n offset,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/reviews\",\n query: {\n organizationId,\n q,\n marketplace,\n status,\n priority,\n store,\n productId,\n sortBy,\n limit,\n offset,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Review\n *\n * Read one review by its OmniCommerce UUID. Requires `reviews:read`.\n *\n * `GET /api/v1/reviews/{reviewId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_reviews_by_reviewid\"]> &\n OperationQuery<operations[\"get_v1_reviews_by_reviewid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_reviews_by_reviewid\"]>\n > {\n const { reviewId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/reviews/${encodePathParam(\"reviewId\", reviewId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Reply to Review\n *\n * Reply to one review identified by its OmniCommerce UUID in the URL. Requires `reviews:write`. Supply `reply` or set `generateWithAi: true`. `submit` defaults to true; set false with AI generation to return a draft without posting. Optional `instructions` guide AI writing. AI generation uses organization AI credits.\n\nRead `data.submitted` for confirmed marketplace submission. Generated text is retained when submission fails. Unsupported marketplaces return their capability limitation. Check review state before retrying an unconfirmed submission. Amazon review requests are separate.\n *\n * `POST /api/v1/reviews/{reviewId}/reply`\n */\n reply(\n request: OperationPath<operations[\"post_v1_reviews_by_reviewid_reply\"]> &\n OperationBody<operations[\"post_v1_reviews_by_reviewid_reply\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_reviews_by_reviewid_reply\"]>\n > {\n const { reviewId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/reviews/${encodePathParam(\"reviewId\", reviewId)}/reply`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ScriptsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Organization Scripts\n *\n * Discover custom Windmill scripts and their script__ tool names. Uses the same search and active/draft/archived filters as the app. Requires scripts:read. Default all excludes archived scripts; use status=archived to see archives.\n *\n * `GET /api/v1/scripts`\n */\n list(\n request: OperationQuery<operations[\"get_v1_scripts\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_scripts\"]>> {\n const { organizationId, q, status } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/scripts\",\n query: { organizationId, q, status },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Script\n *\n * Create an inactive TypeScript script. Optional source uses the canonical parser and 64 KiB UTF-8 limit; omitted source uses the starter. Requires scripts:write. Deploy explicitly before execution.\n *\n * `POST /api/v1/scripts`\n */\n create(\n request: OperationBody<operations[\"post_v1_scripts\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_scripts\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/scripts\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Archive Script\n *\n * Archive and deactivate an organization script, retaining version and run history. Requires scripts:write and the automations.delete capability for user credentials.\n *\n * `DELETE /api/v1/scripts/{scriptId}`\n */\n archive(\n request: OperationPath<operations[\"delete_v1_scripts_by_scriptid\"]> &\n OperationQuery<operations[\"delete_v1_scripts_by_scriptid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_scripts_by_scriptid\"]>\n > {\n const { scriptId, organizationId } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Script\n *\n * Read script metadata, tool name, and all immutable versions with argument/output JSON schemas. Requires scripts:read. The activeVersionId identifies the current execution schema.\n *\n * `GET /api/v1/scripts/{scriptId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_scripts_by_scriptid\"]> &\n OperationQuery<operations[\"get_v1_scripts_by_scriptid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_scripts_by_scriptid\"]>\n > {\n const { scriptId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Script\n *\n * Update metadata, approval mode, or draft source. Saving source does not change the active immutable deployment. Requires scripts:write.\n *\n * `PATCH /api/v1/scripts/{scriptId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_scripts_by_scriptid\"]> &\n OperationBody<operations[\"patch_v1_scripts_by_scriptid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_scripts_by_scriptid\"]>\n > {\n const { scriptId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Activate Script Version\n *\n * Switch to a previously accepted immutable version belonging to this script, including rollback. Draft/failed versions cannot be activated. Requires scripts:write.\n *\n * `POST /api/v1/scripts/{scriptId}/activate`\n */\n activate(\n request: OperationPath<operations[\"post_v1_scripts_by_scriptid_activate\"]> &\n OperationBody<operations[\"post_v1_scripts_by_scriptid_activate\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_scripts_by_scriptid_activate\"]>\n > {\n const { scriptId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}/activate`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Deploy Script\n *\n * Validate TypeScript source and create an immutable Windmill version. activate defaults to true. activate=false saves a draft version; it cannot execute until redeployed and accepted. Requires scripts:write. Does not enable the tool for agents automatically.\n *\n * `POST /api/v1/scripts/{scriptId}/deploy`\n */\n deploy(\n request: OperationPath<operations[\"post_v1_scripts_by_scriptid_deploy\"]> &\n OperationBody<operations[\"post_v1_scripts_by_scriptid_deploy\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_scripts_by_scriptid_deploy\"]>\n > {\n const { scriptId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}/deploy`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * List Script Runs\n *\n * Read recent runs and result/error references through the canonical run service. Requires scripts:read.\n *\n * `GET /api/v1/scripts/{scriptId}/runs`\n */\n listRuns(\n request: OperationPath<operations[\"get_v1_scripts_by_scriptid_runs\"]> &\n OperationQuery<operations[\"get_v1_scripts_by_scriptid_runs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_scripts_by_scriptid_runs\"]>\n > {\n const { scriptId, organizationId, limit } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}/runs`,\n query: { organizationId, limit },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Execute Script\n *\n * Submit a durable run of the active or explicitly pinned accepted version. Requires scripts:execute. Arguments must match its schema and fit 256 KiB.\n\nOptional idempotencyKey identifies one invocation within this organization: reuse only for the same version and arguments.\n\nHTTP 202 retains the run record and does not establish execution success; pass every run.id to scripts.awaitRuns and inspect resultRef/errorRef. Runs use immutable hashes and existing durable reconciliation.\n *\n * `POST /api/v1/scripts/{scriptId}/runs`\n */\n execute(\n request: OperationPath<operations[\"post_v1_scripts_by_scriptid_runs\"]> &\n OperationBody<operations[\"post_v1_scripts_by_scriptid_runs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_scripts_by_scriptid_runs\"]>\n > {\n const { scriptId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}/runs`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Script Source\n *\n * Read current draft source from the organization's Windmill workspace. This may differ from the active version. Requires scripts:read.\n *\n * `GET /api/v1/scripts/{scriptId}/source`\n */\n getSource(\n request: OperationPath<operations[\"get_v1_scripts_by_scriptid_source\"]> &\n OperationQuery<operations[\"get_v1_scripts_by_scriptid_source\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_scripts_by_scriptid_source\"]>\n > {\n const { scriptId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}/source`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Read Script Run Results\n *\n * Refresh 1–100 script run IDs in first-requested order, trimming and deduplicating IDs. Requires scripts:read.\n\nThis is a status snapshot and may return pending jobs; it never submits customer code again. success is true only when all requested runs succeeded. Results retain explicit per-target not_found/unavailable failures.\n\nUse script run IDs with this endpoint; the generic developer jobs API does not resolve them.\n *\n * `POST /api/v1/scripts/jobs/await`\n */\n awaitRuns(\n request: OperationBody<operations[\"post_v1_scripts_jobs_await\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_scripts_jobs_await\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/scripts/jobs/await\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Cancel Script Runs\n *\n * Request cancellation for 1–100 run IDs, trimmed and deduplicated in first-requested order. Requires scripts:execute. Check each requested/confirmed/status; request acceptance does not confirm cancellation or roll back prior side effects. success requires every cancellation to be confirmed.\n *\n * `POST /api/v1/scripts/jobs/cancel`\n */\n cancelRuns(\n request: OperationBody<operations[\"post_v1_scripts_jobs_cancel\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_scripts_jobs_cancel\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/scripts/jobs/cancel\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class SearchClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Search Public Merchant Products\n *\n * Search across all public merchants and products with optional merchant, pricing, stock, marketplace, and localization filters.\n *\n * `GET /api/v1/search`\n */\n list(\n request: OperationQuery<operations[\"get_v1_search\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_search\"]>> {\n const {\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n merchant_ids,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/search\",\n query: {\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n merchant_ids,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Search Public Merchant Products\n *\n * Search across all public merchants and products with optional merchant, pricing, stock, marketplace, and localization filters.\n *\n * `POST /api/v1/search`\n */\n query(\n request: OperationQuery<operations[\"post_v1_search\"]> &\n Record<string, unknown> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_search\"]>> {\n const {\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n merchant_ids,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n ...body\n } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/search\",\n query: {\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n merchant_ids,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class SettlementsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Settlements\n *\n * List the latest normalized order-settlement snapshots created by finance ingestion. Requires `settlements:read`. Use updatedSince and cursor for recovery; money remains partitioned by currency.\n *\n * `GET /api/v1/settlements`\n */\n list(\n request: OperationQuery<operations[\"get_v1_settlements\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_settlements\"]>> {\n const {\n organizationId,\n marketplace,\n accountId,\n orderId,\n externalOrderId,\n updatedSince,\n cursor,\n limit,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/settlements\",\n query: {\n organizationId,\n marketplace,\n accountId,\n orderId,\n externalOrderId,\n updatedSince,\n cursor,\n limit,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Apply Settlements\n *\n * Apply marketplace-agnostic settlement lines to existing orders.\n\n### Authentication\n\nRequires `orders:write`.\n\n### What this endpoint does\n\n- Stores every submitted line as marketplace financial evidence.\n- Projects **settled** rows into the order finance ledger.\n- Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same `sourceEventKey`.\n- Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported.\n\n### Order matching\n\nOrders are matched by organization, marketplace platform, and exact `externalOrderId`. Include `externalOrderItemId` when an order has multiple lines.\n\n- `accountId` is an exact store match, never a wildcard.\n- `marketplace=zalora` can match Zalora Seller Center or\n *\n * `POST /api/v1/settlements`\n */\n create(\n request: OperationBody<operations[\"post_v1_settlements\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_settlements\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/settlements\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Settlement\n *\n * Get the latest normalized settlement snapshot by stable settlement ID. Requires `settlements:read`.\n *\n * `GET /api/v1/settlements/{settlementId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_settlements_by_settlementid\"]> &\n OperationQuery<operations[\"get_v1_settlements_by_settlementid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_settlements_by_settlementid\"]>\n > {\n const { settlementId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/settlements/${encodePathParam(\"settlementId\", settlementId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class SyncClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Sync Product Commercial Fields\n *\n * Update price, sale price, or stock quantity in OmniCommerce and queue marketplace sync workers where applicable.\n *\n * `POST /api/v1/sync`\n */\n run(\n request: Record<string, unknown> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_sync\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/sync\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ThreadsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Thread Status\n *\n * Poll an AOP execution started by `POST /api/v1/aop/{aopId}/execute`. Requires `aops:read`. Status values are `running`, `completed`, or `failed`.\n *\n * `GET /api/v1/threads/{thread_id}/status`\n */\n getStatus(\n request: OperationPath<operations[\"get_v1_threads_by_thread_id_status\"]> &\n OperationQuery<operations[\"get_v1_threads_by_thread_id_status\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_threads_by_thread_id_status\"]>\n > {\n const {\n thread_id: threadId,\n include_messages,\n organizationId,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/threads/${encodePathParam(\"thread_id\", threadId)}/status`,\n query: { include_messages, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class UcpCheckoutSessionsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Create UCP Checkout Session\n *\n * Create a UCP shopping checkout session against the authenticated organization. The facade translates UCP line items to native agentic checkout sessions, reserves inventory, and returns a UCP checkout resource. Requires `UCP-Agent` and OAuth `checkout:write`.\n *\n * `POST /ucp/v1/checkout-sessions`\n */\n create(\n request: OperationBody<operations[\"post_ucp_v1_checkout_sessions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_ucp_v1_checkout_sessions\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/ucp/v1/checkout-sessions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get UCP Checkout Session\n *\n * Fetch the current UCP checkout resource for a native agentic checkout session. Requires `UCP-Agent` and bearer authentication.\n *\n * `GET /ucp/v1/checkout-sessions/{sessionId}`\n */\n get(\n request: OperationPath<\n operations[\"get_ucp_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<operations[\"get_ucp_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_ucp_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/ucp/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update UCP Checkout Session\n *\n * Update UCP cart, buyer, fulfillment, or payment rail fields. Provided fields are applied to the native checkout session and inventory reservations are refreshed when line items change. Requires `UCP-Agent` and OAuth `checkout:write`.\n *\n * `PATCH /ucp/v1/checkout-sessions/{sessionId}`\n */\n update(\n request: OperationPath<\n operations[\"patch_ucp_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<\n operations[\"patch_ucp_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationBody<operations[\"patch_ucp_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_ucp_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/ucp/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Replace UCP Checkout Session Fields\n *\n * UCP-compatible update method. Current behavior matches PATCH: provided fields are applied and omitted fields remain unchanged. Requires `UCP-Agent` and OAuth `checkout:write`.\n *\n * `PUT /ucp/v1/checkout-sessions/{sessionId}`\n */\n replace(\n request: OperationPath<\n operations[\"put_ucp_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<operations[\"put_ucp_v1_checkout_sessions_by_sessionid\"]> &\n OperationBody<operations[\"put_ucp_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"put_ucp_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PUT\",\n path: `/ucp/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Cancel UCP Checkout Session\n *\n * Cancel a ready-for-payment UCP checkout session and release reserved inventory. Requires `UCP-Agent` and OAuth `checkout:write`.\n *\n * `POST /ucp/v1/checkout-sessions/{sessionId}/cancel`\n */\n cancel(\n request: OperationPath<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_cancel\"]\n > &\n OperationQuery<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_cancel\"]\n > &\n Record<string, unknown>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_ucp_v1_checkout_sessions_by_sessionid_cancel\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/ucp/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}/cancel`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Complete UCP Checkout Session\n *\n * Settle the selected rail and create a native `agentic` order. Settlement failures return HTTP 402 with the checkout still ready for payment. Requires `UCP-Agent` and OAuth `checkout:write`.\n *\n * `POST /ucp/v1/checkout-sessions/{sessionId}/complete`\n */\n complete(\n request: OperationPath<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_complete\"]\n > &\n OperationQuery<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_complete\"]\n > &\n OperationBody<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_complete\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_complete\"]\n >\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/ucp/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}/complete`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class UcpOrdersClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get UCP Order\n *\n * Fetch the native OmniCommerce order created by a completed UCP checkout session. Only `agentic` orders are exposed through this facade.\n *\n * `GET /ucp/v1/orders/{orderId}`\n */\n get(\n request: OperationPath<operations[\"get_ucp_v1_orders_by_orderid\"]> &\n OperationQuery<operations[\"get_ucp_v1_orders_by_orderid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_ucp_v1_orders_by_orderid\"]>\n > {\n const { orderId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/ucp/v1/orders/${encodePathParam(\"orderId\", orderId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class UcpClient {\n readonly checkoutSessions: UcpCheckoutSessionsClient;\n readonly orders: UcpOrdersClient;\n constructor(protected readonly _http: OmniHttp) {\n this.checkoutSessions = new UcpCheckoutSessionsClient(this._http);\n this.orders = new UcpOrdersClient(this._http);\n }\n}\n\nexport class WebhookEventsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Webhook Events\n *\n * Pull immutable webhook events for recovery or scheduled reconciliation. Requires `webhooks:manage`. Results are organization-scoped and ordered oldest first; continue with the opaque cursor. This is the pull fallback for a receiver that missed push deliveries.\n *\n * `GET /api/v1/webhook-events`\n */\n list(\n request: OperationQuery<operations[\"get_v1_webhook_events\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_webhook_events\"]>> {\n const { organizationId, eventType, occurredSince, cursor, limit } =\n request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/webhook-events\",\n query: { organizationId, eventType, occurredSince, cursor, limit },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class WebhooksClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Developer Webhooks\n *\n * List configured developer webhook subscriptions for the authenticated organization.\n *\n * `GET /api/v1/webhooks`\n */\n list(\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_webhooks\"]>> {\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/webhooks\",\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Developer Webhook\n *\n * Create a developer webhook subscription for the authenticated organization. The signing secret is returned only once.\n *\n * `POST /api/v1/webhooks`\n */\n create(\n request: OperationBody<operations[\"post_v1_webhooks\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_webhooks\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/webhooks\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ZaloraClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Selected Zalora Import Status\n *\n * Requires catalog:read. Follow the unchanged links.job URL returned by POST. Reads current state once without waiting.\n\n### Completion\n\ndata.status is pending, running, success, or error; data.terminal and data.success identify completion. data.productIds contains mapped Omni IDs for the supplied product sets. Failed imports remain explicit, including missingExternalIds. The top-level completed status describes this status request, not the import.\n\nKeep the original target IDs: the status lookup resolves those targets and does not prove that a modified selection was part of this job.\n *\n * `GET /api/v1/zalora/import`\n */\n getImport(\n request: OperationQuery<operations[\"get_v1_zalora_import\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_zalora_import\"]>> {\n const { organizationId, jobId, storeId, productSetIds } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/zalora/import\",\n query: { organizationId, jobId, storeId, productSetIds },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Import Selected Zalora Products\n *\n * Requires catalog:write. Queue an exact import of 1–25 Zalora productSetIds from a connected store. Omit storeId only when one store or one default store is unambiguous.\n\nReturns 202 with links.job for optional status checks and retrieval of Omni product IDs. Only one import may run per store at a time. This endpoint does not invoke an AOP, enrich products, or publish listings.\n *\n * `POST /api/v1/zalora/import`\n */\n importProducts(\n request: OperationBody<operations[\"post_v1_zalora_import\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_zalora_import\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/zalora/import\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class OmniGeneratedClient {\n readonly agents: AgentsClient;\n readonly analytics: AnalyticsClient;\n readonly aop: AopClient;\n readonly api: ApiClient;\n readonly brandKits: BrandKitsClient;\n readonly brandsgateway: BrandsgatewayClient;\n readonly bulk: BulkClient;\n readonly campaigns: CampaignsClient;\n readonly catalog: CatalogClient;\n readonly checkoutSessions: CheckoutSessionsClient;\n readonly commerce: CommerceClient;\n readonly compare: CompareClient;\n readonly directory: DirectoryClient;\n readonly documents: DocumentsClient;\n readonly evaluate: EvaluateClient;\n readonly feed: FeedClient;\n readonly images: ImagesClient;\n readonly inventory: InventoryClient;\n readonly jobs: JobsClient;\n readonly looks: LooksClient;\n readonly marketplaces: MarketplacesClient;\n readonly merchants: MerchantsClient;\n readonly monitor: MonitorClient;\n readonly oauth: OauthClient;\n readonly orders: OrdersClient;\n readonly organizations: OrganizationsClient;\n readonly priceBooks: PriceBooksClient;\n readonly productCategories: ProductCategoriesClient;\n readonly products: ProductsClient;\n readonly promotions: PromotionsClient;\n readonly returns: ReturnsClient;\n readonly reviews: ReviewsClient;\n readonly scripts: ScriptsClient;\n readonly search: SearchClient;\n readonly settlements: SettlementsClient;\n readonly sync: SyncClient;\n readonly threads: ThreadsClient;\n readonly ucp: UcpClient;\n readonly webhookEvents: WebhookEventsClient;\n readonly webhooks: WebhooksClient;\n readonly zalora: ZaloraClient;\n constructor(protected readonly _http: OmniHttp) {\n this.agents = new AgentsClient(this._http);\n this.analytics = new AnalyticsClient(this._http);\n this.aop = new AopClient(this._http);\n this.api = new ApiClient(this._http);\n this.brandKits = new BrandKitsClient(this._http);\n this.brandsgateway = new BrandsgatewayClient(this._http);\n this.bulk = new BulkClient(this._http);\n this.campaigns = new CampaignsClient(this._http);\n this.catalog = new CatalogClient(this._http);\n this.checkoutSessions = new CheckoutSessionsClient(this._http);\n this.commerce = new CommerceClient(this._http);\n this.compare = new CompareClient(this._http);\n this.directory = new DirectoryClient(this._http);\n this.documents = new DocumentsClient(this._http);\n this.evaluate = new EvaluateClient(this._http);\n this.feed = new FeedClient(this._http);\n this.images = new ImagesClient(this._http);\n this.inventory = new InventoryClient(this._http);\n this.jobs = new JobsClient(this._http);\n this.looks = new LooksClient(this._http);\n this.marketplaces = new MarketplacesClient(this._http);\n this.merchants = new MerchantsClient(this._http);\n this.monitor = new MonitorClient(this._http);\n this.oauth = new OauthClient(this._http);\n this.orders = new OrdersClient(this._http);\n this.organizations = new OrganizationsClient(this._http);\n this.priceBooks = new PriceBooksClient(this._http);\n this.productCategories = new ProductCategoriesClient(this._http);\n this.products = new ProductsClient(this._http);\n this.promotions = new PromotionsClient(this._http);\n this.returns = new ReturnsClient(this._http);\n this.reviews = new ReviewsClient(this._http);\n this.scripts = new ScriptsClient(this._http);\n this.search = new SearchClient(this._http);\n this.settlements = new SettlementsClient(this._http);\n this.sync = new SyncClient(this._http);\n this.threads = new ThreadsClient(this._http);\n this.ucp = new UcpClient(this._http);\n this.webhookEvents = new WebhookEventsClient(this._http);\n this.webhooks = new WebhooksClient(this._http);\n this.zalora = new ZaloraClient(this._http);\n }\n}\n\nexport type OmniResources = {\n agents: AgentsClient;\n analytics: AnalyticsClient;\n aop: AopClient;\n api: ApiClient;\n brandKits: BrandKitsClient;\n brandsgateway: BrandsgatewayClient;\n bulk: BulkClient;\n campaigns: CampaignsClient;\n catalog: CatalogClient;\n checkoutSessions: CheckoutSessionsClient;\n commerce: CommerceClient;\n compare: CompareClient;\n directory: DirectoryClient;\n documents: DocumentsClient;\n evaluate: EvaluateClient;\n feed: FeedClient;\n images: ImagesClient;\n inventory: InventoryClient;\n jobs: JobsClient;\n looks: LooksClient;\n marketplaces: MarketplacesClient;\n merchants: MerchantsClient;\n monitor: MonitorClient;\n oauth: OauthClient;\n orders: OrdersClient;\n organizations: OrganizationsClient;\n priceBooks: PriceBooksClient;\n productCategories: ProductCategoriesClient;\n products: ProductsClient;\n promotions: PromotionsClient;\n returns: ReturnsClient;\n reviews: ReviewsClient;\n scripts: ScriptsClient;\n search: SearchClient;\n settlements: SettlementsClient;\n sync: SyncClient;\n threads: ThreadsClient;\n ucp: UcpClient;\n webhookEvents: WebhookEventsClient;\n webhooks: WebhooksClient;\n zalora: ZaloraClient;\n};\n","import {\n normalizeClientOptions,\n type BaseClientOptions,\n type BaseRequestOptions,\n} from \"./BaseClient\";\nimport { OmniHttp, type OmniRequestInit } from \"./core/fetcher\";\nimport type { HttpResponsePromise } from \"./core/http-response-promise\";\nimport { OmniGeneratedClient } from \"./generated/resources\";\n\nexport declare namespace OmniClient {\n type Options = BaseClientOptions;\n type RequestOptions = BaseRequestOptions;\n}\n\nexport class OmniClient extends OmniGeneratedClient {\n constructor(options: OmniClient.Options = {}) {\n super(new OmniHttp(normalizeClientOptions(options)));\n }\n\n request<T>(init: OmniRequestInit): HttpResponsePromise<T> {\n return this._http.request(init);\n }\n}\n","const encoder = new TextEncoder();\n\nexport const WEBHOOK_SIGNATURE_HEADER = \"x-omni-signature\";\nexport const WEBHOOK_TIMESTAMP_HEADER = \"x-omni-timestamp\";\nexport const WEBHOOK_EVENT_ID_HEADER = \"x-omni-event-id\";\nexport const WEBHOOK_EVENT_TYPE_HEADER = \"x-omni-event-type\";\n\nexport type WebhookHeaders = {\n \"x-omni-signature\"?: string | null;\n \"x-omni-timestamp\"?: string | null;\n \"x-omni-event-id\"?: string | null;\n \"x-omni-event-type\"?: string | null;\n} & Record<string, string | string[] | null | undefined>;\n\nexport type ConstructedWebhookEvent = {\n eventId?: string;\n eventType?: string;\n timestamp: number;\n payload: unknown;\n rawBody: string;\n};\n\nfunction headerValue(\n headers: WebhookHeaders | Headers,\n name: string,\n): string | undefined {\n if (typeof Headers !== \"undefined\" && headers instanceof Headers) {\n return headers.get(name) ?? headers.get(name.toLowerCase()) ?? undefined;\n }\n const record = headers as WebhookHeaders;\n const direct = record[name] ?? record[name.toLowerCase()];\n if (Array.isArray(direct)) return direct[0];\n return direct ?? undefined;\n}\n\nfunction toHex(bytes: ArrayBuffer): string {\n return [...new Uint8Array(bytes)]\n .map((byte) => byte.toString(16).padStart(2, \"0\"))\n .join(\"\");\n}\n\nfunction timingSafeEqual(left: string, right: string): boolean {\n if (left.length !== right.length) return false;\n let mismatch = 0;\n for (let i = 0; i < left.length; i++) {\n mismatch |= left.charCodeAt(i) ^ right.charCodeAt(i);\n }\n return mismatch === 0;\n}\n\nexport async function signWebhookPayload(input: {\n secret: string;\n timestamp: number;\n payload: string;\n}): Promise<string> {\n const key = await crypto.subtle.importKey(\n \"raw\",\n encoder.encode(input.secret),\n { name: \"HMAC\", hash: \"SHA-256\" },\n false,\n [\"sign\"],\n );\n const signature = await crypto.subtle.sign(\n \"HMAC\",\n key,\n encoder.encode(`${input.timestamp}.${input.payload}`),\n );\n return toHex(signature);\n}\n\nexport async function verifyWebhookSignature(input: {\n secret: string;\n timestamp: number;\n payload: string;\n signature: string;\n}): Promise<boolean> {\n const expected = await signWebhookPayload(input);\n return timingSafeEqual(expected.toLowerCase(), input.signature.toLowerCase());\n}\n\nexport async function constructEvent(\n payload: string | Uint8Array,\n headers: WebhookHeaders | Headers,\n secret: string,\n options?: { toleranceInSeconds?: number },\n): Promise<ConstructedWebhookEvent> {\n const rawBody =\n typeof payload === \"string\" ? payload : new TextDecoder().decode(payload);\n const signature = headerValue(headers, WEBHOOK_SIGNATURE_HEADER);\n const timestampRaw = headerValue(headers, WEBHOOK_TIMESTAMP_HEADER);\n if (!signature || !timestampRaw) {\n throw new Error(\n \"Webhook signature verification failed: missing X-Omni-Signature or X-Omni-Timestamp.\",\n );\n }\n const timestamp = Number(timestampRaw);\n if (!Number.isFinite(timestamp)) {\n throw new Error(\n \"Webhook signature verification failed: invalid timestamp.\",\n );\n }\n const tolerance = options?.toleranceInSeconds ?? 300;\n const now = Math.floor(Date.now() / 1000);\n if (Math.abs(now - timestamp) > tolerance) {\n throw new Error(\n \"Webhook signature verification failed: timestamp outside tolerance.\",\n );\n }\n const valid = await verifyWebhookSignature({\n secret,\n timestamp,\n payload: rawBody,\n signature,\n });\n if (!valid) {\n throw new Error(\n \"Webhook signature verification failed: invalid signature.\",\n );\n }\n let parsed: unknown = rawBody;\n try {\n parsed = JSON.parse(rawBody);\n } catch {\n throw new Error(\"Webhook signature verification failed: body is not JSON.\");\n }\n return {\n eventId: headerValue(headers, WEBHOOK_EVENT_ID_HEADER),\n eventType: headerValue(headers, WEBHOOK_EVENT_TYPE_HEADER),\n timestamp,\n payload: parsed,\n rawBody,\n };\n}\n","export type {\n FlattenedRequest,\n OperationBody,\n OperationPath,\n OperationQuery,\n SuccessData,\n} from \"../types\";\nexport type { operations, paths, components } from \"../generated/openapi\";\nexport {\n OmniGeneratedClient,\n type OmniResources,\n} from \"../generated/resources\";\nexport type {\n AccountStatementCreatedWebhookEvent,\n AccountStatementUpdatedWebhookEvent,\n AccountStatementStatusChangedWebhookEvent,\n AccountStatementReconciliationChangedWebhookEvent,\n AccountStatementTransactionsSyncedWebhookEvent,\n AccountStatementTransactionsFailedWebhookEvent,\n AccountStatementSyncQueuedWebhookEvent,\n AccountStatementSyncStartedWebhookEvent,\n AccountStatementSyncCompletedWebhookEvent,\n AccountStatementSyncFailedWebhookEvent,\n AccountStatementSyncUnavailableWebhookEvent,\n LookCreatedWebhookEvent,\n LookDeletedWebhookEvent,\n OrderCreatedWebhookEvent,\n OrderDeletedWebhookEvent,\n OrderStatusChangedWebhookEvent,\n OrderUpdatedWebhookEvent,\n ProductCreatedWebhookEvent,\n ProductDeletedWebhookEvent,\n ProductEnrichmentCompletedWebhookEvent,\n ProductEnrichmentStartedWebhookEvent,\n ProductInventoryChangedWebhookEvent,\n ProductPriceChangedWebhookEvent,\n ProductUpdatedWebhookEvent,\n ReturnCreatedWebhookEvent,\n ReturnStatusChangedWebhookEvent,\n ReturnUpdatedWebhookEvent,\n SettlementCreatedWebhookEvent,\n SettlementStatusChangedWebhookEvent,\n SettlementUpdatedWebhookEvent,\n} from \"./webhook-events\";\n"]}
1
+ {"version":3,"sources":["../src/BaseClient.ts","../src/version.ts","../src/environments.ts","../src/errors/OmniError.ts","../src/errors/OmniTimeoutError.ts","../src/errors/status.ts","../src/core/supplier.ts","../src/core/query.ts","../src/core/http-response-promise.ts","../src/core/fetcher.ts","../src/core/multipart.ts","../src/core/path.ts","../src/products.ts","../src/product-batches.ts","../src/jobs.ts","../src/generated/resources.ts","../src/Client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;AAAA,MACR;AAAA,KACF;AAAA,EACF;AACA,EAAA,IAAI,MAAA,GAAkB,OAAA;AACtB,EAAA,IAAI;AACF,IAAA,MAAA,GAAS,IAAA,CAAK,MAAM,OAAO,CAAA;AAAA,EAC7B,CAAA,CAAA,MAAQ;AACN,IAAA,MAAM,IAAI,MAAM,0DAA0D,CAAA;AAAA,EAC5E;AACA,EAAA,OAAO;AAAA,IACL,OAAA,EAAS,WAAA,CAAY,OAAA,EAAS,uBAAuB,CAAA;AAAA,IACrD,SAAA,EAAW,WAAA,CAAY,OAAA,EAAS,yBAAyB,CAAA;AAAA,IACzD,SAAA;AAAA,IACA,OAAA,EAAS,MAAA;AAAA,IACT;AAAA,GACF;AACF;;;ACpIA,IAAA,WAAA,GAAA;AAAA,QAAA,CAAA,WAAA,EAAA;AAAA,EAAA,mBAAA,EAAA,MAAA;AAAA,CAAA,CAAA","file":"index.js","sourcesContent":["import { OmniEnvironment } from \"./environments\";\nimport type { Supplier } from \"./core/supplier\";\n\nexport type FetchLike = (\n input: RequestInfo | URL,\n init?: RequestInit,\n) => Promise<Response>;\n\nexport interface BaseClientOptions {\n /**\n * API host. Defaults to production (`https://omnicommerce.sg`).\n * Pass `OmniEnvironment.Local` for `http://localhost:3000`.\n */\n environment?: Supplier<OmniEnvironment | string>;\n /** Explicit API origin. Overrides `environment` when set. */\n baseUrl?: Supplier<string>;\n /**\n * Organization API key (`omni_sk_...`) or OAuth access token.\n * Defaults to `process.env.OMNI_API_KEY`.\n */\n apiKey?: Supplier<string>;\n /** Extra headers sent on every request. */\n headers?: Record<\n string,\n string | Supplier<string | null | undefined> | null | undefined\n >;\n /** Default timeout in seconds. Defaults to 60. */\n timeoutInSeconds?: number;\n /** Retry count for 408/429/5xx and network failures. Defaults to 2. */\n maxRetries?: number;\n /** Custom fetch implementation. */\n fetch?: FetchLike;\n}\n\nexport interface BaseRequestOptions {\n timeoutInSeconds?: number;\n maxRetries?: number;\n abortSignal?: AbortSignal;\n queryParams?: Record<string, unknown>;\n headers?: Record<string, string | undefined>;\n}\n\nexport type NormalizedClientOptions = {\n environment?: Supplier<OmniEnvironment | string>;\n baseUrl?: Supplier<string>;\n apiKey?: Supplier<string>;\n headers?: BaseClientOptions[\"headers\"];\n timeoutInSeconds: number;\n maxRetries: number;\n fetch: FetchLike;\n};\n\nexport function normalizeClientOptions(\n options: BaseClientOptions = {},\n): NormalizedClientOptions {\n const fetchImpl = options.fetch ?? globalThis.fetch;\n if (typeof fetchImpl !== \"function\") {\n throw new Error(\n \"No fetch implementation found. Pass `fetch` in OmniClient options.\",\n );\n }\n return {\n environment: options.environment,\n baseUrl: options.baseUrl,\n apiKey: options.apiKey,\n headers: options.headers,\n timeoutInSeconds: options.timeoutInSeconds ?? 60,\n maxRetries: options.maxRetries ?? 2,\n fetch: fetchImpl,\n };\n}\n","export const SDK_VERSION = \"0.22.0\";\nexport const SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;\n","// Generated from the canonical OpenAPI Production server.\nexport const OmniEnvironment = {\n Production: \"https://omnicommerce.ai\",\n Local: \"http://localhost:3000\",\n} as const;\n\nexport type OmniEnvironment =\n (typeof OmniEnvironment)[keyof typeof OmniEnvironment];\n","import type { RawResponse } from \"../core/http-response-promise\";\n\nexport class OmniError extends Error {\n readonly statusCode?: number;\n readonly body?: unknown;\n readonly rawResponse?: RawResponse;\n\n constructor({\n message,\n statusCode,\n body,\n rawResponse,\n }: {\n message?: string;\n statusCode?: number;\n body?: unknown;\n rawResponse?: RawResponse;\n }) {\n super(message ?? defaultErrorMessage(statusCode, body));\n this.name = \"OmniError\";\n this.statusCode = statusCode;\n this.body = body;\n this.rawResponse = rawResponse;\n }\n}\n\nfunction defaultErrorMessage(statusCode?: number, body?: unknown): string {\n const fromBody = extractErrorMessage(body);\n if (fromBody) return fromBody;\n if (statusCode) return `Omni API error (${statusCode})`;\n return \"Omni API error\";\n}\n\nexport function extractErrorMessage(body: unknown): string | undefined {\n if (typeof body === \"string\" && body.trim()) return body;\n if (!body || typeof body !== \"object\") return undefined;\n const record = body as Record<string, unknown>;\n for (const key of [\"error\", \"message\", \"detail\"]) {\n const value = record[key];\n if (typeof value === \"string\" && value.trim()) return value;\n }\n return undefined;\n}\n","export class OmniTimeoutError extends Error {\n constructor(message = \"Request timed out\") {\n super(message);\n this.name = \"OmniTimeoutError\";\n }\n}\n","import type { RawResponse } from \"../core/http-response-promise\";\nimport { OmniError } from \"./OmniError\";\n\nexport class BadRequestError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({ message: \"Bad request\", statusCode: 400, body, rawResponse });\n this.name = \"BadRequestError\";\n }\n}\n\nexport class UnauthorizedError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({ message: \"Unauthorized\", statusCode: 401, body, rawResponse });\n this.name = \"UnauthorizedError\";\n }\n}\n\nexport class ForbiddenError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({ message: \"Forbidden\", statusCode: 403, body, rawResponse });\n this.name = \"ForbiddenError\";\n }\n}\n\nexport class NotFoundError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({ message: \"Not found\", statusCode: 404, body, rawResponse });\n this.name = \"NotFoundError\";\n }\n}\n\nexport class UnprocessableEntityError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({\n message: \"Unprocessable entity\",\n statusCode: 422,\n body,\n rawResponse,\n });\n this.name = \"UnprocessableEntityError\";\n }\n}\n\nexport class TooManyRequestsError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({\n message: \"Too many requests\",\n statusCode: 429,\n body,\n rawResponse,\n });\n this.name = \"TooManyRequestsError\";\n }\n}\n\nexport class InternalServerError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({\n message: \"Internal server error\",\n statusCode: 500,\n body,\n rawResponse,\n });\n this.name = \"InternalServerError\";\n }\n}\n\nexport class BadGatewayError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({ message: \"Bad gateway\", statusCode: 502, body, rawResponse });\n this.name = \"BadGatewayError\";\n }\n}\n\nexport class ServiceUnavailableError extends OmniError {\n constructor(body?: unknown, rawResponse?: RawResponse) {\n super({\n message: \"Service unavailable\",\n statusCode: 503,\n body,\n rawResponse,\n });\n this.name = \"ServiceUnavailableError\";\n }\n}\n\nexport function errorFromStatus(\n statusCode: number,\n body: unknown,\n rawResponse: RawResponse,\n): OmniError {\n switch (statusCode) {\n case 400:\n return new BadRequestError(body, rawResponse);\n case 401:\n return new UnauthorizedError(body, rawResponse);\n case 403:\n return new ForbiddenError(body, rawResponse);\n case 404:\n return new NotFoundError(body, rawResponse);\n case 422:\n return new UnprocessableEntityError(body, rawResponse);\n case 429:\n return new TooManyRequestsError(body, rawResponse);\n case 500:\n return new InternalServerError(body, rawResponse);\n case 502:\n return new BadGatewayError(body, rawResponse);\n case 503:\n return new ServiceUnavailableError(body, rawResponse);\n default:\n return new OmniError({ statusCode, body, rawResponse });\n }\n}\n","export type Supplier<T> = T | Promise<T> | (() => T | Promise<T>);\n\nexport async function getSupplierValue<T>(\n value: Supplier<T> | undefined,\n): Promise<T | undefined> {\n if (value === undefined) return undefined;\n if (typeof value === \"function\") {\n return await (value as () => T | Promise<T>)();\n }\n return value;\n}\n","const isPlainObject = (value: unknown): value is Record<string, unknown> =>\n Boolean(value) && Object.getPrototypeOf(value) === Object.prototype;\n\nexport function toQueryString(\n query: Record<string, unknown> | undefined,\n): string {\n if (!query) return \"\";\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(query)) {\n appendQueryParam(params, key, value);\n }\n return params.toString();\n}\n\nfunction appendQueryParam(\n params: URLSearchParams,\n key: string,\n value: unknown,\n): void {\n if (value === undefined || value === null) return;\n if (Array.isArray(value)) {\n for (const item of value) appendQueryParam(params, key, item);\n return;\n }\n if (typeof value === \"boolean\" || typeof value === \"number\") {\n params.append(key, String(value));\n return;\n }\n if (typeof value === \"string\") {\n params.append(key, value);\n return;\n }\n if (isPlainObject(value) || Array.isArray(value)) {\n params.append(key, JSON.stringify(value));\n return;\n }\n params.append(key, String(value));\n}\n\nexport function joinUrl(baseUrl: string, path: string, query?: string): string {\n const trimmedBase = baseUrl.replace(/\\/+$/, \"\");\n const normalizedPath = path.startsWith(\"/\") ? path : `/${path}`;\n const url = `${trimmedBase}${normalizedPath}`;\n return query ? `${url}?${query}` : url;\n}\n","export type RawResponse = {\n status: number;\n headers: Headers;\n url: string;\n};\n\nexport type WithRawResponse<T> = {\n data: T;\n rawResponse: RawResponse;\n};\n\nexport class HttpResponsePromise<T> extends Promise<T> {\n readonly #response: Promise<WithRawResponse<T>>;\n\n private constructor(\n executor: (\n resolve: (value: T | PromiseLike<T>) => void,\n reject: (reason?: unknown) => void,\n ) => void,\n response: Promise<WithRawResponse<T>>,\n ) {\n super(executor);\n this.#response = response;\n }\n\n static from<T>(\n response: Promise<WithRawResponse<T>>,\n ): HttpResponsePromise<T> {\n return new HttpResponsePromise<T>((resolve, reject) => {\n void response.then((result) => resolve(result.data), reject);\n }, response);\n }\n\n withRawResponse(): Promise<WithRawResponse<T>> {\n return this.#response;\n }\n}\n\nexport function toRawResponse(response: Response): RawResponse {\n return {\n status: response.status,\n headers: response.headers,\n url: response.url,\n };\n}\n","import { SDK_USER_AGENT } from \"../version\";\nimport { OmniEnvironment } from \"../environments\";\nimport {\n type NormalizedClientOptions,\n type BaseRequestOptions,\n} from \"../BaseClient\";\nimport { errorFromStatus, OmniError } from \"../errors\";\nimport { OmniTimeoutError } from \"../errors/OmniTimeoutError\";\nimport { getSupplierValue } from \"./supplier\";\nimport { joinUrl, toQueryString } from \"./query\";\nimport {\n HttpResponsePromise,\n toRawResponse,\n type RawResponse,\n} from \"./http-response-promise\";\n\nconst IDEMPOTENT_METHODS = new Set([\"GET\", \"HEAD\", \"OPTIONS\", \"PUT\", \"DELETE\"]);\n\nexport type OmniRequestInit = {\n method: string;\n path: string;\n query?: Record<string, unknown>;\n body?: unknown;\n headers?: Record<string, string | undefined>;\n timeoutInSeconds?: number;\n maxRetries?: number;\n abortSignal?: AbortSignal;\n queryParams?: Record<string, unknown>;\n};\n\nexport class OmniHttp {\n constructor(private readonly options: NormalizedClientOptions) {}\n\n request<T>(init: OmniRequestInit): HttpResponsePromise<T> {\n return HttpResponsePromise.from(this.requestWithRaw<T>(init));\n }\n\n async requestWithRaw<T>(\n init: OmniRequestInit,\n ): Promise<{ data: T; rawResponse: RawResponse }> {\n const url = await this.buildUrl(init);\n const headers = await this.buildHeaders(init);\n const serialized = serializeBody(init.body, headers);\n const timeoutMs =\n (init.timeoutInSeconds ?? this.options.timeoutInSeconds) * 1000;\n const maxRetries = init.maxRetries ?? this.options.maxRetries;\n const fetchImpl = this.options.fetch;\n\n let lastError: unknown;\n for (let attempt = 0; attempt <= maxRetries; attempt++) {\n const controller = new AbortController();\n const timeout = setTimeout(() => controller.abort(), timeoutMs);\n const onAbort = () => controller.abort();\n init.abortSignal?.addEventListener(\"abort\", onAbort, { once: true });\n try {\n const response = await fetchImpl(url, {\n method: init.method,\n headers,\n body: serialized.body,\n signal: controller.signal,\n });\n const rawResponse = toRawResponse(response);\n if (response.ok) {\n const data = (await parseSuccessBody(response)) as T;\n return { data, rawResponse };\n }\n const errorBody = await parseErrorBody(response);\n if (attempt < maxRetries && shouldRetry(init.method, response.status)) {\n await sleep(\n retryDelayMs(attempt, response.headers.get(\"retry-after\")),\n );\n continue;\n }\n throw errorFromStatus(response.status, errorBody, rawResponse);\n } catch (error) {\n lastError = error;\n if (error instanceof OmniError) throw error;\n const aborted =\n error instanceof Error &&\n (error.name === \"AbortError\" || error.name === \"TimeoutError\");\n if (aborted && init.abortSignal?.aborted) {\n throw error;\n }\n if (aborted) {\n lastError = new OmniTimeoutError(\n `Request timed out after ${timeoutMs}ms`,\n );\n }\n if (attempt >= maxRetries || !shouldRetry(init.method, undefined)) {\n throw lastError;\n }\n await sleep(retryDelayMs(attempt, null));\n } finally {\n clearTimeout(timeout);\n init.abortSignal?.removeEventListener(\"abort\", onAbort);\n }\n }\n throw lastError;\n }\n\n private async buildUrl(init: OmniRequestInit): Promise<string> {\n const baseUrl =\n (await getSupplierValue(this.options.baseUrl)) ??\n (await getSupplierValue(this.options.environment)) ??\n OmniEnvironment.Production;\n const query = toQueryString({\n ...init.query,\n ...init.queryParams,\n });\n return joinUrl(baseUrl, init.path, query);\n }\n\n private async buildHeaders(\n init: OmniRequestInit,\n ): Promise<Record<string, string>> {\n const headers: Record<string, string> = {\n Accept: \"application/json\",\n \"User-Agent\": SDK_USER_AGENT,\n };\n const apiKey =\n (await getSupplierValue(this.options.apiKey)) ?? readEnvApiKey();\n if (apiKey) {\n headers.Authorization = `Bearer ${apiKey}`;\n }\n if (this.options.headers) {\n for (const [key, value] of Object.entries(this.options.headers)) {\n const resolved = await getSupplierValue(value ?? undefined);\n if (resolved) headers[key] = resolved;\n }\n }\n if (init.headers) {\n for (const [key, value] of Object.entries(init.headers)) {\n if (value) headers[key] = value;\n }\n }\n return headers;\n }\n}\n\nexport function mergeRequestOptions(\n requestOptions?: BaseRequestOptions,\n): Pick<\n OmniRequestInit,\n \"timeoutInSeconds\" | \"maxRetries\" | \"abortSignal\" | \"queryParams\" | \"headers\"\n> {\n return {\n timeoutInSeconds: requestOptions?.timeoutInSeconds,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n queryParams: requestOptions?.queryParams,\n headers: requestOptions?.headers,\n };\n}\n\nfunction readEnvApiKey(): string | undefined {\n if (typeof process === \"undefined\" || !process.env) return undefined;\n const value = process.env.OMNI_API_KEY;\n return value && value.trim() ? value : undefined;\n}\n\nfunction serializeBody(\n body: unknown,\n headers: Record<string, string>,\n): { body?: BodyInit } {\n if (body === undefined || body === null) return {};\n if (typeof FormData !== \"undefined\" && body instanceof FormData) {\n return { body };\n }\n if (\n typeof URLSearchParams !== \"undefined\" &&\n body instanceof URLSearchParams\n ) {\n if (!headers[\"Content-Type\"]) {\n headers[\"Content-Type\"] = \"application/x-www-form-urlencoded\";\n }\n return { body };\n }\n if (typeof Blob !== \"undefined\" && body instanceof Blob) {\n return { body };\n }\n if (typeof body === \"string\") {\n if (!headers[\"Content-Type\"]) headers[\"Content-Type\"] = \"application/json\";\n return { body };\n }\n if (!headers[\"Content-Type\"]) headers[\"Content-Type\"] = \"application/json\";\n return { body: JSON.stringify(body) };\n}\n\nasync function parseSuccessBody(response: Response): Promise<unknown> {\n if (response.status === 204) return undefined;\n const contentType = response.headers.get(\"content-type\") ?? \"\";\n if (contentType.includes(\"application/json\")) {\n const text = await response.text();\n if (!text) return undefined;\n return JSON.parse(text);\n }\n if (contentType.includes(\"text/\")) {\n return response.text();\n }\n const text = await response.text();\n if (!text) return undefined;\n try {\n return JSON.parse(text);\n } catch {\n return text;\n }\n}\n\nasync function parseErrorBody(response: Response): Promise<unknown> {\n const text = await response.text();\n if (!text) return undefined;\n try {\n return JSON.parse(text);\n } catch {\n return text;\n }\n}\n\nfunction shouldRetry(method: string, status: number | undefined): boolean {\n if (status === 408 || status === 429) return true;\n const idempotent = IDEMPOTENT_METHODS.has(method.toUpperCase());\n if (status !== undefined) {\n return idempotent && status >= 500;\n }\n return idempotent;\n}\n\nfunction retryDelayMs(attempt: number, retryAfter: string | null): number {\n if (retryAfter) {\n const seconds = Number(retryAfter);\n if (Number.isFinite(seconds) && seconds >= 0) {\n return Math.min(seconds * 1000, 30_000);\n }\n }\n const base = Math.min(500 * 2 ** attempt, 8_000);\n return base + Math.random() * base * 0.2;\n}\n\nfunction sleep(ms: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, ms));\n}\n","/**\n * Build the multipart body for a file upload. Blobs and Files become file\n * parts (a File keeps its name); objects are sent as JSON text.\n */\nexport function toMultipartBody(fields: Record<string, unknown>): FormData {\n const form = new FormData();\n for (const [key, value] of Object.entries(fields)) {\n if (value === undefined || value === null) continue;\n if (value instanceof Blob) form.append(key, value);\n else if (typeof value === \"object\") form.append(key, JSON.stringify(value));\n else form.append(key, String(value));\n }\n return form;\n}\n","export function encodePathParam(name: string, value: unknown): string {\n if (typeof value !== \"string\" || value.trim() === \"\") {\n throw new Error(`Missing required path parameter: ${name}`);\n }\n return encodeURIComponent(value);\n}\n","import type { BaseRequestOptions } from \"./BaseClient\";\nimport type { operations } from \"./generated/openapi\";\nimport type { OperationQuery, SuccessData } from \"./types\";\n\nexport type ProductScanRequest = Omit<\n OperationQuery<operations[\"get_v1_products\"]>,\n \"includeSummary\"\n>;\ntype ProductPage = SuccessData<operations[\"get_v1_products\"]>;\ntype ProductItem = NonNullable<ProductPage[\"items\"]>[number];\n\nexport type ProductScanProgress = {\n pagesRead: number;\n itemsRead: number;\n complete: boolean;\n /** Persist with the page's items. Pass unchanged to scan() to resume. */\n next: ProductScanRequest | null;\n};\nexport type ProductScanResult = ProductScanProgress & { items: ProductItem[] };\nexport type ProductScanOptions = Omit<BaseRequestOptions, \"queryParams\"> & {\n /** Pages per chunk, 1–100. Defaults to one; no unbounded catalog downloads. */\n maxPages?: number;\n onProgress?: (\n progress: ProductScanProgress,\n items: ProductItem[],\n ) => void | Promise<void>;\n};\n\nexport class ProductScanError extends Error {\n constructor(\n readonly partial: ProductScanResult,\n readonly cause: unknown,\n ) {\n super(\n \"Product scan failed. Resume from partial.next after saving partial.items.\",\n );\n this.name = \"ProductScanError\";\n }\n}\n\n/** One sequential, bounded chunk. Completed pages survive failures via partial. */\nexport async function scanProducts(\n list: (\n request: OperationQuery<operations[\"get_v1_products\"]>,\n options?: BaseRequestOptions,\n ) => PromiseLike<ProductPage>,\n request: ProductScanRequest,\n options: ProductScanOptions = {},\n): Promise<ProductScanResult> {\n const { maxPages = 1, onProgress, ...requestOptions } = options;\n if (!Number.isInteger(maxPages) || maxPages < 1 || maxPages > 100)\n throw new RangeError(\"maxPages must be an integer between 1 and 100.\");\n if (\"queryParams\" in requestOptions)\n throw new TypeError(\"Pass scan filters in the request, not queryParams.\");\n let next: ProductScanRequest | null = { limit: 50, offset: 0, ...request };\n const items: ProductItem[] = [];\n let pagesRead = 0;\n const progress = (): ProductScanProgress => ({\n pagesRead,\n itemsRead: items.length,\n complete: next === null,\n next: next ? { ...next } : null,\n });\n try {\n while (next && pagesRead < maxPages) {\n requestOptions.abortSignal?.throwIfAborted();\n const current: ProductScanRequest = next;\n const page = await list(\n { ...current, includeSummary: false },\n requestOptions,\n );\n const pagination = page.pagination;\n if (\n !Array.isArray(page.items) ||\n typeof pagination?.hasMore !== \"boolean\"\n )\n throw new Error(\"Invalid product page response.\");\n if (pagination.hasMore) {\n if (\n !page.items.length ||\n !Number.isInteger(pagination.nextOffset) ||\n pagination.nextOffset! <= (current.offset ?? 0) ||\n (pagination.nextCursor != null &&\n (typeof pagination.nextCursor !== \"string\" ||\n !pagination.nextCursor ||\n pagination.nextCursor === current.cursor))\n )\n throw new Error(\"Product pagination did not advance.\");\n const continuation: ProductScanRequest = {\n ...current,\n offset: pagination.nextOffset!,\n };\n if (pagination.nextCursor) continuation.cursor = pagination.nextCursor;\n else delete continuation.cursor;\n next = continuation;\n } else next = null;\n items.push(...page.items);\n pagesRead++;\n await onProgress?.(progress(), [...page.items]);\n }\n return { ...progress(), items };\n } catch (cause) {\n throw new ProductScanError({ ...progress(), items }, cause);\n }\n}\n","import type { BaseRequestOptions } from \"./BaseClient\";\nimport { OmniError } from \"./errors\";\nimport type { operations } from \"./generated/openapi\";\nimport type { OperationPath, OperationBody, SuccessData } from \"./types\";\n\ntype PublishOperation = operations[\"post_v1_products_by_productid_publish\"];\ntype DelistOperation = operations[\"post_v1_products_by_productid_delist\"];\ntype UpdateOperation = operations[\"patch_v1_products_by_productid\"];\ntype ProductRequest<Operation> = OperationPath<Operation> &\n OperationBody<Operation>;\n\nexport type BatchPublishProductsRequest = OperationBody<PublishOperation> & {\n productIds: readonly string[];\n};\nexport type BatchDelistProductsRequest = OperationBody<DelistOperation> & {\n productIds: readonly string[];\n};\nexport type BatchUpdateProductsRequest = {\n /** One update per product; duplicate product IDs are rejected before any writes. */\n updates: readonly ProductRequest<UpdateOperation>[];\n};\nexport type ProductBatchOptions = BaseRequestOptions & {\n /** Concurrent product requests, 1–10. Defaults to 3. */\n concurrency?: number;\n};\nexport type ProductBatchItemResult<T> = {\n /** Requested ID, even when the server resolves a variant to its parent listing. */\n productId: string;\n success: boolean;\n /** False when cancelled before this product's request started. */\n attempted: boolean;\n data?: T;\n /** Original HTTP/transport error, or an error for an unsuccessful API response. */\n error?: unknown;\n jobIds: string[];\n};\nexport type ProductBatchResult<T> = {\n /** All requests succeeded/queued; marketplace job completion is separate. */\n success: boolean;\n productIds: string[];\n succeededCount: number;\n failedCount: number;\n results: ProductBatchItemResult<T>[];\n /** Every returned job/batch/inventory handle, deduplicated in result order. */\n jobIds: string[];\n};\nexport type BatchPublishProductsResult = ProductBatchResult<\n SuccessData<PublishOperation>\n>;\nexport type BatchDelistProductsResult = ProductBatchResult<\n SuccessData<DelistOperation>\n>;\nexport type BatchUpdateProductsResult = ProductBatchResult<\n SuccessData<UpdateOperation>\n>;\n\n/** Bound the input before deduplication, so accidental catalog-sized calls fail locally. */\nfunction validateItems(items: readonly unknown[]): void {\n if (!Array.isArray(items) || items.length < 1 || items.length > 100)\n throw new RangeError(\"Provide between 1 and 100 products per batch.\");\n}\n\nfunction normalizeProductId(value: unknown): string {\n if (typeof value !== \"string\" || !value.trim() || value.trim().length > 160)\n throw new TypeError(\n \"Each product ID must be a nonempty string of at most 160 characters.\",\n );\n return value.trim();\n}\n\nfunction requestsForIds<T extends { productIds: readonly string[] }>(\n request: T,\n) {\n if (\"productId\" in request)\n throw new TypeError(\"Use productIds, not productId, for a batch.\");\n const { productIds, ...shared } = request;\n validateItems(productIds);\n return [...new Set(Array.from(productIds, normalizeProductId))].map(\n (productId) => ({\n ...shared,\n productId,\n }),\n );\n}\n\nconst record = (value: unknown): Record<string, unknown> =>\n value !== null && typeof value === \"object\"\n ? (value as Record<string, unknown>)\n : {};\n\nfunction jobIdsFrom(value: unknown): string[] {\n const response = record(value);\n const data = record(response.data);\n const targets = Array.isArray(data.results) ? data.results.map(record) : [];\n return [\n ...new Set(\n [\n response.jobId,\n data.jobBatchId,\n ...targets.flatMap((target) => [\n target.jobId,\n ...(Array.isArray(target.correlations)\n ? target.correlations.map((correlation) => record(correlation).id)\n : []),\n ]),\n ].filter((id): id is string => typeof id === \"string\" && id.length > 0),\n ),\n ];\n}\n\nasync function runProductBatch<Request extends { productId: string }, Response>(\n operation: (\n request: Request,\n options?: BaseRequestOptions,\n ) => PromiseLike<Response>,\n requests: Request[],\n successKey: \"ok\" | \"success\",\n options: ProductBatchOptions = {},\n): Promise<ProductBatchResult<Response>> {\n const { concurrency = 3, ...requestOptions } = options;\n if (!Number.isInteger(concurrency) || concurrency < 1 || concurrency > 10)\n throw new RangeError(\"concurrency must be an integer between 1 and 10.\");\n const results = new Array<ProductBatchItemResult<Response>>(requests.length);\n let next = 0;\n const worker = async () => {\n while (next < requests.length) {\n const index = next++;\n const request = requests[index]!;\n let attempted = false;\n try {\n requestOptions.abortSignal?.throwIfAborted();\n attempted = true;\n const data = await operation(request, requestOptions);\n const success = record(data)[successKey] === true;\n results[index] = {\n productId: request.productId,\n success,\n attempted,\n data,\n jobIds: jobIdsFrom(data),\n ...(success ? {} : { error: new OmniError({ body: data }) }),\n };\n } catch (error) {\n results[index] = {\n productId: request.productId,\n success: false,\n attempted,\n error,\n jobIds: jobIdsFrom(\n error instanceof OmniError ? error.body : undefined,\n ),\n };\n }\n }\n };\n await Promise.all(\n Array.from({ length: Math.min(concurrency, requests.length) }, worker),\n );\n const succeededCount = results.filter((result) => result.success).length;\n return {\n success: succeededCount === requests.length,\n productIds: requests.map((request) => request.productId),\n succeededCount,\n failedCount: requests.length - succeededCount,\n results,\n jobIds: [...new Set(results.flatMap((result) => result.jobIds))],\n };\n}\n\nexport function batchPublishProducts(\n publish: (\n request: ProductRequest<PublishOperation>,\n options?: BaseRequestOptions,\n ) => PromiseLike<SuccessData<PublishOperation>>,\n request: BatchPublishProductsRequest,\n options?: ProductBatchOptions,\n): Promise<BatchPublishProductsResult> {\n return runProductBatch(publish, requestsForIds(request), \"ok\", options);\n}\n\nexport function batchDelistProducts(\n delist: (\n request: ProductRequest<DelistOperation>,\n options?: BaseRequestOptions,\n ) => PromiseLike<SuccessData<DelistOperation>>,\n request: BatchDelistProductsRequest,\n options?: ProductBatchOptions,\n): Promise<BatchDelistProductsResult> {\n return runProductBatch(delist, requestsForIds(request), \"ok\", options);\n}\n\nexport function batchUpdateProducts(\n update: (\n request: ProductRequest<UpdateOperation>,\n options?: BaseRequestOptions,\n ) => PromiseLike<SuccessData<UpdateOperation>>,\n request: BatchUpdateProductsRequest,\n options?: ProductBatchOptions,\n): Promise<BatchUpdateProductsResult> {\n if (\"productId\" in request || \"productIds\" in request)\n throw new TypeError(\"Use updates for a batch of catalog edits.\");\n validateItems(request.updates);\n const seen = new Set<string>();\n const updates = Array.from(request.updates, (update) => {\n const productId = normalizeProductId(update?.productId);\n if (seen.has(productId))\n throw new TypeError(\"Provide only one update per product ID.\");\n seen.add(productId);\n return { ...update, productId };\n });\n return runProductBatch(update, updates, \"success\", options);\n}\n","import type { OmniHttp } from \"./core/fetcher\";\nimport { OmniError } from \"./errors\";\nimport type { BaseRequestOptions } from \"./BaseClient\";\n\nconst SUCCESS_STATUSES = new Set([\n \"completed\",\n \"complete\",\n \"succeeded\",\n \"success\",\n]);\nconst FAILURE_STATUSES = new Set([\"failed\", \"error\"]);\nconst CANCELLED_STATUSES = new Set([\"cancelled\", \"canceled\"]);\nconst TERMINAL_STATUSES = new Set([\n ...SUCCESS_STATUSES,\n ...FAILURE_STATUSES,\n ...CANCELLED_STATUSES,\n]);\n\nexport type WaitForJobRequest = {\n jobId: string;\n organizationId?: string;\n};\n\nexport type WaitForJobOptions = BaseRequestOptions & {\n intervalMs?: number;\n timeoutInSeconds?: number;\n};\n\nexport class JobFailedError extends OmniError {\n readonly jobStatus: string;\n constructor(jobStatus: string, body: unknown) {\n super({\n message: `Job ended with status \"${jobStatus}\"`,\n body,\n });\n this.name = \"JobFailedError\";\n this.jobStatus = jobStatus;\n }\n}\n\nexport function readJobStatus(payload: unknown): string | undefined {\n if (!payload || typeof payload !== \"object\") return undefined;\n const record = payload as Record<string, unknown>;\n const nested = record.data;\n if (nested && typeof nested === \"object\") {\n const nestedStatus = (nested as Record<string, unknown>).status;\n if (typeof nestedStatus === \"string\" && nestedStatus.trim()) {\n return nestedStatus;\n }\n }\n if (typeof record.status === \"string\" && record.status.trim()) {\n return record.status;\n }\n return undefined;\n}\n\nexport async function waitForJob(\n http: OmniHttp,\n request: WaitForJobRequest,\n options?: WaitForJobOptions,\n): Promise<unknown> {\n const intervalMs = options?.intervalMs ?? 2000;\n const timeoutMs = (options?.timeoutInSeconds ?? 300) * 1000;\n const started = Date.now();\n\n while (true) {\n const result = await http.requestWithRaw<unknown>({\n method: \"GET\",\n path: `/api/v1/jobs/${encodeURIComponent(request.jobId)}`,\n query: request.organizationId\n ? { organizationId: request.organizationId }\n : undefined,\n timeoutInSeconds: options?.timeoutInSeconds,\n maxRetries: options?.maxRetries,\n abortSignal: options?.abortSignal,\n queryParams: options?.queryParams,\n headers: options?.headers,\n });\n const status = readJobStatus(result.data)?.toLowerCase();\n if (status && TERMINAL_STATUSES.has(status)) {\n if (SUCCESS_STATUSES.has(status)) return result.data;\n throw new JobFailedError(status, result.data);\n }\n if (Date.now() - started + intervalMs > timeoutMs) {\n throw new OmniError({\n message: `Timed out waiting for job ${request.jobId}`,\n body: result.data,\n });\n }\n await new Promise((resolve) => setTimeout(resolve, intervalMs));\n }\n}\n","/**\n * Auto-generated from docs/openapi.json. Do not edit.\n *\n * Resource methods take one request object and use\n * `get`/`list`/`create`-style names.\n */\n\nimport type { BaseRequestOptions } from \"../BaseClient\";\nimport { mergeRequestOptions, type OmniHttp } from \"../core/fetcher\";\nimport type { HttpResponsePromise } from \"../core/http-response-promise\";\nimport { toMultipartBody } from \"../core/multipart\";\nimport { encodePathParam } from \"../core/path\";\nimport {\n scanProducts,\n type ProductScanRequest,\n type ProductScanOptions,\n type ProductScanResult,\n} from \"../products\";\nimport {\n batchPublishProducts,\n batchDelistProducts,\n batchUpdateProducts,\n type BatchPublishProductsRequest,\n type BatchDelistProductsRequest,\n type BatchUpdateProductsRequest,\n type BatchPublishProductsResult,\n type BatchDelistProductsResult,\n type BatchUpdateProductsResult,\n type ProductBatchOptions,\n} from \"../product-batches\";\nimport type {\n OperationBody,\n OperationPath,\n OperationQuery,\n SuccessData,\n} from \"../types\";\nimport {\n waitForJob,\n type WaitForJobOptions,\n type WaitForJobRequest,\n} from \"../jobs\";\nimport type { operations } from \"./openapi\";\n\nexport class AgentsGeneralClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Invoke the Omni agent\n *\n * Run the general Omni agent and wait until it completes, pauses for approval, or fails. Requires `agents:invoke`.\n\nA waiting call can take several minutes; raise the client timeout. Send `decisions` with the same `thread_id` to approve or reject a paused run. Omit `config.enabled_tools` to use the organization's agent tools. Attach images on the latest user message as `{ type: \"image\", url }` HTTP(S) URLs.\n *\n * `POST /api/v1/agents/general/invoke`\n */\n invoke(\n request: OperationBody<operations[\"post_v1_agents_general_invoke\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_agents_general_invoke\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/agents/general/invoke\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Start an Omni agent run\n *\n * Queue the general Omni agent and return immediately with the run in `queued` state. Poll the URL in the `Location` header (`GET /api/v1/agents/general/runs/{runId}`), honoring `Retry-After`. Requires `agents:invoke`. The request body matches invoke.\n *\n * `POST /api/v1/agents/general/runs`\n */\n start(\n request: OperationBody<operations[\"post_v1_agents_general_runs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_agents_general_runs\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/agents/general/runs\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get an Omni agent run\n *\n * Read a queued, running, completed, paused, or failed Omni agent run. Requires `agents:invoke`.\n *\n * `GET /api/v1/agents/general/runs/{runId}`\n */\n getRun(\n request: OperationPath<operations[\"get_v1_agents_general_runs_by_runid\"]> &\n OperationQuery<operations[\"get_v1_agents_general_runs_by_runid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_agents_general_runs_by_runid\"]>\n > {\n const { runId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/agents/general/runs/${encodePathParam(\"runId\", runId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class AgentsClient {\n readonly general: AgentsGeneralClient;\n constructor(protected readonly _http: OmniHttp) {\n this.general = new AgentsGeneralClient(this._http);\n }\n}\n\nexport class AnalyticsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Ads Analytics\n *\n * Ad spend, attributed sales, ROAS, and ACOS over the last 28 days, and per-product sales and ad metrics for today, yesterday, 7-day and 28-day averages, and the same day one and four weeks ago. Matches the Ads page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. The periods count back from the end of the range.\n *\n * `GET /api/v1/analytics/ads`\n */\n getAds(\n request: OperationQuery<operations[\"get_v1_analytics_ads\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_ads\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/ads\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get AI Traffic Analytics\n *\n * Visits and crawls from AI assistants and search engines: totals, a daily trend, breakdowns by source, route, country, and product, and recent events. Matches the AI Traffic page. Requires `analytics:read`.\n\nA range covers at most 365 days; a longer one is shortened to the last 365 days. Read the applied range from `data.filters`.\n *\n * `GET /api/v1/analytics/ai-traffic`\n */\n getAiTraffic(\n request: OperationQuery<operations[\"get_v1_analytics_ai_traffic\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_analytics_ai_traffic\"]>\n > {\n const {\n organizationId,\n from,\n to,\n timeZone,\n source,\n trafficType,\n route,\n country,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/ai-traffic\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n source,\n trafficType,\n route,\n country,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Video and LIVE Analytics\n *\n * Views, product clicks, orders, and GMV from shoppable videos and LIVE streams, by day, by content type, and per video. Matches the Video / LIVE page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/content`\n */\n getContent(\n request: OperationQuery<operations[\"get_v1_analytics_content\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_content\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/content\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Order Analytics\n *\n * Order KPIs with their change against the previous period, a daily trend, sales by order status and by marketplace, and the top products by net sales. Repeat buyers are counted but not listed. Matches the Orders analysis page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/orders`\n */\n getOrders(\n request: OperationQuery<operations[\"get_v1_analytics_orders\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_orders\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/orders\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Growth Overview\n *\n * Sales, traffic, and profit KPIs with their change against the previous period, a daily trend, the traffic funnel, sales by channel, top and lagging products, and ranked next actions. Matches the Growth Intelligence overview page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/overview`\n */\n getOverview(\n request: OperationQuery<operations[\"get_v1_analytics_overview\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_overview\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/overview\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Pricing Analytics\n *\n * Selling products with their margin, velocity, stock cover, prices, competitor median, and a pricing recommendation. Matches the Pricing page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/pricing`\n */\n getPricing(\n request: OperationQuery<operations[\"get_v1_analytics_pricing\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_pricing\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/pricing\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Product Analytics\n *\n * Per-product sales, traffic, price, stock, profit, and ad performance, ranked by net sales, with ranked insights. Pass `productId` for specific products, for example on a product page. Matches the Products page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/products`\n */\n getProducts(\n request: OperationQuery<operations[\"get_v1_analytics_products\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_products\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n q,\n productId,\n limit,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/products\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n q,\n productId,\n limit,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Profit Analytics\n *\n * Revenue, costs, fees, and profit with a waterfall, cost breakdowns, a daily trend, the most and least profitable products, and products missing a cost price. Session members also need finance access. Matches the P&L Analysis page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/profit`\n */\n getProfit(\n request: OperationQuery<operations[\"get_v1_analytics_profit\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_profit\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n sku,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/profit\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n sku,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Business Report\n *\n * The management summary: headline KPIs, top products, sales by marketplace, alerts, settlement totals, and data quality. Matches the Business Reports page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/reports`\n */\n getReports(\n request: OperationQuery<operations[\"get_v1_analytics_reports\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_reports\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/reports\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Store Analytics\n *\n * Seller Centre shop metrics: visitors, page views, followers, the placed, paid, and confirmed buyer funnel, a daily trend, and the app and web split. Matches the Analytics (Seller Centre) page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/stores`\n */\n getStores(\n request: OperationQuery<operations[\"get_v1_analytics_stores\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_stores\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/stores\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Traffic Analytics\n *\n * Impressions, page views, visitors, add-to-cart, and conversion, with the funnel, a daily trend, products ranked by lost conversion, diagnostics, and the videos that drive traffic. Matches the Traffic page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.\n *\n * `GET /api/v1/analytics/traffic`\n */\n getTraffic(\n request: OperationQuery<operations[\"get_v1_analytics_traffic\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_analytics_traffic\"]>> {\n const {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/analytics/traffic\",\n query: {\n organizationId,\n from,\n to,\n timeZone,\n marketplace,\n country,\n store,\n currency,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class AopClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get AOP configuration\n *\n * Retrieve prompt, agent, structured inputs/output, and notification settings. Requires `aops:read`.\n *\n * `GET /api/v1/aop/{aopId}/config`\n */\n getConfig(\n request: OperationPath<operations[\"get_v1_aop_by_aopid_config\"]> &\n OperationQuery<operations[\"get_v1_aop_by_aopid_config\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_aop_by_aopid_config\"]>\n > {\n const { aopId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/aop/${encodePathParam(\"aopId\", aopId)}/config`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Overwrite AOP configuration\n *\n * Updates AOP configuration. Omitted fields keep their current values. Send `user_notification_configs: null` to clear notification overrides. Requires `aops:write`.\n *\n * `PUT /api/v1/aop/{aopId}/config`\n */\n updateConfig(\n request: OperationPath<operations[\"put_v1_aop_by_aopid_config\"]> &\n OperationBody<operations[\"put_v1_aop_by_aopid_config\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"put_v1_aop_by_aopid_config\"]>\n > {\n const { aopId, ...body } = request ?? {};\n return this._http.request({\n method: \"PUT\",\n path: `/api/v1/aop/${encodePathParam(\"aopId\", aopId)}/config`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Execute an AOP\n *\n * Start an AOP run and return immediately with a `thread_id`. Poll `GET /api/v1/threads/{thread_id}/status`. Requires `aops:write`.\n *\n * `POST /api/v1/aop/{aopId}/execute`\n */\n execute(\n request: OperationPath<operations[\"post_v1_aop_by_aopid_execute\"]> &\n OperationBody<operations[\"post_v1_aop_by_aopid_execute\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_aop_by_aopid_execute\"]>\n > {\n const { aopId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/aop/${encodePathParam(\"aopId\", aopId)}/execute`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create AOP\n *\n * Create an organization-scoped AOP. Use `[[ placeholder ]]` in the prompt for user inputs supplied at execution time. Requires `aops:write`.\n *\n * `POST /api/v1/aop/create`\n */\n create(\n request: OperationBody<operations[\"post_v1_aop_create\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_aop_create\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/aop/create\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Retry a failed AOP execution\n *\n * Looks up a failed AOP thread, then enqueues a new run. Requires `aops:write`.\n *\n * `POST /api/v1/aop/retry`\n */\n retry(\n request: OperationBody<operations[\"post_v1_aop_retry\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_aop_retry\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/aop/retry\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ApiClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Discover a published merchant agent\n *\n * A2A 1.0 Agent Card for any configured agent published to a customer deployment. Private model settings, prompts and publisher identity are excluded.\n *\n * `GET /api/embed/{deploymentId}/.well-known/agent-card.json`\n */\n getEmbedwellKnownagentCardJson(\n request: OperationPath<\n operations[\"get_embed_by_deploymentid_well_known_agent_card_json\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<\n operations[\"get_embed_by_deploymentid_well_known_agent_card_json\"]\n >\n > {\n const { deploymentId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/embed/${encodePathParam(\"deploymentId\", deploymentId)}/.well-known/agent-card.json`,\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Call a merchant agent using A2A\n *\n * Official A2A 1.0 JSON-RPC SendMessage, GetTask and CancelTask.\n\n### Authentication\n\nUses the existing customer JWT from /api/embed/{deploymentId}/session; send the same Origin when creating and using the session.\n\n### Messages\n\nSendMessage accepts text user messages with a UUID messageId and up to 4000 characters. For asynchronous execution set configuration.returnImmediately=true and retrieve the task. Every task is bound to the customer session.\n\nBot verification and storefront protection apply. Payment proofs belong in the checkout completion endpoint, outside model messages.\n\n### Signed offers and buyer agents\n\nPayable offers in purchase-offers artifacts include checkoutJwt when the platform signing key is configured. Requests may carry a Web Bot Auth signature; the verified agent orig\n *\n * `POST /api/embed/{deploymentId}/a2a`\n */\n embeda2a(\n request: OperationPath<operations[\"post_embed_by_deploymentid_a2a\"]> &\n OperationBody<operations[\"post_embed_by_deploymentid_a2a\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_embed_by_deploymentid_a2a\"]>\n > {\n const { deploymentId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/embed/${encodePathParam(\"deploymentId\", deploymentId)}/a2a`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Manage customer-owned purchase offers\n *\n * ### Operations\n\ncreate: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe-hosted card entry.\n\n### Results and safeguards\n\nBatches return ordered per-target results, succeededCount and failedCount. At most ten unpaid offers may be held per customer. Merchant-approved currency, countries, shipping and tax terms are required. Shopify-listed products return the supported Shopify checkout handoff.\n\n### Payment\n\nCompletion reuses the existing Stripe ACP or x402 rail. Hosted card checkout requires this org\n *\n * `POST /api/embed/{deploymentId}/checkout-sessions/{operation}`\n */\n embedcheckoutSessions(\n request: OperationPath<\n operations[\"post_embed_by_deploymentid_checkout_sessions_by_operation\"]\n > &\n OperationBody<\n operations[\"post_embed_by_deploymentid_checkout_sessions_by_operation\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<\n operations[\"post_embed_by_deploymentid_checkout_sessions_by_operation\"]\n >\n > {\n const { deploymentId, operation, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/embed/${encodePathParam(\"deploymentId\", deploymentId)}/checkout-sessions/${encodePathParam(\"operation\", operation)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class BrandKitsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Brand Kits\n *\n * List full brand kits and canonical image-source websites. Requires branding:read. Supports q, limit (1–1000), and offset. Bearer credentials resolve the organization; sessions supply organizationId.\n *\n * `GET /api/v1/brand-kits`\n */\n list(\n request: OperationQuery<operations[\"get_v1_brand_kits\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_brand_kits\"]>> {\n const { organizationId, q, limit, offset } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/brand-kits\",\n query: { organizationId, q, limit, offset },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Brand Kit\n *\n * Create a full brand kit with optional imageSourceUrls. Requires branding:write. All brandKit fields are supported; omitted fields receive canonical defaults.\n\nSource websites accept HTTP(S) URLs or domain/path scopes and return normalized host/path values. The kit and sources save atomically. Use public HTTP(S) URLs for logo/icons; embedded images are rejected.\n *\n * `POST /api/v1/brand-kits`\n */\n create(\n request: OperationBody<operations[\"post_v1_brand_kits\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_brand_kits\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/brand-kits\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Brand Kit\n *\n * Delete the organization-owned kit and its saved brand image-source websites. Requires branding:write. Historical job snapshots are preserved.\n *\n * `DELETE /api/v1/brand-kits/{brandKitId}`\n */\n delete(\n request: OperationPath<operations[\"delete_v1_brand_kits_by_brandkitid\"]> &\n OperationQuery<operations[\"delete_v1_brand_kits_by_brandkitid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_brand_kits_by_brandkitid\"]>\n > {\n const { brandKitId, organizationId } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/brand-kits/${encodePathParam(\"brandKitId\", brandKitId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Brand Kit\n *\n * Read the complete kit and imageSourceUrls. Requires branding:read.\n *\n * `GET /api/v1/brand-kits/{brandKitId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_brand_kits_by_brandkitid\"]> &\n OperationQuery<operations[\"get_v1_brand_kits_by_brandkitid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_brand_kits_by_brandkitid\"]>\n > {\n const { brandKitId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/brand-kits/${encodePathParam(\"brandKitId\", brandKitId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Brand Kit\n *\n * Edit name, any nested brandKit fields, and imageSourceUrls. Requires branding:write. Nested objects merge and arrays replace; omitted fields are preserved.\n\nimageSourceUrls: [] clears websites. Renaming keeps source websites attached. Parent kit IDs must belong to this organization. Existing running jobs keep their frozen source snapshot until explicitly retried with brandKitIds.\n *\n * `PATCH /api/v1/brand-kits/{brandKitId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_brand_kits_by_brandkitid\"]> &\n OperationBody<operations[\"patch_v1_brand_kits_by_brandkitid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_brand_kits_by_brandkitid\"]>\n > {\n const { brandKitId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/brand-kits/${encodePathParam(\"brandKitId\", brandKitId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class BrandsgatewayClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Import BrandsGateway Products\n *\n * Requires catalog:write and a connected BrandsGateway account. Uses the same parameters and import service as the import_brandsgateway_products tool.\n\n### Selection\n\nChoose catalogProductIds or importAllMatching with filters. maxProducts limits new imports to 1–50 across pages (default 50); already imported products are skipped. Numeric brandIds, vendorIds (supplier warehouses), categoryIds, and conditionIds arrays match any value within each field and all supplied fields together. Omit a field for no restriction; empty arrays and legacy singular/string filters are rejected. Brands accept at most 500 IDs; other filter arrays accept at most 50 each. Broad combinations may exceed the supplier request budget and return a failure asking you to narrow the filters.\n\n### Updated dates and enrichme\n *\n * `POST /api/v1/brandsgateway/import`\n */\n importProducts(\n request: OperationBody<operations[\"post_v1_brandsgateway_import\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_brandsgateway_import\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/brandsgateway/import\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class BulkClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Catalog Operations for Session\n *\n * Read the latest 20 compact catalog-operation summaries linked to an authorized session. Requires catalog:read; product data scope is rechecked.\n *\n * `GET /api/v1/catalog/operations`\n */\n listForSession(\n request: OperationQuery<operations[\"get_v1_catalog_operations\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_catalog_operations\"]>> {\n const { organizationId, sessionId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/catalog/operations\",\n query: { organizationId, sessionId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Start Catalog Operation\n *\n * Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write. Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.\n *\n * `POST /api/v1/catalog/operations`\n */\n start(\n request: OperationBody<operations[\"post_v1_catalog_operations\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_catalog_operations\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/catalog/operations\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Catalog Operation Results\n *\n * Read ordered per-product receipts and verification evidence for up to 50 operationIds. Filter status=failed to inspect failures directly. At most 100 rows across the requested operations per page. Requires catalog:read.\n *\n * `POST /api/v1/catalog/operations/results`\n */\n results(\n request: OperationBody<operations[\"post_v1_catalog_operations_results\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_catalog_operations_results\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/catalog/operations/results\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Catalog Operation Status\n *\n * Read compact progress for up to 50 operationIds in first-requested order. Pending is incomplete, and partial failures remain explicit. Requires catalog:read. Detailed receipts are returned only by the paginated report API.\n *\n * `POST /api/v1/catalog/operations/status`\n */\n status(\n request: OperationBody<operations[\"post_v1_catalog_operations_status\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_catalog_operations_status\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/catalog/operations/status\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class CampaignsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Campaigns\n *\n * List campaigns for the authenticated organization. `stage=all` is the workspace working set: draft and running. Requires `promotions:read`.\n *\n * `GET /api/v1/campaigns`\n */\n list(\n request: OperationQuery<operations[\"get_v1_campaigns\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_campaigns\"]>> {\n const {\n organizationId,\n q,\n marketplace,\n store,\n stage,\n offset,\n limit,\n sortBy,\n sortDir,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/campaigns\",\n query: {\n organizationId,\n q,\n marketplace,\n store,\n stage,\n offset,\n limit,\n sortBy,\n sortDir,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Campaign\n *\n * Create a draft campaign. `ownerId` and `approverId` must be members of the organization, and every store must already be connected. Requires `promotions:write`.\n *\n * `POST /api/v1/campaigns`\n */\n create(\n request: OperationBody<operations[\"post_v1_campaigns\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_campaigns\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Campaign\n *\n * Read one campaign, including its plan, executions, audit, schedule, and progress. Requires `promotions:read`.\n *\n * `GET /api/v1/campaigns/{campaignId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_campaigns_by_campaignid\"]> &\n OperationQuery<operations[\"get_v1_campaigns_by_campaignid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_campaigns_by_campaignid\"]>\n > {\n const { campaignId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Change Campaign Details\n *\n * Partially edit the brief, upsert windows and promotion offers by stable id, or explicitly remove offer/window IDs. Omitted fields and children stay unchanged. Uses the campaign editor's canonical merger and marketplace validation.\n\nRunning edits build on the pending proposal and require named-approver approval before delivery. Send expectedRevision; expectedPendingVersion can guard a reviewed proposal (null for none). Requires promotions:write.\n *\n * `PATCH /api/v1/campaigns/{campaignId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_campaigns_by_campaignid\"]> &\n OperationBody<operations[\"patch_v1_campaigns_by_campaignid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_campaigns_by_campaignid\"]>\n > {\n const { campaignId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Campaign\n *\n * Replace a draft or approved plan, or propose one change to a running plan. Send `expectedRevision` from the last read. Requires `promotions:write`.\n *\n * `PUT /api/v1/campaigns/{campaignId}`\n */\n replace(\n request: OperationPath<operations[\"put_v1_campaigns_by_campaignid\"]> &\n OperationBody<operations[\"put_v1_campaigns_by_campaignid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"put_v1_campaigns_by_campaignid\"]>\n > {\n const { campaignId, ...body } = request ?? {};\n return this._http.request({\n method: \"PUT\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Act on Campaign\n *\n * Approve, start, end, resume, retry, or decide a proposed live change. Approve, run, resume, and approving a change must be called by the named approver. Requires `promotions:write`.\n *\n * `POST /api/v1/campaigns/{campaignId}/actions`\n */\n actions(\n request: OperationPath<\n operations[\"post_v1_campaigns_by_campaignid_actions\"]\n > &\n OperationBody<operations[\"post_v1_campaigns_by_campaignid_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_campaigns_by_campaignid_actions\"]>\n > {\n const { campaignId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}/actions`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Campaign Analytics\n *\n * Read the same imported-order campaign analytics as the application. Monetary totals are partitioned by currency. Optional analyticsWindow selects one campaign window; voucher utilisation limitations are explicit.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `GET /api/v1/campaigns/{campaignId}/analytics`\n */\n getAnalytics(\n request: OperationPath<\n operations[\"get_v1_campaigns_by_campaignid_analytics\"]\n > &\n OperationQuery<operations[\"get_v1_campaigns_by_campaignid_analytics\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_campaigns_by_campaignid_analytics\"]>\n > {\n const { campaignId, organizationId, analyticsWindow } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}/analytics`,\n query: { organizationId, analyticsWindow },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Campaign Notifications\n *\n * Read the executing actor's campaign notification preference.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `GET /api/v1/campaigns/{campaignId}/notifications`\n */\n getNotifications(\n request: OperationPath<\n operations[\"get_v1_campaigns_by_campaignid_notifications\"]\n > &\n OperationQuery<\n operations[\"get_v1_campaigns_by_campaignid_notifications\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_campaigns_by_campaignid_notifications\"]>\n > {\n const { campaignId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}/notifications`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Set Campaign Notifications\n *\n * Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `PUT /api/v1/campaigns/{campaignId}/notifications`\n */\n setNotifications(\n request: OperationPath<\n operations[\"put_v1_campaigns_by_campaignid_notifications\"]\n > &\n OperationBody<operations[\"put_v1_campaigns_by_campaignid_notifications\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"put_v1_campaigns_by_campaignid_notifications\"]>\n > {\n const { campaignId, ...body } = request ?? {};\n return this._http.request({\n method: \"PUT\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}/notifications`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * List Campaign Offers\n *\n * Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `GET /api/v1/campaigns/{campaignId}/offers`\n */\n listOffers(\n request: OperationPath<\n operations[\"get_v1_campaigns_by_campaignid_offers\"]\n > &\n OperationQuery<operations[\"get_v1_campaigns_by_campaignid_offers\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_campaigns_by_campaignid_offers\"]>\n > {\n const { campaignId, kind, window, review, offset, limit, organizationId } =\n request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/campaigns/${encodePathParam(\"campaignId\", campaignId)}/offers`,\n query: { kind, window, review, offset, limit, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Act on Campaigns\n *\n * Apply one action to 1–20 reviewed targets. Approve, run, approve_and_run, end, resume, retry, approve_change, discard_change, archive, restore or delete. Requires each expectedRevision and the pending version for live-change decisions. Named-approver and current role/store checks remain enforced. Duplicates execute once; partial failures remain explicit. Starting queues durable delivery; inspect campaign executions to verify marketplace outcomes.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/campaigns/actions`\n */\n actBatch(\n request: OperationBody<operations[\"post_v1_campaigns_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_campaigns_actions\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/actions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Archive Campaigns\n *\n * Archive campaigns, or restore archived campaigns by id or by the current archived list filters. Requires `promotions:write`.\n *\n * `POST /api/v1/campaigns/archive`\n */\n archive(\n request: OperationBody<operations[\"post_v1_campaigns_archive\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_campaigns_archive\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/archive\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Campaigns\n *\n * Permanently delete archived campaigns by explicit id or by archived list filters. Requires `promotions:write`.\n *\n * `POST /api/v1/campaigns/delete`\n */\n delete(\n request: OperationBody<operations[\"post_v1_campaigns_delete\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_campaigns_delete\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/delete\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Import Campaign Workbooks\n *\n * Import 1–10 uploaded Excel document IDs. Preview defaults to true; set preview=false to save. Re-upload one document with campaignId to update a campaign. To apply a running campaign immediately, use applyChanges=true with the reviewed expectedRevision and expectedPendingVersion (null when none); only the named approver with publish permission may apply. Changed values and qualifying SKU removals use canonical marketplace validation and durable sync. Requires documents:read in addition to promotions:write. No browser session is required.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/campaigns/import`\n */\n importBriefs(\n request: OperationBody<operations[\"post_v1_campaigns_import\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_campaigns_import\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/import\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Campaign Options\n *\n * List the organization members and connected stores a campaign plan can name. Use a member `id` for `ownerId` and `approverId`. Requires `promotions:write`.\n *\n * `GET /api/v1/campaigns/options`\n */\n getOptions(\n request: OperationQuery<operations[\"get_v1_campaigns_options\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_campaigns_options\"]>> {\n const { organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/campaigns/options\",\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Resolve Campaign Promotion Selection\n *\n * Read 1–50 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/campaigns/promotion-options`\n */\n resolvePromotionOptions(\n request: OperationBody<operations[\"post_v1_campaigns_promotion_options\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_campaigns_promotion_options\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/promotion-options\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Validate Campaigns\n *\n * Read-only preflight of 1–10 saved campaign IDs or proposed plans. Uses the same readiness, connected-store and offer validation as approval. shiftToNow returns a proposed shifted plan; syncMode=campaign_start selects Full sync. Neither option saves or publishes. Save the returned plan with the reviewed revision before approve_and_run. Current marketplace delivery is separate execution evidence.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/campaigns/validate`\n */\n validate(\n request: OperationBody<operations[\"post_v1_campaigns_validate\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_campaigns_validate\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/campaigns/validate\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class CatalogClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Export Catalog Items\n *\n * Cursor-page the authenticated organization's product and variant catalog for pricing systems. Requires `catalog:read`.\n\nEach item includes product-family identity, SKU/UPC, cost, current, sale, compare-at, MAP, and MSRP prices, inventory, active promotion context, and exact marketplace identifiers. Set `format=csv` for a flat catalog-intake CSV shape.\n *\n * `GET /api/v1/catalog/items`\n */\n listItems(\n request: OperationQuery<operations[\"get_v1_catalog_items\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_catalog_items\"]>> {\n const { organizationId, updatedSince, cursor, limit, format } =\n request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/catalog/items\",\n query: { organizationId, updatedSince, cursor, limit, format },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Query Catalog\n *\n * Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match. Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.\n *\n * `POST /api/v1/catalog/query`\n */\n query(\n request: OperationBody<operations[\"post_v1_catalog_query\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_catalog_query\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/catalog/query\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class CheckoutSessionsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Create Agentic Checkout Session\n *\n * Create a merchant-fulfilled checkout session, reserve inventory, and return rail-specific payment requirements. Requires an OAuth client token with `checkout:write`.\n *\n * `POST /api/v1/checkout-sessions`\n */\n create(\n request: OperationBody<operations[\"post_v1_checkout_sessions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_checkout_sessions\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/checkout-sessions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Agentic Checkout Session\n *\n * Fetch the current checkout session, cart items, totals, payment requirements, and linked order when completed.\n *\n * `GET /api/v1/checkout-sessions/{sessionId}`\n */\n get(\n request: OperationPath<\n operations[\"get_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<operations[\"get_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Agentic Checkout Session\n *\n * Update cart/contact fields, recompute totals, and refresh inventory reservations before payment. Requires `checkout:write`.\n *\n * `PATCH /api/v1/checkout-sessions/{sessionId}`\n */\n update(\n request: OperationPath<\n operations[\"patch_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<operations[\"patch_v1_checkout_sessions_by_sessionid\"]> &\n OperationBody<operations[\"patch_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Replace Agentic Checkout Session Fields\n *\n * UCP-compatible update method for cart/contact fields. The current implementation applies provided fields and leaves omitted fields unchanged. Requires `checkout:write`.\n *\n * `PUT /api/v1/checkout-sessions/{sessionId}`\n */\n replace(\n request: OperationPath<\n operations[\"put_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<operations[\"put_v1_checkout_sessions_by_sessionid\"]> &\n OperationBody<operations[\"put_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"put_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PUT\",\n path: `/api/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Cancel Agentic Checkout Session\n *\n * Cancel a ready-for-payment checkout session and release reserved inventory. This operation is exposed for UCP REST clients and requires `checkout:write`.\n *\n * `POST /api/v1/checkout-sessions/{sessionId}/cancel`\n */\n cancel(\n request: OperationPath<\n operations[\"post_v1_checkout_sessions_by_sessionid_cancel\"]\n > &\n OperationQuery<\n operations[\"post_v1_checkout_sessions_by_sessionid_cancel\"]\n > &\n Record<string, unknown>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_checkout_sessions_by_sessionid_cancel\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}/cancel`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Complete Agentic Checkout Session\n *\n * Settle the selected rail and create a native `agentic` order. Definitive settlement failures return 402. Pending confirmation locks the offer in `payment_pending`; durable recovery resumes the same attempt.\n *\n * `POST /api/v1/checkout-sessions/{sessionId}/complete`\n */\n complete(\n request: OperationPath<\n operations[\"post_v1_checkout_sessions_by_sessionid_complete\"]\n > &\n OperationQuery<\n operations[\"post_v1_checkout_sessions_by_sessionid_complete\"]\n > &\n OperationBody<\n operations[\"post_v1_checkout_sessions_by_sessionid_complete\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_checkout_sessions_by_sessionid_complete\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}/complete`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class CommerceClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Await Commerce Jobs\n *\n * Wait for a mixed batch of returned commerce correlations: inventory_job, price_event, price_book_sync, publish_job, delist_batch, store_switch, omni_delete, zalora_import, enrichment_batch, order_action and return_action.\n\n### Request limits and access\n\nMaximum 50000 entries; IDs are trimmed and duplicates collapse by kind/id in first-requested order. timeoutMs=0 reads once; bounded waits allow up to 120000ms. Catalog jobs require catalog:read; order/return jobs require orders:read; mixed batches require both. Session callers include organizationId.\n\n### Result interpretation\n\nEvery job retains its target identity, status, errors and available label artifacts. Missing or inaccessible fulfillment jobs fail explicitly. needs_review is an uncertain outcome, never automatic success or authoriz\n *\n * `POST /api/v1/commerce/jobs/await`\n */\n awaitJobs(\n request: OperationBody<operations[\"post_v1_commerce_jobs_await\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_commerce_jobs_await\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/commerce/jobs/await\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Verify Commerce State\n *\n * Perform fresh marketplace verification using the canonical services for every supported marketplace.\n\n### Targets and access\n\nFor products provide productIds plus expected, or targets[{productId,expected}] for mixed values. For order, return and price-book operations provide their returned order_action/return_action/price_book_sync correlations; product and fulfillment checks may share one request. Maximum 50000 entries per target array, with bounded concurrency. Catalog verification requires catalog:read; fulfillment verification requires orders:read; mixed batches require both. Session callers include organizationId.\n\n### Verification results\n\nMissing, unauthorized, unsupported and unconfirmed targets fail explicitly. A return decision can be confirmed while later lifecycle steps remain\n *\n * `POST /api/v1/commerce/state/verify`\n */\n verifyState(\n request: OperationBody<operations[\"post_v1_commerce_state_verify\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_commerce_state_verify\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/commerce/state/verify\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Start Commerce Verification\n *\n * Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read. Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.\n *\n * `POST /api/v1/commerce/state/verify/jobs`\n */\n startVerification(\n request: OperationBody<operations[\"post_v1_commerce_state_verify_jobs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_commerce_state_verify_jobs\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/commerce/state/verify/jobs\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class CompareClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Compare Public Products\n *\n * Compare 2 to 10 public products side-by-side across price, ACO readiness, marketplace coverage, and inventory.\n *\n * `GET /api/v1/compare`\n */\n get(\n request: OperationQuery<operations[\"get_v1_compare\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_compare\"]>> {\n const { products, language } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/compare\",\n query: { products, language },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class DirectoryClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Public Merchants\n *\n * Discover merchants with public products available through OmniCommerce's public agent APIs.\n *\n * `GET /api/v1/directory`\n */\n list(\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_directory\"]>> {\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/directory\",\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class DocumentsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Upload Document\n *\n * Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.\n\nAccepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to 10 MB, images up to 8 MB, CSV and Markdown up to 2 MB. PDFs, Word, PowerPoint, Markdown, and images are indexed in the background; poll `GET /api/v1/documents/{documentId}` until `status` is `completed`. CSV and Excel are stored for agents to read but are not indexed.\n *\n * `POST /api/v1/documents`\n */\n upload(\n request: OperationBody<operations[\"post_v1_documents\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_documents\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/documents\",\n query: undefined,\n body: toMultipartBody(body),\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Document\n *\n * Read one knowledge base document and its indexing status. Requires `documents:read`. Set includeDownloadUrl=true for a private file URL valid for five minutes, suitable for SDK file downloads. URLs are scoped to the authenticated organization and are not returned for bank statements. Responses must not be cached.\n *\n * `GET /api/v1/documents/{documentId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_documents_by_documentid\"]> &\n OperationQuery<operations[\"get_v1_documents_by_documentid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_documents_by_documentid\"]>\n > {\n const { documentId, organizationId, includeDownloadUrl } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/documents/${encodePathParam(\"documentId\", documentId)}`,\n query: { organizationId, includeDownloadUrl },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class EvaluateClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Evaluate SKU Readiness\n *\n * Score a persisted product or inline SKU payload for agentic commerce readiness, engine eligibility, and recommended fixes.\n *\n * `POST /api/v1/evaluate`\n */\n run(\n request: Record<string, unknown> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_evaluate\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/evaluate\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class FeedClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Merchant LLM Feed\n *\n * Return a plain-text, LLM-optimized merchant feed keyed by website domain.\n *\n * `GET /api/v1/feed/{domain}/llms.txt`\n */\n getLlmsTxt(\n request: OperationPath<operations[\"get_v1_feed_by_domain_llms_txt\"]> &\n OperationQuery<operations[\"get_v1_feed_by_domain_llms_txt\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_feed_by_domain_llms_txt\"]>\n > {\n const { domain, limit } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/feed/${encodePathParam(\"domain\", domain)}/llms.txt`,\n query: { limit },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ImagesClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Generate Ghost Mannequin Image\n *\n * Remove the visible mannequin from a product photo and return the generated image URL. The source image must be an HTTP(S) URL; data URIs are rejected. Authenticate with an OmniCommerce API key that has the `catalog:enrich` scope.\n *\n * `POST /api/v1/images/ghost-mannequin`\n */\n ghostMannequin(\n request: OperationBody<operations[\"post_v1_images_ghost_mannequin\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_images_ghost_mannequin\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/images/ghost-mannequin\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class InventoryClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Inventory Groups\n *\n * Read active inventory using the same canonical quantities, filters and grouping as the inventory assistant. Requires catalog:read and inventory.read permission. Organization scope comes only from the credential.\n\n### Stock and listing absence\n\nstatus=in_stock means positive available stock (on hand minus locked), with variants rolled up for product groups. unlistedMarketplaces checks every organization store and the entire saved catalog, including product/variant identities, exact catalog SKUs, and historical listings. Source marketplace/country/storeIds filters do not restrict absence evidence. All supported marketplaces are accepted.\n\nlistingPresence reports saved-catalog evidence and unknown missing-SKU families. It does not establish fresh live marketplace absence. Stock quantities fro\n *\n * `GET /api/v1/inventory`\n */\n list(\n request: OperationQuery<operations[\"get_v1_inventory\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_inventory\"]>> {\n const {\n productIds,\n query,\n marketplace,\n country,\n storeIds,\n unlistedMarketplaces,\n groupBy,\n status,\n offset,\n limit,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/inventory\",\n query: {\n productIds,\n query,\n marketplace,\n country,\n storeIds,\n unlistedMarketplaces,\n groupBy,\n status,\n offset,\n limit,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class JobsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Developer Job Status\n *\n * Fetch shared async status for developer-platform operations, including product workflow jobs, bulk CSV import jobs, Look generation jobs, import jobs, enrichment jobs, price comparison jobs, and sync jobs.\n\nPrice comparison jobs expose partial progress in data.results and their final batch result in data.result; completed means processing finished, so inspect data.result.success for comparison failures.\n *\n * `GET /api/v1/jobs/{jobId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_jobs_by_jobid\"]> &\n OperationQuery<operations[\"get_v1_jobs_by_jobid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_jobs_by_jobid\"]>> {\n const { jobId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/jobs/${encodePathParam(\"jobId\", jobId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Cancel Developer Job\n *\n * Request cancellation for a running or pending developer job.\n\nSupported jobs:\n\n- Product workflows returned by `POST /api/v1/products`\n\n- Bulk CSV imports returned by `POST /api/v1/products/bulk-import`\n\n- Look generation returned by `POST /api/v1/looks`\n\nCompleted or failed jobs cannot be cancelled and are returned with their current terminal status.\n *\n * `POST /api/v1/jobs/{jobId}/cancel`\n */\n cancel(\n request: OperationPath<operations[\"post_v1_jobs_by_jobid_cancel\"]> &\n OperationBody<operations[\"post_v1_jobs_by_jobid_cancel\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_jobs_by_jobid_cancel\"]>\n > {\n const { jobId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/jobs/${encodePathParam(\"jobId\", jobId)}/cancel`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Poll `GET /api/v1/jobs/{jobId}` until the nested job status is terminal.\n */\n wait(\n request: WaitForJobRequest,\n requestOptions?: WaitForJobOptions,\n ): Promise<unknown> {\n return waitForJob(this._http, request, requestOptions);\n }\n}\n\nexport class LooksClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Looks\n *\n * List AI-styled product Looks for the authenticated organization, newest first. Use query parameters for search, status filtering, and pagination.\n *\n * `GET /api/v1/looks`\n */\n list(\n request: OperationQuery<operations[\"get_v1_looks\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_looks\"]>> {\n const { q, status, limit, offset } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/looks\",\n query: { q, status, limit, offset },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Look\n *\n * Create a Look from existing catalog products and queue AI image generation for a fast preview. The response is asynchronous: poll `GET /api/v1/jobs/{jobId}?organizationId={organizationId}` until the `look_...` job completes, then fetch the generated Look with `GET /api/v1/looks/{lookId}`.\n *\n * `POST /api/v1/looks`\n */\n create(\n request: OperationBody<operations[\"post_v1_looks\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_looks\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/looks\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Look\n *\n * Fetch a single Look by ID, including the generated hero image URL and the shoppable product cards used in the Look.\n *\n * `GET /api/v1/looks/{lookId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_looks_by_lookid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_looks_by_lookid\"]>> {\n const { lookId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/looks/${encodePathParam(\"lookId\", lookId)}`,\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class MarketplacesClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Connected Marketplaces\n *\n * List connected marketplace stores for the authenticated organization. Results are scoped to the API key organization unless `organizationId` is supplied for session-authenticated calls.\n *\n * `GET /api/v1/marketplaces/connected`\n */\n listConnected(\n request: OperationQuery<operations[\"get_v1_marketplaces_connected\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_marketplaces_connected\"]>\n > {\n const { organizationId, marketplace, country } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/marketplaces/connected\",\n query: { organizationId, marketplace, country },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class MerchantsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Public Merchant Manifest\n *\n * Return machine-readable capability and endpoint metadata for a single public merchant.\n *\n * `GET /api/v1/merchants/{merchantId}/manifest`\n */\n getManifest(\n request: OperationPath<\n operations[\"get_v1_merchants_by_merchantid_manifest\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_merchants_by_merchantid_manifest\"]>\n > {\n const { merchantId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/merchants/${encodePathParam(\"merchantId\", merchantId)}/manifest`,\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * List Public Merchant Products\n *\n * Browse a single merchant's public product feed with optional marketplace and localization filters.\n *\n * `GET /api/v1/merchants/{merchantId}/products`\n */\n listProducts(\n request: OperationPath<\n operations[\"get_v1_merchants_by_merchantid_products\"]\n > &\n OperationQuery<operations[\"get_v1_merchants_by_merchantid_products\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_merchants_by_merchantid_products\"]>\n > {\n const { merchantId, platform, country, language, limit, offset } =\n request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/merchants/${encodePathParam(\"merchantId\", merchantId)}/products`,\n query: { platform, country, language, limit, offset },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Search Within Public Merchant Catalog\n *\n * Search within a single merchant's public product feed using the same filter model as the cross-merchant search API.\n *\n * `GET /api/v1/merchants/{merchantId}/search`\n */\n search(\n request: OperationPath<\n operations[\"get_v1_merchants_by_merchantid_search\"]\n > &\n OperationQuery<operations[\"get_v1_merchants_by_merchantid_search\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_merchants_by_merchantid_search\"]>\n > {\n const {\n merchantId,\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/merchants/${encodePathParam(\"merchantId\", merchantId)}/search`,\n query: {\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class MonitorClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Run AI Shelf Share Monitor\n *\n * Queue AI Shelf Share replay/monitoring for a product, query, or organization catalog.\n *\n * `POST /api/v1/monitor`\n */\n run(\n request: Record<string, unknown> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_monitor\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/monitor\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class OauthClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Revoke Access Token\n *\n * Revoke an OAuth bearer access token using client_secret_post authentication.\n *\n * `POST /api/v1/oauth/revoke`\n */\n revoke(\n request: OperationBody<operations[\"post_v1_oauth_revoke\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_oauth_revoke\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/oauth/revoke\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Access Token\n *\n * Exchange client credentials for an access token using OAuth 2.0 client_credentials grant. Tokens are valid for 1 hour.\n *\n * `POST /api/v1/oauth/token`\n */\n token(\n request: OperationBody<operations[\"post_v1_oauth_token\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_oauth_token\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/oauth/token\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class OrdersClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Orders\n *\n * List orders for the authenticated organization using the same filters, sorting, and pagination semantics as the workspace Orders listing page. Requires `orders:read`.\n *\n * `GET /api/v1/orders`\n */\n list(\n request: OperationQuery<operations[\"get_v1_orders\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_orders\"]>> {\n const {\n organizationId,\n q,\n status,\n marketplace,\n country,\n store,\n bundleType,\n sortBy,\n dateFrom,\n dateTo,\n limit,\n offset,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/orders\",\n query: {\n organizationId,\n q,\n status,\n marketplace,\n country,\n store,\n bundleType,\n sortBy,\n dateFrom,\n dateTo,\n limit,\n offset,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Order\n *\n * Create a native `agentic` order with line items. This operation uses the same upsert path as agentic checkout completion.\n\n### Authentication\n\nRequires `orders:write`.\n\n### Upsert behavior\n\n- Reusing an `externalOrderId` updates the existing order instead of creating a duplicate.\n- For one-row-per-SKU integrations, use the marketplace order ID as `externalOrderId` and the row ID as `items[].externalOrderItemId`.\n- When `totalAmount` is omitted, OmniCommerce recomputes it from all order lines after the upsert.\n\n### Pricing and catalog defaults\n\n- Each line can provide `price`, `unitPrice`, `paidPrice`, and `costPrice`.\n- When `productId` is provided, missing price or currency values may resolve from the product catalog.\n- An explicit `costPrice` updates `product_data.costPrice` and is snaps\n *\n * `POST /api/v1/orders`\n */\n create(\n request: OperationBody<operations[\"post_v1_orders\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_orders\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/orders\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Order\n *\n * Get one order by its OmniCommerce UUID for the authenticated organization.\n\n### Authentication\n\nRequires `orders:read`.\n\n### Response\n\nThe organization-scoped detail includes:\n\n- Line items and normalized status\n- Buyer and contact fields\n- Shipping and billing addresses\n- Return context\n- Finance breakdown\n- Settlement projection, when available\n\nOrders outside the authenticated organization are not exposed and return `404 Not Found`.\n *\n * `GET /api/v1/orders/{orderId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_orders_by_orderid\"]> &\n OperationQuery<operations[\"get_v1_orders_by_orderid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_orders_by_orderid\"]>> {\n const { orderId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/orders/${encodePathParam(\"orderId\", orderId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Order\n *\n * Update a native **agentic** order.\n\n### Authentication\n\nRequires `orders:write`.\n\n### Supported changes\n\n- External order identifiers, status, currency, and country\n- `totalAmount`, `shippingFee`, and `discountAmount`\n- Metadata and `orderCreatedAt`\n- Line identifiers, prices, COGS, currency, status, and quantity\n\n### Line upserts\n\n- A matching `externalOrderItemId` updates the existing line.\n- A new `externalOrderItemId` with `productName` and `quantity` appends a line.\n- When lines change and `totalAmount` is omitted, OmniCommerce recomputes the total from all lines.\n\n### Country resolution\n\nWhen `country` is omitted and the stored country is empty, OmniCommerce may derive it from an unambiguous resulting order currency.\n\n### Restrictions and events\n\nMarketplace-owned orders from Shopee,\n *\n * `PATCH /api/v1/orders/{orderId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_orders_by_orderid\"]> &\n OperationBody<operations[\"patch_v1_orders_by_orderid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_orders_by_orderid\"]>\n > {\n const { orderId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/orders/${encodePathParam(\"orderId\", orderId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Order Action Options\n *\n * Ask the marketplace which choices an action needs, such as pickup or drop-off for `ship`. Requires `orders:write`.\n\nSend the chosen choice's `payload` with `POST /api/v1/orders/{orderId}/actions`.\n *\n * `GET /api/v1/orders/{orderId}/action-options`\n */\n getActionOptions(\n request: OperationPath<\n operations[\"get_v1_orders_by_orderid_action_options\"]\n > &\n OperationQuery<operations[\"get_v1_orders_by_orderid_action_options\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_orders_by_orderid_action_options\"]>\n > {\n const { orderId, organizationId, action } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/orders/${encodePathParam(\"orderId\", orderId)}/action-options`,\n query: { organizationId, action },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * List Order Actions\n *\n * The order's 20 most recent action jobs, newest first, plus its latest successful label job. Requires `orders:read`.\n\nPoll this after queueing an action. A succeeded `labels` job lists its label files in `labels`.\n *\n * `GET /api/v1/orders/{orderId}/actions`\n */\n listActions(\n request: OperationPath<operations[\"get_v1_orders_by_orderid_actions\"]> &\n OperationQuery<operations[\"get_v1_orders_by_orderid_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_orders_by_orderid_actions\"]>\n > {\n const { orderId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/orders/${encodePathParam(\"orderId\", orderId)}/actions`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Queue Order Action\n *\n * Ship, cancel, generate shipping labels for, or update tracking on a marketplace order. Requires `orders:write`.\n\nThe marketplace call runs in the background: the response is `202` with `jobId`; poll `GET /api/v1/orders/{orderId}/actions`. A repeated `idempotencyKey` returns `200` with the original job.\n *\n * `POST /api/v1/orders/{orderId}/actions`\n */\n queueAction(\n request: OperationPath<operations[\"post_v1_orders_by_orderid_actions\"]> &\n OperationBody<operations[\"post_v1_orders_by_orderid_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_orders_by_orderid_actions\"]>\n > {\n const { orderId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/orders/${encodePathParam(\"orderId\", orderId)}/actions`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Check Order Action Options\n *\n * ### Authorization\n\nRequires orders:write.\n\n### Choices\n\nRead current marketplace choices for ship, cancel, labels or update_tracking for 1–50 order UUIDs using repeated orderIds query parameters. The shared order service checks status, store connection and marketplace capability. Results preserve first-requested order, with explicit per-order errors. Use the exact choice payload and supply any fields marked requiresInput. An unsupported marketplace operation is an explicit failure, not a silently skipped order. Ship arranges shipment; labels generates printable files. Fulfillment behavior is identical to the existing single-order API and workspace UI.\n *\n * `GET /api/v1/orders/actions`\n */\n listBatchActionOptions(\n request: OperationQuery<operations[\"get_v1_orders_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_orders_actions\"]>> {\n const { orderIds, action, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/orders/actions\",\n query: { orderIds, action, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Process Order Actions\n *\n * ### Authorization\n\nRequires orders:write.\n\n### Batch submission\n\nQueue 1–50 distinct order operations with a UUID requestId. Each operation has orderId, action (ship, cancel, labels or update_tracking), and optional payload. Use exact marketplace choices from GET /api/v1/orders/actions and supply required carrier, tracking, pickup/drop-off or cancellation details. One operation per order is allowed in a batch; later stages such as labels after shipment require another submission. All targets are authorized before any enqueue. Per-order failures are isolated; results retain request order and include every accepted jobId. data.success means all submissions were accepted, not that marketplace processing finished.\n\n### Recovery and completion\n\nRetain requestId and unchanged operations for retr\n *\n * `POST /api/v1/orders/actions`\n */\n processActions(\n request: OperationBody<operations[\"post_v1_orders_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_orders_actions\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/orders/actions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Order Action Jobs\n *\n * ### Authorization\n\nRequires orders:read.\n\n### Outcomes and labels\n\nRead every requested order action job in one batch of 1–50 UUIDs using repeated jobIds parameters. Results preserve first-requested order. data.success is true only when every requested job succeeded; failedCount includes failed and not_supported, while pendingCount includes queued and running. Successful label jobs contain downloadable files in labels[]. A missing or cross-organization job returns 404; current store restrictions apply to all targets. The top-level completed status describes the lookup, not job completion. No raw provider acknowledgements are exposed.\n *\n * `GET /api/v1/orders/actions/jobs`\n */\n getActionJobs(\n request: OperationQuery<operations[\"get_v1_orders_actions_jobs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_orders_actions_jobs\"]>\n > {\n const { jobIds, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/orders/actions/jobs\",\n query: { jobIds, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Picking List\n *\n * ### Authorization\n\nRequires orders:read. API keys resolve organization scope from their credential; session callers include organizationId.\n\n### PDF output\n\nCreate a private PDF picking list for 1–500 order UUIDs, trimmed and deduplicated in first-requested order. Missing or inaccessible orders fail the complete selection without creating a partial document. The same grouping, product quantities, SKU/variation and currency-labeled prices as the workspace Orders page are used. timeZone accepts an IANA time zone; omitted API requests use UTC. This does not arrange shipment or change orders.\n\nThe result contains structured list data, every orderId, a saved documentId and a signed HTTPS downloadUrl valid until expiresAt (five minutes). Generate a fresh list for a new download URL. Download the\n *\n * `POST /api/v1/orders/picking-list`\n */\n createPickingList(\n request: OperationBody<operations[\"post_v1_orders_picking_list\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_orders_picking_list\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/orders/picking-list\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class OrganizationsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Create Organization\n *\n * Create a new organization for the signed-in user. This endpoint uses first-party session authentication because API keys are scoped to an existing organization.\n *\n * `POST /api/v1/organizations`\n */\n create(\n request: OperationBody<operations[\"post_v1_organizations\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_organizations\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/organizations\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class PriceBooksClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Price Book Rules\n *\n * List marketplace price book rules for the authenticated organization. A rule applies either a buyer formula or a markup percent to the catalog price at publish time, by platform and optional store/country. Requires `price_books:read`.\n *\n * `GET /api/v1/price-books`\n */\n list(\n request: OperationQuery<operations[\"get_v1_price_books\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_price_books\"]>> {\n const { organizationId, platform, enabledOnly } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/price-books\",\n query: { organizationId, platform, enabledOnly },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Price Book Rule\n *\n * Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.\n\n`expression` is the buyer formula and replaces markup percent. `price` in that formula is the catalog price, not cost price. Without an expression, `marginValue` is the markup percent.\n *\n * `POST /api/v1/price-books`\n */\n create(\n request: OperationBody<operations[\"post_v1_price_books\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_price_books\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/price-books\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Price Book Rule\n *\n * Delete a marketplace price book rule by ID. Requires `price_books:write`.\n *\n * `DELETE /api/v1/price-books/{ruleId}`\n */\n delete(\n request: OperationPath<operations[\"delete_v1_price_books_by_ruleid\"]> &\n OperationQuery<operations[\"delete_v1_price_books_by_ruleid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_price_books_by_ruleid\"]>\n > {\n const { ruleId, organizationId } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/price-books/${encodePathParam(\"ruleId\", ruleId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Price Book Rule\n *\n * Fetch one marketplace price book rule by ID. Requires `price_books:read`.\n *\n * `GET /api/v1/price-books/{ruleId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_price_books_by_ruleid\"]> &\n OperationQuery<operations[\"get_v1_price_books_by_ruleid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_price_books_by_ruleid\"]>\n > {\n const { ruleId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/price-books/${encodePathParam(\"ruleId\", ruleId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Price Book Rule\n *\n * Update store, country, markup, buyer formula, rounding, currency, or enabled flag for a price book rule. Platform cannot be changed; create a new rule instead. Requires `price_books:write`.\n *\n * `PATCH /api/v1/price-books/{ruleId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_price_books_by_ruleid\"]> &\n OperationQuery<operations[\"patch_v1_price_books_by_ruleid\"]> &\n OperationBody<operations[\"patch_v1_price_books_by_ruleid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_price_books_by_ruleid\"]>\n > {\n const { ruleId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/price-books/${encodePathParam(\"ruleId\", ruleId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Preview Channel List Price\n *\n * Compute channel list price from a canonical list price using matching enabled rules (or a forced ruleId). Requires `price_books:read`.\n *\n * `POST /api/v1/price-books/preview`\n */\n preview(\n request: OperationBody<operations[\"post_v1_price_books_preview\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_price_books_preview\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/price-books/preview\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ProductCategoriesClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Recommend Marketplace Product Categories\n *\n * Suggest best-fit marketplace categories and category attribute values for a persisted product using semantic taxonomy search. Authenticate with an OmniCommerce API key as `Authorization: Bearer omni_sk_...`.\n *\n * `POST /api/v1/manage-product-category/recommend`\n */\n recommend(\n request: OperationBody<\n operations[\"post_v1_manage_product_category_recommend\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_manage_product_category_recommend\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/manage-product-category/recommend\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ProductsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Products\n *\n * List products for the authenticated organization with optional filters and pagination. Authenticate with an API key or OAuth bearer token. The organization is taken from that credential; do not send `organizationId`.\n\n### Stock and variants\n\nRows are in `items`. Read catalog stock from `items[].stockQuantity`: parent rows already aggregate their non-deleted variants, and virtual bundles use component availability with any manual cap. Null means unknown, not zero. A row with `variantCount` above 0 has variants; fetch them from `GET /api/v1/products/{productId}`. List rows do not contain `inventoryQuantity`, `inventory.quantity`, or an embedded `variants` array.\n\n### Duplicate discovery and merge\n\nUse status=duplicates, duplicateType=sku and detail=full for exact-SKU candidates. Each root ro\n *\n * `GET /api/v1/products`\n */\n list(\n request: OperationQuery<operations[\"get_v1_products\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_products\"]>> {\n const {\n status,\n marketplace,\n country,\n q,\n sku,\n minPrice,\n maxPrice,\n sortBy,\n limit,\n offset,\n store,\n storeKeys,\n brands,\n bundleType,\n language,\n hasImage,\n stock,\n duplicateStatus,\n duplicateType,\n publishedFrom,\n publishedTo,\n publishedTimeZone,\n cursor,\n includeSummary,\n detail,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/products\",\n query: {\n status,\n marketplace,\n country,\n q,\n sku,\n minPrice,\n maxPrice,\n sortBy,\n limit,\n offset,\n store,\n storeKeys,\n brands,\n bundleType,\n language,\n hasImage,\n stock,\n duplicateStatus,\n duplicateType,\n publishedFrom,\n publishedTo,\n publishedTimeZone,\n cursor,\n includeSummary,\n detail,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Product\n *\n * Queue a single-product create workflow for the authenticated organization. Product enrichment is disabled by default; set `workflow.enrich` to `true` to enable it.\n\n### Request behavior\n\n- `product` contains developer-supplied fields. Unknown fields are preserved as enrichment context.\n- SKU is the unique product upsert identifier.\n- Externally hosted HTTP(S) images are copied to managed R2 storage.\n- `targetMarketplaces` and `targetCountries` are optional; enrichment can run without publishing targets.\n\n### Asynchronous result\n\nThe API returns a job ID. Poll `GET /api/v1/jobs/{jobId}` for completion. Product creation, image ingestion, enrichment, and taxonomy assignment run in the same product workflow job. ACO generation runs separately when enabled; poll `result.geoJobId` for its comple\n *\n * `POST /api/v1/products`\n */\n create(\n request: OperationBody<operations[\"post_v1_products\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_products\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Product\n *\n * Soft-delete a product by ID. The product will be marked as deleted but not permanently removed. Call again on a deleted product to permanently delete it. Supports API key Bearer token authentication.\n *\n * `DELETE /api/v1/products/{productId}`\n */\n delete(\n request: OperationPath<operations[\"delete_v1_products_by_productid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_products_by_productid\"]>\n > {\n const { productId } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}`,\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Product\n *\n * Retrieve a single product by ID for the authenticated organization.\n\nAuthenticate with an API key using Bearer token authentication.\n\nWhen available, the response includes generated Agentic Commerce Optimization (ACO) data:\n\n- Profile metadata and FAQs\n- Localization content and cultural notes\n- Intent queries and signals\n- Sources and claims\n\nA parent product returns its variants in `variants`, with each variant's option values, price, stock, image, and marketplace listings.\n *\n * `GET /api/v1/products/{productId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_products_by_productid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_products_by_productid\"]>\n > {\n const { productId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}`,\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Product\n *\n * Update an existing product by ID. Only provided fields will be updated. Supports API key Bearer token authentication.\n *\n * `PATCH /api/v1/products/{productId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_products_by_productid\"]> &\n OperationBody<operations[\"patch_v1_products_by_productid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_products_by_productid\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Product Cost\n *\n * Set catalog cost for one simple product or variant UUID. Cost is Omni-only and never syncs to marketplaces. Prefer `POST /api/v1/products/cost` for Windmill or other bulk jobs.\n\nRequires `catalog:write`. When `costPriceCurrency` differs from the product selling currency and `costPriceFxRate` is omitted, Omni stores an FX quote on the product.\n *\n * `PATCH /api/v1/products/{productId}/cost`\n */\n updateCost(\n request: OperationPath<operations[\"patch_v1_products_by_productid_cost\"]> &\n OperationBody<operations[\"patch_v1_products_by_productid_cost\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_products_by_productid_cost\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/cost`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delist Product\n *\n * Queue delist for one product on the marketplaces you name. `marketplaces` accepts one or more of shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, and ebay. Each named marketplace must already have a listing; other channels are left untouched. Omit `marketplaces` to delist every existing listing. This does not delete the OmniCommerce product.\n\nPoll GET /api/v1/jobs/{jobId} until data.status is succeeded, partial, or failed. Accepted means the job was queued, not that the marketplace has removed the listing.\n *\n * `POST /api/v1/products/{productId}/delist`\n */\n delist(\n request: OperationPath<operations[\"post_v1_products_by_productid_delist\"]> &\n OperationBody<operations[\"post_v1_products_by_productid_delist\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_by_productid_delist\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/delist`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Upload Product Image\n *\n * Upload one image to a product's or variant's gallery as multipart/form-data. Requires `catalog:write`.\n\nJPEG, PNG, WebP, AVIF, or HEIC up to 8 MB; WebP, AVIF, and HEIC are stored as JPEG. The image is added at `position`, or at the end. Publish the product to send the new gallery to marketplaces.\n *\n * `POST /api/v1/products/{productId}/images`\n */\n uploadImage(\n request: OperationPath<operations[\"post_v1_products_by_productid_images\"]> &\n OperationBody<operations[\"post_v1_products_by_productid_images\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_by_productid_images\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/images`,\n query: undefined,\n body: toMultipartBody(body),\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Product Inventory\n *\n * Update canonical on-hand inventory for a simple product or variant UUID. Multi-variant parent products must be updated through their variant IDs. A successful quantity change emits `product.inventory.changed` to matching developer webhook subscriptions.\n\n### Authorization\n\nRequires an API credential with `catalog:write`. OmniCommerce derives `organizationId` from that credential; the request body cannot select or override an organization. ERP-managed and multi-source inventory keeps its existing ownership protections.\n\n### Marketplace sync\n\nThe update is Omni-only by default. Set `syncToMarketplaces` to `true` to create one durable inventory outbox job per marketplace account. Omit `targets` to sync every enabled, published account for the product, or provide exact `{ platform, accountId }\n *\n * `PATCH /api/v1/products/{productId}/inventory`\n */\n updateInventory(\n request: OperationPath<\n operations[\"patch_v1_products_by_productid_inventory\"]\n > &\n OperationBody<operations[\"patch_v1_products_by_productid_inventory\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_products_by_productid_inventory\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/inventory`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Product Listings\n *\n * Where a product is listed: each marketplace's store, live or delisted state, item id, buyer-facing URL, and the latest publish attempt with any rejection details. Requires `catalog:read`.\n\nPoll after `POST /api/v1/products/{productId}/publish`.\n *\n * `GET /api/v1/products/{productId}/listings`\n */\n getListings(\n request: OperationPath<\n operations[\"get_v1_products_by_productid_listings\"]\n > &\n OperationQuery<operations[\"get_v1_products_by_productid_listings\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_products_by_productid_listings\"]>\n > {\n const { productId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/listings`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Product Price\n *\n * Update the canonical catalog price for a simple product or variant UUID. Multi-variant parent products must be updated through their variant IDs. A successful change emits `product.price.changed` to matching developer webhook subscriptions.\n\n### Authorization\n\nRequires an API credential with `catalog:write`. OmniCommerce derives `organizationId` from that credential; the request body cannot select or override an organization.\n\n### Marketplace sync\n\nThe update is Omni-only by default. Set `syncToMarketplaces` to `true` to queue durable marketplace work. Omit `targets` to sync every enabled, published account for the product, or provide exact `{ platform, accountId }` targets. Every explicit target is validated before the catalog changes. The response contains pollable job IDs and immediate\n *\n * `PATCH /api/v1/products/{productId}/price`\n */\n updatePrice(\n request: OperationPath<operations[\"patch_v1_products_by_productid_price\"]> &\n OperationBody<operations[\"patch_v1_products_by_productid_price\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_products_by_productid_price\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/price`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Publish Product\n *\n * ### Publishing\n\nQueue durable marketplace publish/update jobs for a product. Omit marketplaces to use every enabled or already listed marketplace, or name the marketplaces to target. Omit updateFields for a full publish with live/draft visibility. Set updateFields to update only saved values for those fields on existing listings with assigned stores; other fields and listing visibility stay unchanged. No new listing is created by a selected-field update.\n\n### Marketplace capabilities\n\nSEO is Shopify-only; highlights support Lazada, TikTok and Amazon; attributes exclude WhatsApp. Category-only updates require a full publish on TikTok and Amazon. Unsupported combinations and missing listings/stores return explicit per-marketplace failures while valid targets continue.\n\n### Completion\n\nAccept\n *\n * `POST /api/v1/products/{productId}/publish`\n */\n publish(\n request: OperationPath<\n operations[\"post_v1_products_by_productid_publish\"]\n > &\n OperationBody<operations[\"post_v1_products_by_productid_publish\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_by_productid_publish\"]>\n > {\n const { productId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/products/${encodePathParam(\"productId\", productId)}/publish`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Bulk Import Products from JSON or CSV\n *\n * Queue a bulk product import for the authenticated organization.\n\nSupply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing or incompatible size systems and other required options block publishing. Each row remains a standalone product; no child variants are created for the default.\n\n### Input options\n\n- Upload a CSV (2 MiB) or JSON products file (8 MiB) using `multipart/form-data`.\n- Send JSON with a `products` array of 1–5,000 flat product objects (8 MiB request maximum).\n- Send JSON with inline `csvText`.\n- Send\n *\n * `POST /api/v1/products/bulk-import`\n */\n bulkImport(\n request: OperationBody<operations[\"post_v1_products_bulk_import\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_bulk_import\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/bulk-import\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Import Retry Progress\n *\n * Read actual row and review generation progress using an importretry_... handle. Requires catalog:read. success is null while running, true only for successful completion, and false for missing targets, dispatch failure, or stage failures.\n\nRow IDs, review request IDs, errors, and per-stage counts remain available. The same handle works with GET /api/v1/jobs/{jobId} and SDK jobs.wait.\n *\n * `GET /api/v1/products/bulk-import/retries/{retryJobId}`\n */\n getBulkImportRetry(\n request: OperationPath<\n operations[\"get_v1_products_bulk_import_retries_by_retryjobid\"]\n > &\n OperationQuery<\n operations[\"get_v1_products_bulk_import_retries_by_retryjobid\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_products_bulk_import_retries_by_retryjobid\"]>\n > {\n const { retryJobId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/products/bulk-import/retries/${encodePathParam(\"retryJobId\", retryJobId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Retry Failed Import or Review Jobs\n *\n * Retry 1–20 jobs with durable background execution. Requires catalog:write.\n\n### Targets\n\njobIds accepts import UUIDs, bulk_... developer job handles, or review_<batch UUID> for a Review job (including jobs created in the app). Inputs are trimmed, bounded, and deduplicated in first-requested order.\n\n### Retry scope\n\nstages=all retries failed source rows and linked review stages; stages=images retries failed review images only. Completed work, applied products, cancelled stages, and active work are preserved. Optional brandKitIds replaces image-source selection using the kits' current organization-owned websites. Omit it to keep frozen sources. To resume interrupted dispatch, pass an importretry_... handle without overrides; the saved target plan is reused.\n\n### Results\n\nUse the returned ord\n *\n * `POST /api/v1/products/bulk-import/retry`\n */\n retryBulkImport(\n request: OperationBody<operations[\"post_v1_products_bulk_import_retry\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_bulk_import_retry\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/bulk-import/retry\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Compare Product Market Prices\n *\n * Research market offers for a batch of OmniCommerce simple product or variant UUIDs using the same BigGo API and Serper Shopping fallback as pricing strategy. Read-only; no prices are changed.\n\n### Authorization\n\nRequires catalog:read. API keys resolve organizationId from the credential; session callers must provide an authorized organizationId.\n\n### Durable batches\n\nAccepts 1–50 input entries, trimmed and deduplicated in first-requested order. Returns HTTP 202 and a durable jobId. Retrieve progress and results from GET /api/v1/products/compare-prices/jobs/{jobId} or await jobs.wait in the SDK with a suitable timeout. A client timeout does not cancel the job. Use variant IDs for products with variants. Each listing market has its own durable search step; searches use bounded concurrency and\n *\n * `POST /api/v1/products/compare-prices`\n */\n comparePrices(\n request: OperationBody<operations[\"post_v1_products_compare_prices\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_compare_prices\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/compare-prices\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Product Price Comparison\n *\n * Read durable batch progress and ordered per-product results. Requires catalog:read and the job's organization.\n\ncompleted means every target was processed; inspect result.success, succeededCount, failedCount, and each result for partial failures. Session callers must supply organizationId.\n *\n * `GET /api/v1/products/compare-prices/jobs/{jobId}`\n */\n getPriceComparison(\n request: OperationPath<\n operations[\"get_v1_products_compare_prices_jobs_by_jobid\"]\n > &\n OperationQuery<\n operations[\"get_v1_products_compare_prices_jobs_by_jobid\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_products_compare_prices_jobs_by_jobid\"]>\n > {\n const { jobId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/products/compare-prices/jobs/${encodePathParam(\"jobId\", jobId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Batch Update Product Cost\n *\n * Set catalog cost price and currency for one or more products. Cost is Omni-only and never syncs to marketplaces.\n\nEach update targets `productId` or `sku` (Omni `products.sku`). Provide `costPrice` with `costPriceCurrency` when the source amount is not in the product selling currency. If `costPriceFxRate` is omitted and the currencies differ, Omni quotes FX via the canonical FX service and stores the rate on the product.\n\n### Authorization\n\nRequires `catalog:write`. `organizationId` comes from the credential; the body cannot select an organization.\n\n### Limits\n\n`updates` is required, 1–200 items. Duplicate product IDs fail after the first occurrence. `costPrice: null` clears cost and FX.\n *\n * `POST /api/v1/products/cost`\n */\n updateCosts(\n request: OperationBody<operations[\"post_v1_products_cost\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_products_cost\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/cost\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Count Products\n *\n * Count matching catalog parent products using the Products page's canonical filters and authorization, without loading rows, pricing, or location data.\n\nProducts are counted once even when multiple listings match. This does not count variants or verify live marketplace status. status is the catalog lifecycle/derived view. All marketplaces are supported. Use storeKeys for exact marketplace/country/account identity.\n\nAuthenticate with a read-only catalog credential; organization comes only from that credential.\n *\n * `GET /api/v1/products/count`\n */\n count(\n request: OperationQuery<operations[\"get_v1_products_count\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_products_count\"]>> {\n const {\n status,\n marketplace,\n country,\n q,\n sku,\n minPrice,\n maxPrice,\n store,\n storeKeys,\n brands,\n bundleType,\n language,\n hasImage,\n stock,\n duplicateStatus,\n duplicateType,\n publishedFrom,\n publishedTo,\n publishedTimeZone,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/products/count\",\n query: {\n status,\n marketplace,\n country,\n q,\n sku,\n minPrice,\n maxPrice,\n store,\n storeKeys,\n brands,\n bundleType,\n language,\n hasImage,\n stock,\n duplicateStatus,\n duplicateType,\n publishedFrom,\n publishedTo,\n publishedTimeZone,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Merge Duplicate Products\n *\n * Merge exact-SKU duplicate products into one master product per group. The master keeps its content, images, price and stock; the group's other products are archived into it, and orders, reviews, promotions and other catalog references move to the master.\n\nAll marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group. No marketplace listing is delisted, rewritten or republished.\n\nEach group commits independently; the response lists every group's outcome. Sources with inventory history or immutable order composition snapshots must be reconciled before archiving so returns and stock replays keep their targets.\n\nSupports every OmniCommerce marketplace. Variant families, bundles and product\n *\n * `POST /api/v1/products/duplicates/merge`\n */\n mergeDuplicates(\n request: OperationBody<operations[\"post_v1_products_duplicates_merge\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_duplicates_merge\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/duplicates/merge\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Preview Duplicate Product Merge\n *\n * Read-only preview of merging duplicate catalog products into one master product. Uses the same contract and rules as `POST /api/v1/products/duplicates/merge` and the assistant's Fix Listing Duplicates tool.\n\nProducts are grouped by exact SKU. Each group shows its master (first in `productIds`), every product's marketplace listings per store with live status. A blocked group reports its `error`; nothing is changed.\n\nSupports every OmniCommerce marketplace. All marketplace listings are preserved. Different listing identities in the same store block that group; the merge never delists listings.\n\nDiscover candidates with `GET /api/v1/products?status=duplicates&duplicateType=sku&detail=full`. Refresh the saved scan through `POST /api/v1/products/duplicates/scan` when needed. Each group's `maste\n *\n * `POST /api/v1/products/duplicates/merge-preview`\n */\n previewDuplicateMerge(\n request: OperationBody<\n operations[\"post_v1_products_duplicates_merge_preview\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_duplicates_merge_preview\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/duplicates/merge-preview\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Duplicate Scan\n *\n * Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read. queued/running means the durable scan is still in progress; failed includes errorMessage. completed exposes computedAt and the number of duplicate products. Results are read through products.list with status=duplicates and detail=full. The shared UI scan currently examines at most the 5,000 most recently updated non-archived root products; a completed scan is not proof that a larger catalog has been fully examined.\n *\n * `GET /api/v1/products/duplicates/scan`\n */\n getDuplicateScan(\n request: OperationQuery<operations[\"get_v1_products_duplicates_scan\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_products_duplicates_scan\"]>\n > {\n const { organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/products/duplicates/scan\",\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Scan Duplicate Products\n *\n * Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write. An already queued/running scan is reused. This only refreshes duplicate evidence; it does not merge, publish or delist products. Read completion with products.getDuplicateScan, then list status=duplicates, duplicateType=sku, detail=full and page all matching results before previewing a merge. Uses the same 5,000-candidate scan limit as the UI.\n *\n * `POST /api/v1/products/duplicates/scan`\n */\n scanDuplicates(\n request: OperationBody<operations[\"post_v1_products_duplicates_scan\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_products_duplicates_scan\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/duplicates/scan\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Queue Product Enrichment\n *\n * Requires catalog:enrich. Queue content enrichment for 1–1,000 existing Omni product IDs across all supported marketplaces. Returns 202 after queue submission without awaiting AI completion or publication.\n\n### Enrichment options\n\nFields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections.\n\nautoApplyHighConfidence defaults to false.\n *\n * `POST /api/v1/products/enrich`\n */\n enrich(\n request: OperationBody<operations[\"post_v1_products_enrich\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_products_enrich\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/products/enrich\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /** Read a bounded chunk without summary classification; persist progress to resume. */\n scan(\n request: ProductScanRequest = {},\n options?: ProductScanOptions,\n ): Promise<ProductScanResult> {\n return scanProducts(\n (page, requestOptions) => this.list(page, requestOptions),\n request,\n options,\n );\n }\n\n /**\n * Publish saved products; updateFields limits writes to selected fields on existing listings.\n * Accepts 1–100 entries; concurrency is 1–10 (default 3).\n * productIds are trimmed and deduplicated in first-requested order.\n * Omit marketplaces for all eligible marketplaces, or preserve the requested targets.\n * Returns success, productIds, succeededCount, failedCount, ordered results and jobIds.\n * Results retain each response/error, even for partial failures. Success means submitted,\n * not marketplace-verified. Preserve typed correlations from the responses for commerce.awaitJobs.\n * These client-side requests are not atomic or a durable server batch. Keep this process\n * alive during submission and persist receipts before the next chunk. Request options\n * apply per product, not to the entire batch. An abortSignal stops unstarted submissions.\n */\n batchPublish(\n request: BatchPublishProductsRequest,\n options?: ProductBatchOptions,\n ): Promise<BatchPublishProductsResult> {\n return batchPublishProducts(\n (item, requestOptions) => this.publish(item, requestOptions),\n request,\n options,\n );\n }\n\n /**\n * Delist products using their eligible or explicitly selected marketplaces.\n * Accepts 1–100 entries; concurrency is 1–10 (default 3).\n * productIds are trimmed and deduplicated in first-requested order.\n * Omit marketplaces for all eligible marketplaces, or preserve the requested targets.\n * Returns success, productIds, succeededCount, failedCount, ordered results and jobIds.\n * Results retain each response/error, even for partial failures. Success means submitted,\n * not marketplace-verified. Preserve typed correlations from the responses for commerce.awaitJobs.\n * These client-side requests are not atomic or a durable server batch. Keep this process\n * alive during submission and persist receipts before the next chunk. Request options\n * apply per product, not to the entire batch. An abortSignal stops unstarted submissions.\n */\n batchDelist(\n request: BatchDelistProductsRequest,\n options?: ProductBatchOptions,\n ): Promise<BatchDelistProductsResult> {\n return batchDelistProducts(\n (item, requestOptions) => this.delist(item, requestOptions),\n request,\n options,\n );\n }\n\n /**\n * Save per-product catalog edits; publish saved fields separately when requested.\n * Accepts 1–100 entries; concurrency is 1–10 (default 3).\n * Each update uses productId and normal update fields; duplicate IDs are rejected.\n * Submit price/currency changes separately from other product fields.\n * Returns success, productIds, succeededCount, failedCount, ordered results and jobIds.\n * Results retain each response/error, even for partial failures. Success means submitted,\n * not marketplace-verified. Preserve typed correlations from the responses for commerce.awaitJobs.\n * These client-side requests are not atomic or a durable server batch. Keep this process\n * alive during submission and persist receipts before the next chunk. Request options\n * apply per product, not to the entire batch. An abortSignal stops unstarted submissions.\n */\n batchUpdate(\n request: BatchUpdateProductsRequest,\n options?: ProductBatchOptions,\n ): Promise<BatchUpdateProductsResult> {\n return batchUpdateProducts(\n (item, requestOptions) => this.update(item, requestOptions),\n request,\n options,\n );\n }\n}\n\nexport class PromotionsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Promotions\n *\n * List central promotions for the authenticated organization with filters and offset pagination matching the workspace Promotions listing. Requires `promotions:read`.\n *\n * `GET /api/v1/promotions`\n */\n list(\n request: OperationQuery<operations[\"get_v1_promotions\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_promotions\"]>> {\n const {\n organizationId,\n campaign,\n q,\n status,\n marketplace,\n store,\n sortBy,\n sortDir,\n limit,\n offset,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/promotions\",\n query: {\n organizationId,\n campaign,\n q,\n status,\n marketplace,\n store,\n sortBy,\n sortDir,\n limit,\n offset,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Promotion\n *\n * Create a central promotion targeting connected stores. Requires `promotions:write`. Fixed-amount discounts resolve currency from the selected store countries.\n *\n * `POST /api/v1/promotions`\n */\n create(\n request: OperationBody<operations[\"post_v1_promotions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_promotions\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Promotion\n *\n * Delete a promotion by ID. Requires `promotions:write`.\n *\n * `DELETE /api/v1/promotions/{promotionId}`\n */\n delete(\n request: OperationPath<operations[\"delete_v1_promotions_by_promotionid\"]> &\n OperationQuery<operations[\"delete_v1_promotions_by_promotionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_promotions_by_promotionid\"]>\n > {\n const { promotionId, organizationId } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Promotion\n *\n * Fetch one promotion by ID, including effective status. Requires `promotions:read`.\n *\n * `GET /api/v1/promotions/{promotionId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_promotions_by_promotionid\"]> &\n OperationQuery<operations[\"get_v1_promotions_by_promotionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_promotions_by_promotionid\"]>\n > {\n const { promotionId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Promotion\n *\n * Update promotion fields (name, discount, schedule, status, stores). Requires `promotions:write`.\n *\n * `PATCH /api/v1/promotions/{promotionId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_promotions_by_promotionid\"]> &\n OperationQuery<operations[\"patch_v1_promotions_by_promotionid\"]> &\n OperationBody<operations[\"patch_v1_promotions_by_promotionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_promotions_by_promotionid\"]>\n > {\n const { promotionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Preview Promotion Prices\n *\n * Read canonical effective prices for up to 50 products, optionally scoped to an exact marketplace, store and country. Uses the same authoring permissions as the application's preview. Does not publish or change prices.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/{promotionId}/preview`\n */\n preview(\n request: OperationPath<\n operations[\"post_v1_promotions_by_promotionid_preview\"]\n > &\n OperationBody<operations[\"post_v1_promotions_by_promotionid_preview\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_by_promotionid_preview\"]>\n > {\n const { promotionId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}/preview`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Unassign Products from Promotion\n *\n * Remove product assignments and queue marketplace teardown. Requires `promotions:write`.\n *\n * `DELETE /api/v1/promotions/{promotionId}/products`\n */\n removeProducts(\n request: OperationPath<\n operations[\"delete_v1_promotions_by_promotionid_products\"]\n > &\n OperationQuery<\n operations[\"delete_v1_promotions_by_promotionid_products\"]\n > &\n OperationBody<operations[\"delete_v1_promotions_by_promotionid_products\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_promotions_by_promotionid_products\"]>\n > {\n const { promotionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}/products`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * List Promotion Assignments\n *\n * List products assigned to a promotion. Requires `promotions:read`.\n *\n * `GET /api/v1/promotions/{promotionId}/products`\n */\n listProducts(\n request: OperationPath<\n operations[\"get_v1_promotions_by_promotionid_products\"]\n > &\n OperationQuery<operations[\"get_v1_promotions_by_promotionid_products\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_promotions_by_promotionid_products\"]>\n > {\n const { promotionId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}/products`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Assign Products to Promotion\n *\n * Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication. Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.\n *\n * `POST /api/v1/promotions/{promotionId}/products`\n */\n addProducts(\n request: OperationPath<\n operations[\"post_v1_promotions_by_promotionid_products\"]\n > &\n OperationQuery<operations[\"post_v1_promotions_by_promotionid_products\"]> &\n OperationBody<operations[\"post_v1_promotions_by_promotionid_products\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_by_promotionid_products\"]>\n > {\n const { promotionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}/products`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Retry Marketplace Delivery\n *\n * Run marketplace delivery again after a failure, for example once a store is reconnected. Requires `promotions:write`.\n\nYou do not need this to publish a promotion: creating or activating it, editing it while active or scheduled, and assigning products already deliver it, and pausing, ending, or archiving removes it. A retry brings each marketplace back in line with the promotion's current status.\n *\n * `POST /api/v1/promotions/{promotionId}/retry`\n */\n retry(\n request: OperationPath<\n operations[\"post_v1_promotions_by_promotionid_retry\"]\n > &\n OperationQuery<operations[\"post_v1_promotions_by_promotionid_retry\"]> &\n OperationBody<operations[\"post_v1_promotions_by_promotionid_retry\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_by_promotionid_retry\"]>\n > {\n const { promotionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/promotions/${encodePathParam(\"promotionId\", promotionId)}/retry`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Promotions with Products\n *\n * Create 1–50 promotions using the shared flat promotion-write contract, with qualifying products and per-product discounts. Set promotion.status=draft explicitly when preparing drafts; otherwise the canonical creation flow activates promotions and requires publish permission. Saved IDs and delivery evidence are retained on partial delivery failure; retry those IDs rather than creating duplicates.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/batch`\n */\n createBatch(\n request: OperationBody<operations[\"post_v1_promotions_batch\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_promotions_batch\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/batch\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Find Promotion Campaigns\n *\n * Search campaign options with assigned promotions in the authenticated organization.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `GET /api/v1/promotions/campaign-options`\n */\n getCampaignOptions(\n request: OperationQuery<\n operations[\"get_v1_promotions_campaign_options\"]\n > = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_promotions_campaign_options\"]>\n > {\n const { organizationId, q } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/promotions/campaign-options\",\n query: { organizationId, q },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Promotion Marketplace Capabilities\n *\n * Report every canonical marketplace and promotion kind, including native, projected, browser-AOP and unsupported capabilities and voucher subtypes. WhatsApp's lack of promotion publishing is explicit.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `GET /api/v1/promotions/capabilities`\n */\n getCapabilities(\n request: OperationQuery<operations[\"get_v1_promotions_capabilities\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_promotions_capabilities\"]>\n > {\n const { organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/promotions/capabilities\",\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Delete Promotions\n *\n * Delete 1–500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/delete`\n */\n deleteBatch(\n request: OperationBody<operations[\"post_v1_promotions_delete\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_promotions_delete\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/delete\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Read Promotion Delivery\n *\n * Read exact store/assignment delivery evidence for 1–50 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/delivery`\n */\n getDelivery(\n request: OperationBody<operations[\"post_v1_promotions_delivery\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_delivery\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/delivery\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Find Eligible Promotion Products\n *\n * Search or check up to 50 product IDs using canonical promotion assignment eligibility for the selected exact stores. Draft/unlisted products can be eligible for planning; live marketplace availability is rechecked during delivery.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/product-options`\n */\n getProductOptions(\n request: OperationBody<operations[\"post_v1_promotions_product_options\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_product_options\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/product-options\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Set Promotion Statuses\n *\n * Activate/publish, pause or archive 1–500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/status`\n */\n setStatuses(\n request: OperationBody<operations[\"post_v1_promotions_status\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_promotions_status\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/status\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Validate Promotions\n *\n * Read-only validation of 1–50 saved promotion IDs or proposed definitions and product IDs. Reports marketplace terms, connected-store targeting and qualifying-product issues per target. Publishing still revalidates current state and can encounter marketplace API rejections.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.\n *\n * `POST /api/v1/promotions/validate`\n */\n validate(\n request: OperationBody<operations[\"post_v1_promotions_validate\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_promotions_validate\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/promotions/validate\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ReturnsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Returns\n *\n * List normalized, PII-free marketplace returns with SKU-level lines. Requires `returns:read`. Use updatedSince and cursor for bootstrap/recovery alongside return webhooks.\n *\n * `GET /api/v1/returns`\n */\n list(\n request: OperationQuery<operations[\"get_v1_returns\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_returns\"]>> {\n const {\n organizationId,\n marketplace,\n accountId,\n externalOrderId,\n updatedSince,\n cursor,\n limit,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/returns\",\n query: {\n organizationId,\n marketplace,\n accountId,\n externalOrderId,\n updatedSince,\n cursor,\n limit,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Return\n *\n * Get one normalized, PII-free return by OmniCommerce UUID. Requires `returns:read`; another organization's return returns 404.\n *\n * `GET /api/v1/returns/{returnId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_returns_by_returnid\"]> &\n OperationQuery<operations[\"get_v1_returns_by_returnid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_returns_by_returnid\"]>\n > {\n const { returnId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/returns/${encodePathParam(\"returnId\", returnId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Check Return Actions\n *\n * ### Authorization\n\nRequires orders:write.\n\n### Eligibility\n\nRead live marketplace decisions for 1–50 OmniCommerce return UUIDs using repeated returnIds query parameters. Refreshes the saved return state through the same service as the order UI. All targets are organization- and store-scoped before marketplace access. Results preserve first-requested order; one provider failure does not block another store. data.success describes eligibility checks, not whether an action is available. Completed, cancelled and other terminal returns have no actions. Check actions.length and limitation; never infer eligibility from status alone. Amazon and WhatsApp currently return explicit processing limitations. Other marketplaces expose only decisions supported by their current API state. No buyer remarks,\n *\n * `GET /api/v1/returns/actions`\n */\n listActions(\n request: OperationQuery<operations[\"get_v1_returns_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_returns_actions\"]>> {\n const { returnIds, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/returns/actions\",\n query: { returnIds, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Process Returns\n *\n * ### Authorization\n\nRequires orders:write.\n\n### Submit decisions\n\nQueue 1–50 selected return decisions, including a one-element batch for a single return. Use only actionId/version pairs from a fresh eligibility check. Identical duplicate return operations are deduplicated in first-requested order; conflicting duplicates are rejected. requestId is a UUID idempotency key: retry the same key and unchanged operations after a transport failure. An active matching decision is reused; conflicting active decisions return 409. Returns HTTP 202 with every returnId and jobId. The durable worker rechecks current permissions, store identity, eligibility and version immediately before writing, then verifies the marketplace result. Follow links.poll or GET /api/v1/returns/actions/jobs with every jobIds e\n *\n * `POST /api/v1/returns/actions`\n */\n process(\n request: OperationBody<operations[\"post_v1_returns_actions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_returns_actions\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/returns/actions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Return Action Jobs\n *\n * ### Authorization\n\nRequires orders:read.\n\n### Job outcomes\n\nRead the current state of 1–50 return-processing job UUIDs in one request using repeated jobIds parameters. Use every job ID returned by submission. Results preserve first-requested order. pendingCount counts queued, running and submitting; succeededCount counts succeeded; failedCount includes failed and needs_review. data.success is true only if every requested job succeeded. The top-level completed status refers to this lookup, not to the jobs. Missing or cross-organization jobs return 404; jobs outside assigned stores are forbidden. Evidence contains accepted/verified flags and before/after marketplace statuses, without raw provider payloads.\n *\n * `GET /api/v1/returns/actions/jobs`\n */\n getActionJobs(\n request: OperationQuery<operations[\"get_v1_returns_actions_jobs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_returns_actions_jobs\"]>\n > {\n const { jobIds, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/returns/actions/jobs\",\n query: { jobIds, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Order Returns\n *\n * Requires orders:read. Read stored return requests for 1–50 order UUIDs using repeated orderIds query parameters.\n\n### Return identity\n\nResults preserve first-requested order and include distinct active and historical return requests. processingEligible is a local candidate flag, not live eligibility. Pass returnId values to GET /api/v1/returns/actions before choosing a decision. Every order is authorized before reading returns, including store restrictions; no buyer data is exposed.\n *\n * `GET /api/v1/returns/orders`\n */\n listForOrders(\n request: OperationQuery<operations[\"get_v1_returns_orders\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_returns_orders\"]>> {\n const { orderIds, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/returns/orders\",\n query: { orderIds, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ReviewsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Reviews\n *\n * List marketplace product reviews, newest first unless `sortBy` says otherwise. Requires `reviews:read`.\n\nUse `priority=unreplied` for a reply queue. `replyRestriction` is null when a reply will be accepted.\n *\n * `GET /api/v1/reviews`\n */\n list(\n request: OperationQuery<operations[\"get_v1_reviews\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_reviews\"]>> {\n const {\n organizationId,\n q,\n marketplace,\n status,\n priority,\n store,\n productId,\n sortBy,\n limit,\n offset,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/reviews\",\n query: {\n organizationId,\n q,\n marketplace,\n status,\n priority,\n store,\n productId,\n sortBy,\n limit,\n offset,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Review\n *\n * Read one review by its OmniCommerce UUID. Requires `reviews:read`.\n *\n * `GET /api/v1/reviews/{reviewId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_reviews_by_reviewid\"]> &\n OperationQuery<operations[\"get_v1_reviews_by_reviewid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_reviews_by_reviewid\"]>\n > {\n const { reviewId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/reviews/${encodePathParam(\"reviewId\", reviewId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Reply to Review\n *\n * Reply to one review identified by its OmniCommerce UUID in the URL. Requires `reviews:write`. Supply `reply` or set `generateWithAi: true`. `submit` defaults to true; set false with AI generation to return a draft without posting. Optional `instructions` guide AI writing. AI generation uses organization AI credits.\n\nRead `data.submitted` for confirmed marketplace submission. Generated text is retained when submission fails. Unsupported marketplaces return their capability limitation. Check review state before retrying an unconfirmed submission. Amazon review requests are separate.\n *\n * `POST /api/v1/reviews/{reviewId}/reply`\n */\n reply(\n request: OperationPath<operations[\"post_v1_reviews_by_reviewid_reply\"]> &\n OperationBody<operations[\"post_v1_reviews_by_reviewid_reply\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_reviews_by_reviewid_reply\"]>\n > {\n const { reviewId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/reviews/${encodePathParam(\"reviewId\", reviewId)}/reply`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ScriptsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Organization Scripts\n *\n * Discover custom Windmill scripts and their script__ tool names. Uses the same search and active/draft/archived filters as the app. Requires scripts:read. Default all excludes archived scripts; use status=archived to see archives.\n *\n * `GET /api/v1/scripts`\n */\n list(\n request: OperationQuery<operations[\"get_v1_scripts\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_scripts\"]>> {\n const { organizationId, q, status } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/scripts\",\n query: { organizationId, q, status },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Script\n *\n * Create an inactive TypeScript script. Optional source uses the canonical parser and 64 KiB UTF-8 limit; omitted source uses the starter. Requires scripts:write. Deploy explicitly before execution.\n *\n * `POST /api/v1/scripts`\n */\n create(\n request: OperationBody<operations[\"post_v1_scripts\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_scripts\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/scripts\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Archive Script\n *\n * Archive and deactivate an organization script, retaining version and run history. Requires scripts:write and the automations.delete capability for user credentials.\n *\n * `DELETE /api/v1/scripts/{scriptId}`\n */\n archive(\n request: OperationPath<operations[\"delete_v1_scripts_by_scriptid\"]> &\n OperationQuery<operations[\"delete_v1_scripts_by_scriptid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"delete_v1_scripts_by_scriptid\"]>\n > {\n const { scriptId, organizationId } = request ?? {};\n return this._http.request({\n method: \"DELETE\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Script\n *\n * Read script metadata, tool name, and all immutable versions with argument/output JSON schemas. Requires scripts:read. The activeVersionId identifies the current execution schema.\n *\n * `GET /api/v1/scripts/{scriptId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_scripts_by_scriptid\"]> &\n OperationQuery<operations[\"get_v1_scripts_by_scriptid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_scripts_by_scriptid\"]>\n > {\n const { scriptId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update Script\n *\n * Update metadata, approval mode, or draft source. Saving source does not change the active immutable deployment. Requires scripts:write.\n *\n * `PATCH /api/v1/scripts/{scriptId}`\n */\n update(\n request: OperationPath<operations[\"patch_v1_scripts_by_scriptid\"]> &\n OperationBody<operations[\"patch_v1_scripts_by_scriptid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_v1_scripts_by_scriptid\"]>\n > {\n const { scriptId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Activate Script Version\n *\n * Switch to a previously accepted immutable version belonging to this script, including rollback. Draft/failed versions cannot be activated. Requires scripts:write.\n *\n * `POST /api/v1/scripts/{scriptId}/activate`\n */\n activate(\n request: OperationPath<operations[\"post_v1_scripts_by_scriptid_activate\"]> &\n OperationBody<operations[\"post_v1_scripts_by_scriptid_activate\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_scripts_by_scriptid_activate\"]>\n > {\n const { scriptId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}/activate`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Deploy Script\n *\n * Validate TypeScript source and create an immutable Windmill version. activate defaults to true. activate=false saves a draft version; it cannot execute until redeployed and accepted. Requires scripts:write. Does not enable the tool for agents automatically.\n *\n * `POST /api/v1/scripts/{scriptId}/deploy`\n */\n deploy(\n request: OperationPath<operations[\"post_v1_scripts_by_scriptid_deploy\"]> &\n OperationBody<operations[\"post_v1_scripts_by_scriptid_deploy\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_scripts_by_scriptid_deploy\"]>\n > {\n const { scriptId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}/deploy`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * List Script Runs\n *\n * Read recent runs and result/error references through the canonical run service. Requires scripts:read.\n *\n * `GET /api/v1/scripts/{scriptId}/runs`\n */\n listRuns(\n request: OperationPath<operations[\"get_v1_scripts_by_scriptid_runs\"]> &\n OperationQuery<operations[\"get_v1_scripts_by_scriptid_runs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_scripts_by_scriptid_runs\"]>\n > {\n const { scriptId, organizationId, limit } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}/runs`,\n query: { organizationId, limit },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Execute Script\n *\n * Submit a durable run of the active or explicitly pinned accepted version. Requires scripts:execute. Arguments must match its schema and fit 256 KiB.\n\nOptional idempotencyKey identifies one invocation within this organization: reuse only for the same version and arguments.\n\nHTTP 202 retains the run record and does not establish execution success; pass every run.id to scripts.awaitRuns and inspect resultRef/errorRef. Runs use immutable hashes and existing durable reconciliation.\n *\n * `POST /api/v1/scripts/{scriptId}/runs`\n */\n execute(\n request: OperationPath<operations[\"post_v1_scripts_by_scriptid_runs\"]> &\n OperationBody<operations[\"post_v1_scripts_by_scriptid_runs\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_scripts_by_scriptid_runs\"]>\n > {\n const { scriptId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}/runs`,\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Script Source\n *\n * Read current draft source from the organization's Windmill workspace. This may differ from the active version. Requires scripts:read.\n *\n * `GET /api/v1/scripts/{scriptId}/source`\n */\n getSource(\n request: OperationPath<operations[\"get_v1_scripts_by_scriptid_source\"]> &\n OperationQuery<operations[\"get_v1_scripts_by_scriptid_source\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_scripts_by_scriptid_source\"]>\n > {\n const { scriptId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/scripts/${encodePathParam(\"scriptId\", scriptId)}/source`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Read Script Run Results\n *\n * Refresh 1–100 script run IDs in first-requested order, trimming and deduplicating IDs. Requires scripts:read.\n\nThis is a status snapshot and may return pending jobs; it never submits customer code again. success is true only when all requested runs succeeded. Results retain explicit per-target not_found/unavailable failures.\n\nUse script run IDs with this endpoint; the generic developer jobs API does not resolve them.\n *\n * `POST /api/v1/scripts/jobs/await`\n */\n awaitRuns(\n request: OperationBody<operations[\"post_v1_scripts_jobs_await\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_scripts_jobs_await\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/scripts/jobs/await\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Cancel Script Runs\n *\n * Request cancellation for 1–100 run IDs, trimmed and deduplicated in first-requested order. Requires scripts:execute. Check each requested/confirmed/status; request acceptance does not confirm cancellation or roll back prior side effects. success requires every cancellation to be confirmed.\n *\n * `POST /api/v1/scripts/jobs/cancel`\n */\n cancelRuns(\n request: OperationBody<operations[\"post_v1_scripts_jobs_cancel\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_v1_scripts_jobs_cancel\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/scripts/jobs/cancel\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class SearchClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Search Public Merchant Products\n *\n * Search across all public merchants and products with optional merchant, pricing, stock, marketplace, and localization filters.\n *\n * `GET /api/v1/search`\n */\n list(\n request: OperationQuery<operations[\"get_v1_search\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_search\"]>> {\n const {\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n merchant_ids,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/search\",\n query: {\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n merchant_ids,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Search Public Merchant Products\n *\n * Search across all public merchants and products with optional merchant, pricing, stock, marketplace, and localization filters.\n *\n * `POST /api/v1/search`\n */\n query(\n request: OperationQuery<operations[\"post_v1_search\"]> &\n Record<string, unknown> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_search\"]>> {\n const {\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n merchant_ids,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n ...body\n } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/search\",\n query: {\n currency,\n min_rating,\n min_review_count,\n added_after,\n variant_options,\n q,\n category,\n brand,\n min_price,\n max_price,\n in_stock,\n merchant_ids,\n sort,\n platform,\n country,\n language,\n include_intent,\n limit,\n offset,\n },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class SettlementsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Settlements\n *\n * List the latest normalized order-settlement snapshots created by finance ingestion. Requires `settlements:read`. Use updatedSince and cursor for recovery; money remains partitioned by currency.\n *\n * `GET /api/v1/settlements`\n */\n list(\n request: OperationQuery<operations[\"get_v1_settlements\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_settlements\"]>> {\n const {\n organizationId,\n marketplace,\n accountId,\n orderId,\n externalOrderId,\n updatedSince,\n cursor,\n limit,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/settlements\",\n query: {\n organizationId,\n marketplace,\n accountId,\n orderId,\n externalOrderId,\n updatedSince,\n cursor,\n limit,\n },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Apply Settlements\n *\n * Apply marketplace-agnostic settlement lines to existing orders.\n\n### Authentication\n\nRequires `orders:write`.\n\n### What this endpoint does\n\n- Stores every submitted line as marketplace financial evidence.\n- Projects **settled** rows into the order finance ledger.\n- Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same `sourceEventKey`.\n- Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported.\n\n### Order matching\n\nOrders are matched by organization, marketplace platform, and exact `externalOrderId`. Include `externalOrderItemId` when an order has multiple lines.\n\n- `accountId` is an exact store match, never a wildcard.\n- `marketplace=zalora` can match Zalora Seller Center or\n *\n * `POST /api/v1/settlements`\n */\n create(\n request: OperationBody<operations[\"post_v1_settlements\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_settlements\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/settlements\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get Settlement\n *\n * Get the latest normalized settlement snapshot by stable settlement ID. Requires `settlements:read`.\n *\n * `GET /api/v1/settlements/{settlementId}`\n */\n get(\n request: OperationPath<operations[\"get_v1_settlements_by_settlementid\"]> &\n OperationQuery<operations[\"get_v1_settlements_by_settlementid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_settlements_by_settlementid\"]>\n > {\n const { settlementId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/settlements/${encodePathParam(\"settlementId\", settlementId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class SyncClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Sync Product Commercial Fields\n *\n * Update price, sale price, or stock quantity in OmniCommerce and queue marketplace sync workers where applicable.\n *\n * `POST /api/v1/sync`\n */\n run(\n request: Record<string, unknown> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_sync\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/sync\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ThreadsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Thread Status\n *\n * Poll an AOP execution started by `POST /api/v1/aop/{aopId}/execute`. Requires `aops:read`. Status values are `running`, `completed`, or `failed`.\n *\n * `GET /api/v1/threads/{thread_id}/status`\n */\n getStatus(\n request: OperationPath<operations[\"get_v1_threads_by_thread_id_status\"]> &\n OperationQuery<operations[\"get_v1_threads_by_thread_id_status\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_v1_threads_by_thread_id_status\"]>\n > {\n const {\n thread_id: threadId,\n include_messages,\n organizationId,\n } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/api/v1/threads/${encodePathParam(\"thread_id\", threadId)}/status`,\n query: { include_messages, organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class UcpCheckoutSessionsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Create UCP Checkout Session\n *\n * Create a UCP shopping checkout session against the authenticated organization. The facade translates UCP line items to native agentic checkout sessions, reserves inventory, and returns a UCP checkout resource. Requires `UCP-Agent` and OAuth `checkout:write`.\n *\n * `POST /ucp/v1/checkout-sessions`\n */\n create(\n request: OperationBody<operations[\"post_ucp_v1_checkout_sessions\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_ucp_v1_checkout_sessions\"]>\n > {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/ucp/v1/checkout-sessions\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Get UCP Checkout Session\n *\n * Fetch the current UCP checkout resource for a native agentic checkout session. Requires `UCP-Agent` and bearer authentication.\n *\n * `GET /ucp/v1/checkout-sessions/{sessionId}`\n */\n get(\n request: OperationPath<\n operations[\"get_ucp_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<operations[\"get_ucp_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_ucp_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/ucp/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Update UCP Checkout Session\n *\n * Update UCP cart, buyer, fulfillment, or payment rail fields. Provided fields are applied to the native checkout session and inventory reservations are refreshed when line items change. Requires `UCP-Agent` and OAuth `checkout:write`.\n *\n * `PATCH /ucp/v1/checkout-sessions/{sessionId}`\n */\n update(\n request: OperationPath<\n operations[\"patch_ucp_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<\n operations[\"patch_ucp_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationBody<operations[\"patch_ucp_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"patch_ucp_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PATCH\",\n path: `/ucp/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Replace UCP Checkout Session Fields\n *\n * UCP-compatible update method. Current behavior matches PATCH: provided fields are applied and omitted fields remain unchanged. Requires `UCP-Agent` and OAuth `checkout:write`.\n *\n * `PUT /ucp/v1/checkout-sessions/{sessionId}`\n */\n replace(\n request: OperationPath<\n operations[\"put_ucp_v1_checkout_sessions_by_sessionid\"]\n > &\n OperationQuery<operations[\"put_ucp_v1_checkout_sessions_by_sessionid\"]> &\n OperationBody<operations[\"put_ucp_v1_checkout_sessions_by_sessionid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"put_ucp_v1_checkout_sessions_by_sessionid\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"PUT\",\n path: `/ucp/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Cancel UCP Checkout Session\n *\n * Cancel a ready-for-payment UCP checkout session and release reserved inventory. Requires `UCP-Agent` and OAuth `checkout:write`.\n *\n * `POST /ucp/v1/checkout-sessions/{sessionId}/cancel`\n */\n cancel(\n request: OperationPath<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_cancel\"]\n > &\n OperationQuery<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_cancel\"]\n > &\n Record<string, unknown>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"post_ucp_v1_checkout_sessions_by_sessionid_cancel\"]>\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/ucp/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}/cancel`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Complete UCP Checkout Session\n *\n * Settle the selected rail and create a native `agentic` order. Settlement failures return HTTP 402 with the checkout still ready for payment. Requires `UCP-Agent` and OAuth `checkout:write`.\n *\n * `POST /ucp/v1/checkout-sessions/{sessionId}/complete`\n */\n complete(\n request: OperationPath<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_complete\"]\n > &\n OperationQuery<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_complete\"]\n > &\n OperationBody<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_complete\"]\n >,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<\n operations[\"post_ucp_v1_checkout_sessions_by_sessionid_complete\"]\n >\n > {\n const { sessionId, organizationId, ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: `/ucp/v1/checkout-sessions/${encodePathParam(\"sessionId\", sessionId)}/complete`,\n query: { organizationId },\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class UcpOrdersClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get UCP Order\n *\n * Fetch the native OmniCommerce order created by a completed UCP checkout session. Only `agentic` orders are exposed through this facade.\n *\n * `GET /ucp/v1/orders/{orderId}`\n */\n get(\n request: OperationPath<operations[\"get_ucp_v1_orders_by_orderid\"]> &\n OperationQuery<operations[\"get_ucp_v1_orders_by_orderid\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<\n SuccessData<operations[\"get_ucp_v1_orders_by_orderid\"]>\n > {\n const { orderId, organizationId } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: `/ucp/v1/orders/${encodePathParam(\"orderId\", orderId)}`,\n query: { organizationId },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class UcpClient {\n readonly checkoutSessions: UcpCheckoutSessionsClient;\n readonly orders: UcpOrdersClient;\n constructor(protected readonly _http: OmniHttp) {\n this.checkoutSessions = new UcpCheckoutSessionsClient(this._http);\n this.orders = new UcpOrdersClient(this._http);\n }\n}\n\nexport class WebhookEventsClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Webhook Events\n *\n * Pull immutable webhook events for recovery or scheduled reconciliation. Requires `webhooks:manage`. Results are organization-scoped and ordered oldest first; continue with the opaque cursor. This is the pull fallback for a receiver that missed push deliveries.\n *\n * `GET /api/v1/webhook-events`\n */\n list(\n request: OperationQuery<operations[\"get_v1_webhook_events\"]> = {},\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_webhook_events\"]>> {\n const { organizationId, eventType, occurredSince, cursor, limit } =\n request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/webhook-events\",\n query: { organizationId, eventType, occurredSince, cursor, limit },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class WebhooksClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * List Developer Webhooks\n *\n * List configured developer webhook subscriptions for the authenticated organization.\n *\n * `GET /api/v1/webhooks`\n */\n list(\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_webhooks\"]>> {\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/webhooks\",\n query: undefined,\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Create Developer Webhook\n *\n * Create a developer webhook subscription for the authenticated organization. The signing secret is returned only once.\n *\n * `POST /api/v1/webhooks`\n */\n create(\n request: OperationBody<operations[\"post_v1_webhooks\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_webhooks\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/webhooks\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class ZaloraClient {\n constructor(protected readonly _http: OmniHttp) {}\n\n /**\n * Get Selected Zalora Import Status\n *\n * Requires catalog:read. Follow the unchanged links.job URL returned by POST. Reads current state once without waiting.\n\n### Completion\n\ndata.status is pending, running, success, or error; data.terminal and data.success identify completion. data.productIds contains mapped Omni IDs for the supplied product sets. Failed imports remain explicit, including missingExternalIds. The top-level completed status describes this status request, not the import.\n\nKeep the original target IDs: the status lookup resolves those targets and does not prove that a modified selection was part of this job.\n *\n * `GET /api/v1/zalora/import`\n */\n getImport(\n request: OperationQuery<operations[\"get_v1_zalora_import\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"get_v1_zalora_import\"]>> {\n const { organizationId, jobId, storeId, productSetIds } = request ?? {};\n return this._http.request({\n method: \"GET\",\n path: \"/api/v1/zalora/import\",\n query: { organizationId, jobId, storeId, productSetIds },\n body: undefined,\n ...mergeRequestOptions(requestOptions),\n });\n }\n\n /**\n * Import Selected Zalora Products\n *\n * Requires catalog:write. Queue an exact import of 1–25 Zalora productSetIds from a connected store. Omit storeId only when one store or one default store is unambiguous.\n\nReturns 202 with links.job for optional status checks and retrieval of Omni product IDs. Only one import may run per store at a time. This endpoint does not invoke an AOP, enrich products, or publish listings.\n *\n * `POST /api/v1/zalora/import`\n */\n importProducts(\n request: OperationBody<operations[\"post_v1_zalora_import\"]>,\n requestOptions?: BaseRequestOptions,\n ): HttpResponsePromise<SuccessData<operations[\"post_v1_zalora_import\"]>> {\n const { ...body } = request ?? {};\n return this._http.request({\n method: \"POST\",\n path: \"/api/v1/zalora/import\",\n query: undefined,\n body: body,\n ...mergeRequestOptions(requestOptions),\n });\n }\n}\n\nexport class OmniGeneratedClient {\n readonly agents: AgentsClient;\n readonly analytics: AnalyticsClient;\n readonly aop: AopClient;\n readonly api: ApiClient;\n readonly brandKits: BrandKitsClient;\n readonly brandsgateway: BrandsgatewayClient;\n readonly bulk: BulkClient;\n readonly campaigns: CampaignsClient;\n readonly catalog: CatalogClient;\n readonly checkoutSessions: CheckoutSessionsClient;\n readonly commerce: CommerceClient;\n readonly compare: CompareClient;\n readonly directory: DirectoryClient;\n readonly documents: DocumentsClient;\n readonly evaluate: EvaluateClient;\n readonly feed: FeedClient;\n readonly images: ImagesClient;\n readonly inventory: InventoryClient;\n readonly jobs: JobsClient;\n readonly looks: LooksClient;\n readonly marketplaces: MarketplacesClient;\n readonly merchants: MerchantsClient;\n readonly monitor: MonitorClient;\n readonly oauth: OauthClient;\n readonly orders: OrdersClient;\n readonly organizations: OrganizationsClient;\n readonly priceBooks: PriceBooksClient;\n readonly productCategories: ProductCategoriesClient;\n readonly products: ProductsClient;\n readonly promotions: PromotionsClient;\n readonly returns: ReturnsClient;\n readonly reviews: ReviewsClient;\n readonly scripts: ScriptsClient;\n readonly search: SearchClient;\n readonly settlements: SettlementsClient;\n readonly sync: SyncClient;\n readonly threads: ThreadsClient;\n readonly ucp: UcpClient;\n readonly webhookEvents: WebhookEventsClient;\n readonly webhooks: WebhooksClient;\n readonly zalora: ZaloraClient;\n constructor(protected readonly _http: OmniHttp) {\n this.agents = new AgentsClient(this._http);\n this.analytics = new AnalyticsClient(this._http);\n this.aop = new AopClient(this._http);\n this.api = new ApiClient(this._http);\n this.brandKits = new BrandKitsClient(this._http);\n this.brandsgateway = new BrandsgatewayClient(this._http);\n this.bulk = new BulkClient(this._http);\n this.campaigns = new CampaignsClient(this._http);\n this.catalog = new CatalogClient(this._http);\n this.checkoutSessions = new CheckoutSessionsClient(this._http);\n this.commerce = new CommerceClient(this._http);\n this.compare = new CompareClient(this._http);\n this.directory = new DirectoryClient(this._http);\n this.documents = new DocumentsClient(this._http);\n this.evaluate = new EvaluateClient(this._http);\n this.feed = new FeedClient(this._http);\n this.images = new ImagesClient(this._http);\n this.inventory = new InventoryClient(this._http);\n this.jobs = new JobsClient(this._http);\n this.looks = new LooksClient(this._http);\n this.marketplaces = new MarketplacesClient(this._http);\n this.merchants = new MerchantsClient(this._http);\n this.monitor = new MonitorClient(this._http);\n this.oauth = new OauthClient(this._http);\n this.orders = new OrdersClient(this._http);\n this.organizations = new OrganizationsClient(this._http);\n this.priceBooks = new PriceBooksClient(this._http);\n this.productCategories = new ProductCategoriesClient(this._http);\n this.products = new ProductsClient(this._http);\n this.promotions = new PromotionsClient(this._http);\n this.returns = new ReturnsClient(this._http);\n this.reviews = new ReviewsClient(this._http);\n this.scripts = new ScriptsClient(this._http);\n this.search = new SearchClient(this._http);\n this.settlements = new SettlementsClient(this._http);\n this.sync = new SyncClient(this._http);\n this.threads = new ThreadsClient(this._http);\n this.ucp = new UcpClient(this._http);\n this.webhookEvents = new WebhookEventsClient(this._http);\n this.webhooks = new WebhooksClient(this._http);\n this.zalora = new ZaloraClient(this._http);\n }\n}\n\nexport type OmniResources = {\n agents: AgentsClient;\n analytics: AnalyticsClient;\n aop: AopClient;\n api: ApiClient;\n brandKits: BrandKitsClient;\n brandsgateway: BrandsgatewayClient;\n bulk: BulkClient;\n campaigns: CampaignsClient;\n catalog: CatalogClient;\n checkoutSessions: CheckoutSessionsClient;\n commerce: CommerceClient;\n compare: CompareClient;\n directory: DirectoryClient;\n documents: DocumentsClient;\n evaluate: EvaluateClient;\n feed: FeedClient;\n images: ImagesClient;\n inventory: InventoryClient;\n jobs: JobsClient;\n looks: LooksClient;\n marketplaces: MarketplacesClient;\n merchants: MerchantsClient;\n monitor: MonitorClient;\n oauth: OauthClient;\n orders: OrdersClient;\n organizations: OrganizationsClient;\n priceBooks: PriceBooksClient;\n productCategories: ProductCategoriesClient;\n products: ProductsClient;\n promotions: PromotionsClient;\n returns: ReturnsClient;\n reviews: ReviewsClient;\n scripts: ScriptsClient;\n search: SearchClient;\n settlements: SettlementsClient;\n sync: SyncClient;\n threads: ThreadsClient;\n ucp: UcpClient;\n webhookEvents: WebhookEventsClient;\n webhooks: WebhooksClient;\n zalora: ZaloraClient;\n};\n","import {\n normalizeClientOptions,\n type BaseClientOptions,\n type BaseRequestOptions,\n} from \"./BaseClient\";\nimport { OmniHttp, type OmniRequestInit } from \"./core/fetcher\";\nimport type { HttpResponsePromise } from \"./core/http-response-promise\";\nimport { OmniGeneratedClient } from \"./generated/resources\";\n\nexport declare namespace OmniClient {\n type Options = BaseClientOptions;\n type RequestOptions = BaseRequestOptions;\n}\n\nexport class OmniClient extends OmniGeneratedClient {\n constructor(options: OmniClient.Options = {}) {\n super(new OmniHttp(normalizeClientOptions(options)));\n }\n\n request<T>(init: OmniRequestInit): HttpResponsePromise<T> {\n return this._http.request(init);\n }\n}\n","const encoder = new TextEncoder();\n\nexport const WEBHOOK_SIGNATURE_HEADER = \"x-omni-signature\";\nexport const WEBHOOK_TIMESTAMP_HEADER = \"x-omni-timestamp\";\nexport const WEBHOOK_EVENT_ID_HEADER = \"x-omni-event-id\";\nexport const WEBHOOK_EVENT_TYPE_HEADER = \"x-omni-event-type\";\n\nexport type WebhookHeaders = {\n \"x-omni-signature\"?: string | null;\n \"x-omni-timestamp\"?: string | null;\n \"x-omni-event-id\"?: string | null;\n \"x-omni-event-type\"?: string | null;\n} & Record<string, string | string[] | null | undefined>;\n\nexport type ConstructedWebhookEvent = {\n eventId?: string;\n eventType?: string;\n timestamp: number;\n payload: unknown;\n rawBody: string;\n};\n\nfunction headerValue(\n headers: WebhookHeaders | Headers,\n name: string,\n): string | undefined {\n if (typeof Headers !== \"undefined\" && headers instanceof Headers) {\n return headers.get(name) ?? headers.get(name.toLowerCase()) ?? undefined;\n }\n const record = headers as WebhookHeaders;\n const direct = record[name] ?? record[name.toLowerCase()];\n if (Array.isArray(direct)) return direct[0];\n return direct ?? undefined;\n}\n\nfunction toHex(bytes: ArrayBuffer): string {\n return [...new Uint8Array(bytes)]\n .map((byte) => byte.toString(16).padStart(2, \"0\"))\n .join(\"\");\n}\n\nfunction timingSafeEqual(left: string, right: string): boolean {\n if (left.length !== right.length) return false;\n let mismatch = 0;\n for (let i = 0; i < left.length; i++) {\n mismatch |= left.charCodeAt(i) ^ right.charCodeAt(i);\n }\n return mismatch === 0;\n}\n\nexport async function signWebhookPayload(input: {\n secret: string;\n timestamp: number;\n payload: string;\n}): Promise<string> {\n const key = await crypto.subtle.importKey(\n \"raw\",\n encoder.encode(input.secret),\n { name: \"HMAC\", hash: \"SHA-256\" },\n false,\n [\"sign\"],\n );\n const signature = await crypto.subtle.sign(\n \"HMAC\",\n key,\n encoder.encode(`${input.timestamp}.${input.payload}`),\n );\n return toHex(signature);\n}\n\nexport async function verifyWebhookSignature(input: {\n secret: string;\n timestamp: number;\n payload: string;\n signature: string;\n}): Promise<boolean> {\n const expected = await signWebhookPayload(input);\n return timingSafeEqual(expected.toLowerCase(), input.signature.toLowerCase());\n}\n\nexport async function constructEvent(\n payload: string | Uint8Array,\n headers: WebhookHeaders | Headers,\n secret: string,\n options?: { toleranceInSeconds?: number },\n): Promise<ConstructedWebhookEvent> {\n const rawBody =\n typeof payload === \"string\" ? payload : new TextDecoder().decode(payload);\n const signature = headerValue(headers, WEBHOOK_SIGNATURE_HEADER);\n const timestampRaw = headerValue(headers, WEBHOOK_TIMESTAMP_HEADER);\n if (!signature || !timestampRaw) {\n throw new Error(\n \"Webhook signature verification failed: missing X-Omni-Signature or X-Omni-Timestamp.\",\n );\n }\n const timestamp = Number(timestampRaw);\n if (!Number.isFinite(timestamp)) {\n throw new Error(\n \"Webhook signature verification failed: invalid timestamp.\",\n );\n }\n const tolerance = options?.toleranceInSeconds ?? 300;\n const now = Math.floor(Date.now() / 1000);\n if (Math.abs(now - timestamp) > tolerance) {\n throw new Error(\n \"Webhook signature verification failed: timestamp outside tolerance.\",\n );\n }\n const valid = await verifyWebhookSignature({\n secret,\n timestamp,\n payload: rawBody,\n signature,\n });\n if (!valid) {\n throw new Error(\n \"Webhook signature verification failed: invalid signature.\",\n );\n }\n let parsed: unknown = rawBody;\n try {\n parsed = JSON.parse(rawBody);\n } catch {\n throw new Error(\"Webhook signature verification failed: body is not JSON.\");\n }\n return {\n eventId: headerValue(headers, WEBHOOK_EVENT_ID_HEADER),\n eventType: headerValue(headers, WEBHOOK_EVENT_TYPE_HEADER),\n timestamp,\n payload: parsed,\n rawBody,\n };\n}\n","export type {\n FlattenedRequest,\n OperationBody,\n OperationPath,\n OperationQuery,\n SuccessData,\n} from \"../types\";\nexport type { operations, paths, components } from \"../generated/openapi\";\nexport {\n OmniGeneratedClient,\n type OmniResources,\n} from \"../generated/resources\";\nexport type {\n AccountStatementCreatedWebhookEvent,\n AccountStatementUpdatedWebhookEvent,\n AccountStatementStatusChangedWebhookEvent,\n AccountStatementReconciliationChangedWebhookEvent,\n AccountStatementTransactionsSyncedWebhookEvent,\n AccountStatementTransactionsFailedWebhookEvent,\n AccountStatementSyncQueuedWebhookEvent,\n AccountStatementSyncStartedWebhookEvent,\n AccountStatementSyncCompletedWebhookEvent,\n AccountStatementSyncFailedWebhookEvent,\n AccountStatementSyncUnavailableWebhookEvent,\n LookCreatedWebhookEvent,\n LookDeletedWebhookEvent,\n OrderCreatedWebhookEvent,\n OrderDeletedWebhookEvent,\n OrderStatusChangedWebhookEvent,\n OrderUpdatedWebhookEvent,\n ProductCreatedWebhookEvent,\n ProductDeletedWebhookEvent,\n ProductEnrichmentCompletedWebhookEvent,\n ProductEnrichmentStartedWebhookEvent,\n ProductInventoryChangedWebhookEvent,\n ProductPriceChangedWebhookEvent,\n ProductUpdatedWebhookEvent,\n ReturnCreatedWebhookEvent,\n ReturnStatusChangedWebhookEvent,\n ReturnUpdatedWebhookEvent,\n SettlementCreatedWebhookEvent,\n SettlementStatusChangedWebhookEvent,\n SettlementUpdatedWebhookEvent,\n} from \"./webhook-events\";\n"]}