@aventurevc/aventure-cli 0.8.125 → 0.8.136
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/aventure-cli/command-catalog.compact.txt +1 -0
- package/dist/aventure-cli/index.js +1 -1
- package/dist/aventure-cli/unified-operations.json +21 -2
- package/dist/chunks/{api-key-bearer-credential-D3Bxhlaz.js → api-key-bearer-credential-CMEYkaoR.js} +1 -1
- package/dist/chunks/api-key-bearer-credential-DAgm6bTo.js +1 -0
- package/dist/chunks/aventure-cli-DwxWPP7_.js +68 -0
- package/dist/chunks/{cli-help-policy-CbA_VsWk.js → cli-help-policy-CL-sHf0N.js} +1 -1
- package/dist/chunks/contract-CscoE6Rw.js +22 -0
- package/dist/chunks/detail-CFSXWI3r.js +1 -0
- package/dist/chunks/detail-D07FzRkx.js +1 -0
- package/dist/chunks/dist-1DJFVcsM.js +96 -0
- package/dist/chunks/{env-DXp5C45x.js → env-CeJYsGWg.js} +1 -1
- package/dist/chunks/logging-vmjaOcxn.js +1 -0
- package/dist/chunks/{logging-DawOnVrS.js → logging-wfRjU4GX.js} +1 -1
- package/dist/chunks/mcp-generation-contract-Bv_5Ybfi.js +1 -0
- package/dist/chunks/mcp-generation-contract-ONtt9CBX.js +1 -0
- package/dist/chunks/oauth-bearer-credential-BqBSflyZ.js +1 -0
- package/dist/chunks/{oauth-bearer-credential-DkfE1luX.js → oauth-bearer-credential-fbQFBDqA.js} +2 -2
- package/dist/chunks/{oauth-login-BkZf2UJq.js → oauth-login-BzkrHuYj.js} +1 -1
- package/dist/chunks/oauth-login-CxDLRRRR.js +1 -0
- package/dist/chunks/openapi-commands-CJjnJMnt.js +1 -0
- package/dist/chunks/openapi-commands-C_Gp1dsl.js +1 -0
- package/dist/chunks/output-mode-BG_5P6MR.js +1 -0
- package/dist/chunks/output-mode-D1d-NDhY.js +1 -0
- package/dist/chunks/output-spill-dDabuyH-.js +1 -0
- package/dist/chunks/provider-catalog-Vn-OYk63.js +1 -0
- package/dist/chunks/{response-problem-Dc5NYwo4.js → response-problem-BGqj-WZj.js} +1 -1
- package/dist/chunks/result-envelope-BE0edu_S.js +1 -0
- package/dist/chunks/{startup-auth-DMvtYz8s.js → startup-auth-B1jiRDe4.js} +1 -1
- package/dist/chunks/startup-auth-UlDSVsoh.js +1 -0
- package/dist/chunks/tool-policy-DmFqIb8Y.js +1 -0
- package/package.json +3 -3
- package/dist/chunks/api-key-bearer-credential-DvOx-_WQ.js +0 -1
- package/dist/chunks/aventure-cli-CKNPHLx0.js +0 -67
- package/dist/chunks/contract-BUKPRFvC.js +0 -22
- package/dist/chunks/detail-D2GAzBWm.js +0 -1
- package/dist/chunks/detail-DsOtCS-O.js +0 -1
- package/dist/chunks/dist-CsqqcGFw.js +0 -96
- package/dist/chunks/logging-DSsAEFRp.js +0 -1
- package/dist/chunks/mcp-generation-contract-BNCFdT3C.js +0 -1
- package/dist/chunks/mcp-generation-contract-_lWJ9txI.js +0 -1
- package/dist/chunks/oauth-bearer-credential-DPTMo7Tm.js +0 -1
- package/dist/chunks/oauth-login-B0kNSXQz.js +0 -1
- package/dist/chunks/openapi-commands-B3GS82-j.js +0 -1
- package/dist/chunks/openapi-commands-BStaiJgI.js +0 -1
- package/dist/chunks/output-mode-38SxgS_X.js +0 -1
- package/dist/chunks/output-mode-BO8iplsw.js +0 -1
- package/dist/chunks/output-spill-ElM4lImT.js +0 -1
- package/dist/chunks/provider-catalog-8znVjXqU.js +0 -1
- package/dist/chunks/result-envelope-CJKoFeOM.js +0 -1
- package/dist/chunks/startup-auth-Cf7X517q.js +0 -1
- package/dist/chunks/tool-policy-BM77Uxx0.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./openapi-commands-B3GS82-j.js";export{e as GENERATED_OPENAPI_COMMAND_SPECS};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./commander-BB7CDPLs.js";import{t}from"./result-envelope-CJKoFeOM.js";import{t as n}from"./output-spill-ElM4lImT.js";var r=`${t/1e3}KB`,i=[{flags:`--text`,description:`Print text (terminal default).`,conflicts:[`data`,`dataFull`,`json`]},{flags:`--data`,description:`Print data JSON (piped default); over ${r} returns a truncated envelope.`,conflicts:[`text`,`dataFull`,`json`]},{flags:`--data-full`,description:`Print uncapped JSON for bounded programs; never LLM agents.`,conflicts:[`text`,`data`,`json`,`toFile`]},{flags:`--to-file <path>`,description:`Write a response over ${r} to <path> and print a receipt; smaller responses print normally.`,conflicts:[`dataFull`]},{flags:`--json`,description:`Print the stable JSON envelope (capped at ${r}).`,conflicts:[`text`,`data`,`dataFull`]},{flags:`--all-fields`,description:`Print text including the detail fields --text hides; --data and --json already carry every field.`,conflicts:[]}];function a(t){for(let n of i)t.addOption(new e(n.flags,n.description).conflicts([...n.conflicts]));return t}function o(e,t=`auto`){return u(e.toFile)&&n(e.toFile),e.json===!0?`json`:e.dataFull===!0?`data-full`:e.data===!0?`data`:e.text===!0||e.allFields===!0?`text`:l(e)||t===`auto`&&!process.stdout.isTTY?`data`:`text`}function s(e){if(e.includes(`--text`))return!1;let t=e.includes(`--json`)||e.includes(`--data`)||e.includes(`--data-full`);return e.includes(`--all-fields`)&&!t?!1:t||e.includes(`--agent-chassis`)&&e.includes(`--agent-model`)||!process.stdout.isTTY}function c(e){return e===`data`||e===`data-full`||e===`json`}function l(e){return u(e.agentChassis)&&u(e.agentModel)}function u(e){return typeof e==`string`&&e.trim().length>0}export{o as i,s as n,c as r,a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./output-mode-38SxgS_X.js";export{e as cliMachineOutputSelected};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./result-envelope-CJKoFeOM.js";import{writeFileSync as t}from"node:fs";import{Buffer as n}from"node:buffer";var r;function i(e){r=e}function a(i){let a=i.data;if(r===void 0||!i.ok||a===null)return i;let o=r,s=a instanceof Uint8Array?a:n.from(typeof a==`string`?a:JSON.stringify(a,null,2),`utf8`);if(s.byteLength<=5e4)return i;try{t(o,s)}catch(t){return e(`could not spill output to '${o}'`,[String(t)])}let c={spilledTo:o,byteLength:s.byteLength};return{...i,data:typeof a==`object`&&!(a instanceof Uint8Array)?{...a,response:c}:`spilled ${s.byteLength} bytes to '${o}'`}}export{a as n,i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as e,y as t}from"./person-owner-BJgNYLKX.js";import{Rr as n}from"./dist-CsqqcGFw.js";var r=t({clerkPublishableKey:e().nullish(),oauthClient:n.nullish()});export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,O as t,S as n,T as r,h as i,i as a,l as o,n as s,o as c,p as l,s as u,t as d,u as f,v as p,w as m,y as h}from"./person-owner-BJgNYLKX.js";import{Buffer as g}from"node:buffer";var _=i(()=>r([m(),p(),f(),u(),o(_),n(m(),_)])),ee=c([`REACTIVATE`,`ATTACH_INACTIVE`]),te=h({availableOverrides:o(ee),slug:m(),tagId:l()}),v=h({externalId:m().nullish(),id:l(),reason:o(m()),score:l(),slug:m().regex(/^[a-z0-9_-]+$/).max(255).nullish()}),ne=h({externalId:m().nullish(),id:t(),name:m().nullish(),operatingStatus:m().nullish(),publicPath:m().nullish(),reason:o(m()),score:l(),slug:m().regex(/^[a-z0-9_-]+$/).max(255).nullish(),typeRecord:s.nullish()}),re=h({candidate:o(ne).nullish(),newsCandidate:o(v).nullish(),overridePath:m().nullish(),threshold:l()}),ie=h({conflictingArticleId:l(),conflictingArticleSlug:m(),conflictingArticleTitle:m()}),y=h({candidateEntityId:o(t()),candidatePersonId:o(t()),hint:m(),normalizedUrl:m().nullish(),url:m(),urlType:m().nullish()}),b=h({owner:d,urlId:l()}),x=h({existingJoin:o(b),fragmentIgnored:f(),guidance:m(),normalizedUrl:m().nullish(),requestedOwner:d,url:m(),urlType:m()}),S=r([x,y,re,te,ie]),C=h({acceptedValue:o(m()).nullish(),action:c([`setField`,`setParameter`,`removeParameter`,`useEndpoint`,`reviewCandidates`,`authenticate`]),endpoint:m().nullish(),fieldPath:m().nullish(),parameter:m().nullish(),retryable:f().nullish()}),ae=r([c([`source`,`record`,`disclaimer`,`voice`,`structured`,`temporal`,`factList`,`mojibake`,`legalSource`,`textContract`]),m()]),oe=h({overridable:f(),passage:m(),problem:ae,reason:m()}),w=c([`entity`,`person`,`news`,`blog`,`content`]),se=h({deletedAt:a({offset:!0}).nullish(),id:m(),isHidden:f(),nameBrand:m().nullish(),resourceType:w,showOnSitemap:f(),slug:m()}),ce=h({newUrl:m().nullish(),oldUrl:m(),targetCurrentSlug:m().nullish(),targetId:m().nullish(),targetResourceType:w.nullish()}),T=h({allowanceType:c([`COMPANY`,`PERSON`,`ENTITY_VIEW`,`ENTITY_BRAND`,`PERSON_VIEW`,`WEB_SEARCH`]).nullish(),circuitBreaker:m().nullish(),code:r([c(`not_authorized.rateLimited.rate_limited.subscription_required.subscription_canceled.subscription_past_due.subscription_paused.billing_allowance_exhausted.billing_additional_usage_cap_reached.account_exists.origin_detail_capacity.origin_detail_shutdown.suspectedShellStrip.suspected_shell_strip.prose_rejected.url_surface_misclassification.JOBRUNR_DISABLED.jobrunr_disabled.JOBRUNR_STORAGE_UNAVAILABLE.jobrunr_storage_unavailable.rbac_lookup_unavailable.GEOCODE_PROVIDER_ERROR.geocode_provider_error.sentry_api_error.frontend_cache_epoch_mode_not_targeted.image_blocklist_match.image_monochrome.image_too_small.image_wrong_aspect.image_monogram.image_unreadable.image_processing_error.image_brand_mismatch.image_photographic.web_crawl_fetch_failed.primary_website_missing.news_rss_feed_fetch_failed.news_rss_article_fetch_failed.callback_connection_refused.callback_timeout.callback_tls_error.callback_http_4xx.callback_http_5xx.callback_challenge_failed.news_subscription_limit.r2_fetch_failed.r2_delete_failed.r2_upload_failed.source_document_body_unavailable.source_document_capture_limit_exceeded.news_similarity_embedding_unavailable.search_provider_not_configured.search_provider_error.search_still_running.lookup_still_running.sec_edgar_fetch_failed.github_fetch_failed.INFERENCE_PROVIDER_ERROR.inference_provider_error.INFERENCE_PROVIDER_RESPONSE_EMPTY.inference_provider_response_empty.INFERENCE_PROVIDER_INVALID_JSON.inference_provider_invalid_json.INFERENCE_PROFILES_MISSING.inference_profiles_missing.INFERENCE_PROFILE_API_KEY_MISSING.inference_profile_api_key_missing`.split(`.`)),m().max(128)]).nullish(),conflictingRecord:se.nullish(),detail:m().optional(),details:S.nullish(),error:n(m(),m()).nullish(),existingRedirect:ce.nullish(),feId:m().nullish(),field:m().nullish(),hammingDistance:p().int().nullish(),hint:m().nullish(),instance:m().optional(),limit:p().int().nullish(),limitType:c([`FORM`,`GLOBAL`,`SUBNET`,`IP`,`UNKNOWN`,`RESILIENCE4J`,`WEB_SEARCH`,`AGENT_HELP`,`NATURAL_SEARCH`,`BILLING_ALLOWANCE`,`BILLING_ADDITIONAL_USAGE`,`CLERK_PUBLIC_ADMISSION`,`CLERK_SCRIPT_LOAD`,`ORIGIN_DETAIL`,`INFERENCE_PROVIDER`]).nullish(),matchedBlocklistKey:m().nullish(),mediaType:m().nullish(),moderationReason:m().nullish(),parseError:m().nullish(),path:m().nullish(),properties:n(m(),_).optional(),proseViolation:o(oe).nullish(),remaining:p().int().nullish(),requiredRole:m().nullish(),resetAt:a({offset:!0}).nullish(),resolution:C.nullish(),retryAfterSeconds:p().int().nullish(),spanId:m().nullish(),status:l().optional(),suggestion:m().nullish(),suggestions:n(m(),m()).nullish(),suspectedFragment:m().nullish(),title:m().optional(),traceId:m().nullish(),type:m().optional(),unknownParameters:o(m()).nullish(),used:p().int().nullish(),validParameters:o(m()).nullish(),value:m().nullish(),windowSeconds:p().int().nullish()}),le=e=>e>=500&&e<600,E=r([m(),p(),f()]),ue=h({number:p().optional(),size:p().optional(),numberOfElements:p().optional(),totalElements:p().optional(),totalPages:p().optional(),first:f().optional(),last:f().optional(),empty:f().optional()}),D=h({byteLength:p(),maxBytes:p(),omitted:o(m()),recovery:m()}),O=h({status:p(),title:m(),type:m()}).catchall(_.optional()).and(T);h({ok:f(),summary:m(),httpStatus:p().optional(),operationId:m().optional(),method:m().optional(),endpoint:m().optional(),format:c([`json`,`text`]).optional(),count:p().optional(),page:ue.optional(),filters:n(m(),r([E,o(E)])).optional(),truncated:f().optional(),truncation:D.optional(),omitted:o(m()).default([]),ids:o(m()).default([]),counts:n(m(),p()).default({}),references:o(m()).default([]),warnings:o(m()).default([]),problem:O.optional(),data:e()});var k=5e4,A=[50,25,10,5,1],j=[...A.map(e=>({arrayLimit:e,rowLimit:1/0})),...A.map(e=>({arrayLimit:1,rowLimit:e}))],M=320,N=1e3,P=/^(?:bio|biography|body|content|description|evidence|fulltext|notes|snippet|summary|text)$/u,F=/(?:description|snippet|summary|text)$/u;function I(e){let t=Z(e)?e:null;if(t===null)return;let n={number:Q(t,`number`),size:Q(t,`size`),numberOfElements:Q(t,`numberOfElements`),totalElements:Q(t,`totalElements`),totalPages:Q(t,`totalPages`),first:$(t,`first`),last:$(t,`last`),empty:$(t,`empty`)};return Object.values(n).some(e=>e!==void 0)?n:void 0}function L(e,t){if(t?.numberOfElements!==void 0)return t.numberOfElements;if(Array.isArray(e))return e.length;let n=Z(e)?e.content:void 0;return Array.isArray(n)?n.length:void 0}function R(e,t,n={}){return{ok:!0,summary:e,...n,omitted:n.omitted??[],ids:n.ids??[],counts:n.counts??{},references:n.references??[],warnings:n.warnings??[],data:t}}function z(e,t=[],n={}){return{...R(e,null,{...n,warnings:t}),ok:!1}}function B(e,t={}){let n=g.byteLength(JSON.stringify(e),`utf8`);if(n<=5e4)return e;let r=e.httpStatus??0;if(t.write===!0&&e.ok&&r>=200&&r<300)return V(e,n,t.exactRecovery);let i=t.exactRecovery??me,a=e;for(let t of j)if(a=de(e,n,fe(e.data,n,t),i),W(a))return a;return H({...a,truncation:J(n,[`data`],i),data:Y(n)},n,i)}function V(e,t,n=`Read the full result through the GET operation on ${e.endpoint??`this route`}.`){let r={...e.counts},i=(e,n)=>{let a={};for(let[o,s]of Object.entries(Z(e)?e:{}))Array.isArray(s)?r[`${n}${o}`]=s.length:typeof s==`string`?a[o]=G(s,t,M):typeof s!=`object`||!s?a[o]=s:n===``&&o===`response`&&(a[o]=i(s,`response.`));return a};return{...e,summary:`${e.method} succeeded (HTTP ${e.httpStatus}); response body omitted (${t} bytes, over the 50KB cap); do not retry the write`,truncated:!0,truncation:J(t,[`data`],n),counts:r,data:i(e.data,``)}}function de(e,t,n,r){return{...e,truncated:!0,truncation:J(t,n.omitted,r),warnings:[...e.warnings,`response truncated (>50KB); read the section through its sub-resource operation, or request a smaller page or narrower server-side filter`],data:n.value}}function H(e,t,n){if(W(e))return e;let r=e.warnings.slice(0,-1),i=`response truncated (>50KB); metadata named in truncation.omitted was removed; read the section through its sub-resource operation, or request a smaller page or narrower server-side filter`,a=[`data`],o=e;if(o.problem!==void 0){let e=U(o.problem);if(JSON.stringify(e).length<JSON.stringify(o.problem).length&&(a.push(`problem`),o={...o,problem:e,truncation:J(t,a,n)},W(o)))return o}let s=[];if(e.filters!==void 0&&s.push(`filters`),e.omitted.length>0&&s.push(`omitted`),e.ids.length>0&&s.push(`ids`),Object.keys(e.counts).length>0&&s.push(`counts`),e.references.length>0&&s.push(`references`),a.push(...s),o={...o,filters:void 0,truncation:J(t,a,n),omitted:[],ids:[],counts:{},references:[],warnings:s.length===0?e.warnings:[...r,i]},W(o))return o;let c=e=>e===void 0?void 0:G(e,t),l=G(o.summary,t),u=c(o.operationId),d=c(o.method),f=c(o.endpoint),p=o.warnings.map(e=>G(e,t)),m=o.problem===void 0?void 0:U(o.problem,t);if(l!==o.summary&&a.push(`summary`),u!==o.operationId&&a.push(`operationId`),d!==o.method&&a.push(`method`),f!==o.endpoint&&a.push(`endpoint`),p.some((e,t)=>e!==o.warnings[t])&&a.push(`warnings`),o.problem!==void 0&&m!==void 0&&JSON.stringify(m)!==JSON.stringify(o.problem)&&a.push(`problem`),o={...o,summary:l,...u===void 0?{}:{operationId:u},...d===void 0?{}:{method:d},...f===void 0?{}:{endpoint:f},truncation:J(t,a,n),warnings:p,...m===void 0?{}:{problem:m}},W(o))return o;a.push(`warnings`),o.page!==void 0&&a.push(`page`);let h=G(o.summary,t,M);return h!==o.summary&&a.push(`summary`),{...o,summary:h,page:void 0,filters:void 0,truncated:!0,truncation:J(t,a,n),omitted:[],ids:[],counts:{},references:[],warnings:[i]}}function U(e,t){let n=e=>t===void 0?e:G(e,t);return{status:e.status,title:n(e.title),type:n(e.type),...e.detail===void 0?{}:{detail:n(e.detail)},...e.instance===void 0?{}:{instance:n(e.instance)},...e.code===void 0?{}:{code:typeof e.code==`string`?n(e.code):e.code},...e.retryAfterSeconds===void 0?{}:{retryAfterSeconds:e.retryAfterSeconds}}}function W(e){return g.byteLength(JSON.stringify(e),`utf8`)<=k}function G(e,t,n=N){if(g.byteLength(JSON.stringify(e),`utf8`)<=n)return e;let r=X(t),i=``,a=g.byteLength(JSON.stringify(r),`utf8`);for(let t of e){let e=g.byteLength(JSON.stringify(t),`utf8`)-2;if(a+e>n)break;i+=t,a+=e}return`${i.trimEnd()}${r}`}function fe(e,t,n){let r=_.safeParse(JSON.parse(JSON.stringify(e)));return r.success?K(r.data,`data`,t,n):{value:Y(t),omitted:[`data`]}}function K(e,t,n,r){if(typeof e==`string`)return!(q(he(t))||e.length>N)||e.length<=M?{value:e,omitted:[]}:{value:`${e.slice(0,M).trimEnd()}${X(n)}`,omitted:[t]};if(typeof e!=`object`||!e)return{value:e,omitted:[]};if(Array.isArray(e))return pe(e,t,n,r);if(t===`data.response.entity.answer`||t===`data.response.answer`)return{value:e,omitted:[]};let i={},a=[];for(let[o,s]of Object.entries(e)){let e=K(s,`${t}.${o}`,n,r);i[o]=e.value,a.push(...e.omitted)}return{value:i,omitted:a}}function pe(e,t,n,r){let i=e.slice(0,r.rowLimit),a={...r,rowLimit:r.arrayLimit},o=i.map((e,r)=>K(e,`${t}[${r}]`,n,a)),s=o.flatMap(e=>e.omitted),c=`${t}[${i.length}..] (kept ${i.length} of ${e.length})`;return{value:o.map(e=>e.value),omitted:e.length>i.length?[...s,c]:s}}function q(e){let t=e.toLowerCase();return P.test(t)||F.test(t)}var me=`Refetch a narrower result: use ids/references, a more specific list read (e.g. entities relationships list, entities people list, or news list --owner-entity-id), filters, or smaller pages with page and size.`;function J(e,t,n){return{byteLength:e,maxBytes:k,omitted:t.length===0?[`data`]:[...new Set(t)],recovery:n}}function Y(e){return{truncated:!0,byteLength:e,maxBytes:k}}function X(e){return`\n[truncated byteLength=${e} maxBytes=${k}]`}function he(e){return(e.split(`.`).at(-1)??e).replace(/\[\d+\]$/,``)}function Z(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Q(e,t){let n=e[t];return typeof n==`number`?n:void 0}function $(e,t){let n=e[t];return typeof n==`boolean`?n:void 0}export{I as a,le as c,W as i,T as l,B as n,L as o,z as r,R as s,k as t,_ as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./startup-auth-DMvtYz8s.js";export{e as commandAuthMaterializationMode};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./commander-BB7CDPLs.js";import{C as t,S as n,T as r,g as i,h as a,l as o,o as s,u as c,v as l,w as u,y as d}from"./person-owner-BJgNYLKX.js";import{r as f,s as p,u as m}from"./result-envelope-CJKoFeOM.js";import{basename as h,extname as ee}from"node:path";import{AsyncLocalStorage as te}from"node:async_hooks";import{readFile as ne}from"node:fs/promises";function g(e){return new URL(e,`https://placeholder.invalid`).pathname}function _(e,t){let n=e.split(`/`).filter(Boolean),r=t.split(`/`).filter(Boolean);return n.length!==r.length||r.some(re)?!1:n.every((e,t)=>v(e)||e===r[t])}function v(e){let t=e.slice(1,-1);return e.startsWith(`{`)&&e.endsWith(`}`)&&t.length>0&&!t.includes(`/`)&&!t.includes(`{`)&&!t.includes(`}`)}function re(e){if(v(e))return!0;let t=e.toLowerCase(),n=e.slice(3,-3);return t.startsWith(`%7b`)&&t.endsWith(`%7d`)&&n.length>0&&!n.includes(`/`)&&!n.includes(`%`)&&!n.includes(`{`)&&!n.includes(`}`)}var y=new te,b=()=>y.getStore()?.requestId,ie=()=>y.getStore()?.userBearerToken;function x(e,t){return y.run({...y.getStore(),requestId:e},t)}function S(e,t){return y.run({...y.getStore(),userBearerToken:e},t)}var C=3e4;async function w(e,t,n,r){let i=E(T(e.requestBody?.content),n);if(!i.ok||i.data===null)return f(i.summary,i.warnings);let a=i.data;return e.requestBody?.required===!0&&t===void 0&&a?.kind!==`multipart`?f(`Request body is required.`):a?.kind===`multipart`?await se(e.requestBody?.required===!0,a.schema,t):p(`Request body prepared`,{body:t,contentType:a?.contentType??r})}function ae(e){if(typeof e!=`string`)return p(`Request body unchanged`,e);let t=e.trimStart().slice(0,1);if(t!==`{`&&t!==`[`)return p(`Request body unchanged`,e);try{let t=m.safeParse(JSON.parse(e));if(!t.success)throw t.error;return p(`Request body parsed`,t.data)}catch(e){return f(`Request body string must be valid JSON: ${e.message}`)}}function oe(e,t){let n=e?.schema;if(n===void 0)return!1;let r=n.$ref?.startsWith(`#/components/schemas/`)===!0?n.$ref.slice(21):void 0,i=n.type??(r===void 0?void 0:t[r]?.type);return Array.isArray(i)?i.includes(`array`):i===`array`}function T(e){let t=Object.entries(e??{});return[...t.flatMap(e=>I(e[0])?[D(e,`json`)]:[]),...t.flatMap(e=>L(e[0])?[D(e,`multipart`)]:[])]}function E(e,t){if(t===void 0)return p(`Default request content selected`,e[0]);let n=R(t),r=e.find(e=>R(e.contentType)===n);return r===void 0?f(`Request Content-Type '${t}' is not supported. Supported choices: ${e.map(({contentType:e})=>e).join(`, `)||`none`}.`):p(`Explicit request content selected`,r)}function D(e,t){return{contentType:e[0],kind:t,schema:e[1].schema}}async function se(e,t,n){if(!e&&n==null)return p(`Optional multipart body omitted`,{});let r=ce(n);if(!r.ok||r.data===null)return f(r.summary,r.warnings);let i=new FormData;for(let e of le(t)){let t=r.data[e.name];if(t==null){if(e.required)return f(`Multipart body requires '${e.name}'.`);continue}if(Array.isArray(t)&&t.length<(e.schema.minItems??0))return f(`Multipart part '${e.name}' requires more entries.`);if(Array.isArray(t)&&t.length>(e.schema.maxItems??2**53-1))return f(`Multipart part '${e.name}' has too many entries.`);if(O(e.schema)||k(e.schema)){let n=k(e.schema)?t:[t];if(!Array.isArray(n)||n.some(e=>typeof e!=`string`))return f(`Multipart part '${e.name}' must contain file paths or URLs.`);for(let t of n){if(typeof t!=`string`)continue;let n=await j(t);if(!n.ok||n.data===null)return f(n.summary,n.warnings);i.append(e.name,n.data.blob,n.data.filename)}}else if(ue(e.schema,t)){let n=JSON.stringify(t);i.append(e.name,new Blob([n],{type:`application/json`}),`${e.name}.json`)}else{let n=A(i,e.name,t);if(!n.ok)return n}}return p(`Multipart body prepared`,{body:i})}function ce(e){if(typeof e==`object`&&e&&!Array.isArray(e)){let t=Object.fromEntries(Object.entries(e));return p(`Multipart input parsed`,t)}return f(`Multipart request body must be a JSON object keyed by form part name.`)}function le(e){let t=new Set(e?.required??[]);return Object.entries(e?.properties??{}).map(([e,n])=>({name:e,schema:n,required:t.has(e)}))}function O(e){return e.type===`string`&&e.format===`binary`}function k(e){return e.type===`array`&&e.items!==void 0&&O(e.items)}function ue(e,t){return typeof t!=`object`||!t||Array.isArray(t)?!1:e.type===`object`||typeof e.$ref==`string`&&e.$ref.length>0}function A(e,t,n){if(Array.isArray(n)){for(let r of n){let n=A(e,t,r);if(!n.ok)return n}return p(`Multipart scalar array appended`,null)}return typeof n==`object`?f(`Multipart part '${t}' must be scalar.`):(e.append(t,String(n)),p(`Multipart scalar appended`,null))}async function j(e){return P(e)?await M(e):b()===void 0?await N(e):f(`MCP callers cannot upload local files: pass an http(s) URL as the multipart part, or send media by sourceUrl in a JSON body. Local file paths are CLI-only.`)}async function M(e){let t=new AbortController,n=setTimeout(()=>t.abort(),C);try{let n=new URL(e),r=await fetch(e,{signal:t.signal});if(!r.ok)return f(`Failed to fetch media URL: ${r.status} ${r.statusText}`);let i=r.headers.get(`content-type`)?.split(`;`)[0]?.trim()??F(n.pathname)??``,a=new Blob([await r.arrayBuffer()],{type:i});return p(`URL media fetched`,{blob:a,filename:h(n.pathname)||`upload`})}catch(e){return t.signal.aborted?f(`Failed to fetch media URL: timed out after ${C}ms.`):f(`Failed to fetch media URL: ${e.message}`)}finally{clearTimeout(n)}}async function N(e){try{let t=F(e)??``,n=await ne(e);return p(`File media read`,{blob:new Blob([n],{type:t}),filename:h(e)})}catch(t){return f(`Failed to read media file '${e}': ${t.message}`)}}function P(e){return e.startsWith(`http://`)||e.startsWith(`https://`)}function F(e){return z[ee(e).toLowerCase()]}function I(e){let t=R(e);return t===`*/*`||t===`application/json`||t.endsWith(`+json`)}function L(e){return R(e)===`multipart/form-data`}var R=e=>e.split(`;`)[0]?.trim().toLowerCase()??``,z={".gif":`image/gif`,".heic":`image/heic`,".heif":`image/heif`,".jpeg":`image/jpeg`,".jpg":`image/jpeg`,".png":`image/png`,".webp":`image/webp`};Object.freeze({Address:{modulePath:`address/address`,schemaName:`AddressSchema`},AddressAssociation:{modulePath:`address/association`,schemaName:`AddressAssociationSchema`},AddressAssociationRole:{modulePath:`address/association-role`,schemaName:`AddressAssociationRoleSchema`},AddressCity:{modulePath:`address/city`,schemaName:`AddressCitySchema`},AddressCountry:{modulePath:`address/country`,schemaName:`AddressCountrySchema`},AddressState:{modulePath:`address/state`,schemaName:`AddressStateSchema`},AgentHelp:{modulePath:`agent/help`,schemaName:`AgentHelpSchema`},AgentHelpQuestion:{modulePath:`agent/help-question`,schemaName:`AgentHelpQuestionSchema`},ApiKey:{modulePath:`api/key`,schemaName:`ApiKeySchema`},AuthClient:{modulePath:`auth/client`,schemaName:`AuthClientSchema`},AuthOperation:{modulePath:`auth/operation`,schemaName:`AuthOperationSchema`},AuthOperationAccess:{modulePath:`auth/operation-access`,schemaName:`AuthOperationAccessSchema`},AuthOperationAuthorization:{modulePath:`auth/operation-authorization`,schemaName:`AuthOperationAuthorizationSchema`},AuthOperationFilter:{modulePath:`auth/operation-filter`,schemaName:`AuthOperationFilterSchema`},AuthOperationMethod:{modulePath:`auth/operation-method`,schemaName:`AuthOperationMethodSchema`},AuthPermissionGrant:{modulePath:`auth/permission-grant`,schemaName:`AuthPermissionGrantSchema`},AuthProviderCatalog:{modulePath:`auth/provider-catalog`,schemaName:`AuthProviderCatalogSchema`},BillingAdditionalUsage:{modulePath:`billing/additional-usage`,schemaName:`BillingAdditionalUsageSchema`},BillingAdditionalUsageFundingType:{modulePath:`billing/additional-usage-funding-type`,schemaName:`BillingAdditionalUsageFundingTypeSchema`},BillingAdditionalUsageMeter:{modulePath:`billing/additional-usage-meter`,schemaName:`BillingAdditionalUsageMeterSchema`},BillingAdditionalUsageType:{modulePath:`billing/additional-usage-type`,schemaName:`BillingAdditionalUsageTypeSchema`},BillingCatalog:{modulePath:`billing/catalog`,schemaName:`BillingCatalogSchema`},BillingCatalogAdditionalUsage:{modulePath:`billing/catalog-additional-usage`,schemaName:`BillingCatalogAdditionalUsageSchema`},BillingCatalogAllowance:{modulePath:`billing/catalog-allowance`,schemaName:`BillingCatalogAllowanceSchema`},BillingCatalogCreditPack:{modulePath:`billing/catalog-credit-pack`,schemaName:`BillingCatalogCreditPackSchema`},BillingCatalogPlan:{modulePath:`billing/catalog-plan`,schemaName:`BillingCatalogPlanSchema`},BillingCatalogTier:{modulePath:`billing/catalog-tier`,schemaName:`BillingCatalogTierSchema`},BillingCheckout:{modulePath:`billing/checkout`,schemaName:`BillingCheckoutSchema`},BillingCheckoutMutation:{modulePath:`billing/checkout-mutation`,schemaName:`BillingCheckoutMutationSchema`},BillingCheckoutUiMode:{modulePath:`billing/checkout-ui-mode`,schemaName:`BillingCheckoutUiModeSchema`},BillingCreditPackType:{modulePath:`billing/credit-pack-type`,schemaName:`BillingCreditPackTypeSchema`},BillingPaymentMethod:{modulePath:`billing/payment-method`,schemaName:`BillingPaymentMethodSchema`},BillingPlanChange:{modulePath:`billing/plan-change`,schemaName:`BillingPlanChangeSchema`},BillingPlanChangeMutation:{modulePath:`billing/plan-change-mutation`,schemaName:`BillingPlanChangeMutationSchema`},BillingPlanChangePreview:{modulePath:`billing/plan-change-preview`,schemaName:`BillingPlanChangePreviewSchema`},BillingPlanType:{modulePath:`billing/plan-type`,schemaName:`BillingPlanTypeSchema`},BillingPortal:{modulePath:`billing/portal`,schemaName:`BillingPortalSchema`},BillingRecurringPrice:{modulePath:`billing/recurring-price`,schemaName:`BillingRecurringPriceSchema`},BillingSubscription:{modulePath:`billing/subscription`,schemaName:`BillingSubscriptionSchema`},BlogPost:{modulePath:`blog/post`,schemaName:`BlogPostSchema`},BlogPostType:{modulePath:`blog/post-type`,schemaName:`BlogPostTypeSchema`},ChartBucket:{modulePath:`chart/bucket`,schemaName:`ChartBucketSchema`},Classification:{modulePath:`classification/classification`,schemaName:`ClassificationSchema`},ClassificationCatalog:{modulePath:`classification/catalog`,schemaName:`ClassificationCatalogSchema`},ClassificationCatalogBucket:{modulePath:`classification/catalog-bucket`,schemaName:`ClassificationCatalogBucketSchema`},ClassificationCatalogCategory:{modulePath:`classification/catalog-category`,schemaName:`ClassificationCatalogCategorySchema`},ClassificationInactiveTagDetails:{modulePath:`classification/inactive-tag-details`,schemaName:`ClassificationInactiveTagDetailsSchema`},CliAuthorization:{modulePath:`cli/authorization`,schemaName:`CliAuthorizationSchema`},CliAuthorizationClientPlatform:{modulePath:`cli/authorization-client-platform`,schemaName:`CliAuthorizationClientPlatformSchema`},CliAuthorizationDelivery:{modulePath:`cli/authorization-delivery`,schemaName:`CliAuthorizationDeliverySchema`},CliAuthorizationEncryptionAlgorithm:{modulePath:`cli/authorization-encryption-algorithm`,schemaName:`CliAuthorizationEncryptionAlgorithmSchema`},CliAuthorizationMutation:{modulePath:`cli/authorization-mutation`,schemaName:`CliAuthorizationMutationSchema`},CliAuthorizationPoll:{modulePath:`cli/authorization-poll`,schemaName:`CliAuthorizationPollSchema`},CliAuthorizationStart:{modulePath:`cli/authorization-start`,schemaName:`CliAuthorizationStartSchema`},CliAuthorizationStatus:{modulePath:`cli/authorization-status`,schemaName:`CliAuthorizationStatusSchema`},CliAuthorizationTerminalReason:{modulePath:`cli/authorization-terminal-reason`,schemaName:`CliAuthorizationTerminalReasonSchema`},Confidence:{modulePath:`confidence/confidence`,schemaName:`ConfidenceSchema`},ContentCompliance:{modulePath:`content/compliance`,schemaName:`ContentComplianceSchema`},ContentEmbeddingMatch:{modulePath:`content/embedding-match`,schemaName:`ContentEmbeddingMatchSchema`},ContentSourceType:{modulePath:`content/source-type`,schemaName:`ContentSourceTypeSchema`},CurrentSlugOwner:{modulePath:`redirect/current-slug-owner`,schemaName:`CurrentSlugOwnerSchema`},CursorSliceSharedSearchList:{modulePath:`cursor/slice-shared-search-list`,schemaName:`CursorSliceSharedSearchListSchema`},DatasourceDataSourceType:{modulePath:`datasource/data-source-type`,schemaName:`DatasourceDataSourceTypeSchema`},DatasourceProvenanceActorType:{modulePath:`datasource/provenance-actor-type`,schemaName:`DatasourceProvenanceActorTypeSchema`},DatasourceSourceMetadata:{modulePath:`datasource/source-metadata`,schemaName:`DatasourceSourceMetadataSchema`},DateRange:{modulePath:`date/range`,schemaName:`DateRangeSchema`},DecimalRange:{modulePath:`decimal/range`,schemaName:`DecimalRangeSchema`},DomainConflictDetails:{modulePath:`domain/conflict-details`,schemaName:`DomainConflictDetailsSchema`},DuplicateCreateReview:{modulePath:`duplicate/create-review`,schemaName:`DuplicateCreateReviewSchema`},EmployeeCount:{modulePath:`employee/count`,schemaName:`EmployeeCountSchema`},Enrichment:{modulePath:`enrichment/enrichment`,schemaName:`EnrichmentSchema`},EnrichmentBatch:{modulePath:`enrichment/batch`,schemaName:`EnrichmentBatchSchema`},EnrichmentMode:{modulePath:`enrichment/mode`,schemaName:`EnrichmentModeSchema`},EnrichmentPrompt:{modulePath:`enrichment/prompt`,schemaName:`EnrichmentPromptSchema`},EnrichmentRefusalType:{modulePath:`enrichment/refusal-type`,schemaName:`EnrichmentRefusalTypeSchema`},Entity:{modulePath:`entity/entity`,schemaName:`EntitySchema`},EntityAcceleratorParticipation:{modulePath:`entity/accelerator-participation`,schemaName:`EntityAcceleratorParticipationSchema`},EntityAcquisition:{modulePath:`entity/acquisition`,schemaName:`EntityAcquisitionSchema`},EntityAcquisitionEvidence:{modulePath:`entity/acquisition-evidence`,schemaName:`EntityAcquisitionEvidenceSchema`},EntityAcquisitionRole:{modulePath:`entity/acquisition-role`,schemaName:`EntityAcquisitionRoleSchema`},EntityAcquisitionStage:{modulePath:`entity/acquisition-stage`,schemaName:`EntityAcquisitionStageSchema`},EntityAliasType:{modulePath:`entity/alias-type`,schemaName:`EntityAliasTypeSchema`},EntityBrand:{modulePath:`entity/brand`,schemaName:`EntityBrandSchema`},EntityClassification:{modulePath:`entity/classification`,schemaName:`EntityClassificationSchema`},EntityClassificationInactiveTagOverride:{modulePath:`entity/classification-inactive-tag-override`,schemaName:`EntityClassificationInactiveTagOverrideSchema`},EntityClassificationSuggestion:{modulePath:`entity/classification-suggestion`,schemaName:`EntityClassificationSuggestionSchema`},EntityComparisonSignals:{modulePath:`entity/comparison-signals`,schemaName:`EntityComparisonSignalsSchema`},EntityDetail:{modulePath:`entity/detail`,schemaName:`EntityDetailSchema`},EntityDetailBatch:{modulePath:`entity/detail-batch`,schemaName:`EntityDetailBatchSchema`},EntityEnrichment:{modulePath:`entity/enrichment`,schemaName:`EntityEnrichmentSchema`},EntityFilter:{modulePath:`entity/filter`,schemaName:`EntityFilterSchema`},EntityFilterChoice:{modulePath:`entity/filter-choice`,schemaName:`EntityFilterChoiceSchema`},EntityFilterControlType:{modulePath:`entity/filter-control-type`,schemaName:`EntityFilterControlTypeSchema`},EntityFilterEntry:{modulePath:`entity/filter-entry`,schemaName:`EntityFilterEntrySchema`},EntityFilterHeadquartersCountry:{modulePath:`entity/filter-headquarters-country`,schemaName:`EntityFilterHeadquartersCountrySchema`},EntityFilterHeadquartersOptionSet:{modulePath:`entity/filter-headquarters-option-set`,schemaName:`EntityFilterHeadquartersOptionSetSchema`},EntityFilterHeadquartersStateCity:{modulePath:`entity/filter-headquarters-state-city`,schemaName:`EntityFilterHeadquartersStateCitySchema`},EntityFilterLogoOption:{modulePath:`entity/filter-logo-option`,schemaName:`EntityFilterLogoOptionSchema`},EntityFilterMeta:{modulePath:`entity/filter-meta`,schemaName:`EntityFilterMetaSchema`},EntityFilterOptionMode:{modulePath:`entity/filter-option-mode`,schemaName:`EntityFilterOptionModeSchema`},EntityFilterOptionSet:{modulePath:`entity/filter-option-set`,schemaName:`EntityFilterOptionSetSchema`},EntityFilterOptionSetMeta:{modulePath:`entity/filter-option-set-meta`,schemaName:`EntityFilterOptionSetMetaSchema`},EntityFilterRefinedFilters:{modulePath:`entity/filter-refined-filters`,schemaName:`EntityFilterRefinedFiltersSchema`},EntityFilterScope:{modulePath:`entity/filter-scope`,schemaName:`EntityFilterScopeSchema`},EntityFilterSearch:{modulePath:`entity/filter-search`,schemaName:`EntityFilterSearchSchema`},EntityFilterSearchResult:{modulePath:`entity/filter-search-result`,schemaName:`EntityFilterSearchResultSchema`},EntityFilterSortable:{modulePath:`entity/filter-sortable`,schemaName:`EntityFilterSortableSchema`},EntityFilterUiMeta:{modulePath:`entity/filter-ui-meta`,schemaName:`EntityFilterUiMetaSchema`},EntityFundingDetail:{modulePath:`entity/funding-detail`,schemaName:`EntityFundingDetailSchema`},EntityFundraise:{modulePath:`entity/fundraise`,schemaName:`EntityFundraiseSchema`},EntityFundraiseFilterCriteria:{modulePath:`entity/fundraise-filter-criteria`,schemaName:`EntityFundraiseFilterCriteriaSchema`},EntityFundraiseInvestorActivity:{modulePath:`entity/fundraise-investor-activity`,schemaName:`EntityFundraiseInvestorActivitySchema`},EntityFundraiseInvestorJoin:{modulePath:`entity/fundraise-investor-join`,schemaName:`EntityFundraiseInvestorJoinSchema`},EntityFundraiseTransaction:{modulePath:`entity/fundraise-transaction`,schemaName:`EntityFundraiseTransactionSchema`},EntityFundraiseTransactionEntity:{modulePath:`entity/fundraise-transaction-entity`,schemaName:`EntityFundraiseTransactionEntitySchema`},EntityImage:{modulePath:`entity/image`,schemaName:`EntityImageSchema`},EntityInvestorParticipation:{modulePath:`entity/investor-participation`,schemaName:`EntityInvestorParticipationSchema`},EntityList:{modulePath:`entity/list`,schemaName:`EntityListSchema`},EntityListFilter:{modulePath:`entity/list-filter`,schemaName:`EntityListFilterSchema`},EntityListQualityGate:{modulePath:`entity/list-quality-gate`,schemaName:`EntityListQualityGateSchema`},EntityListResearch:{modulePath:`entity/list-research`,schemaName:`EntityListResearchSchema`},EntityLogoType:{modulePath:`entity/logo-type`,schemaName:`EntityLogoTypeSchema`},EntityNameAliasEntityAliasType:{modulePath:`entity/name-alias-entity-alias-type`,schemaName:`EntityNameAliasEntityAliasTypeSchema`},EntityNameAliasPersonAliasType:{modulePath:`entity/name-alias-person-alias-type`,schemaName:`EntityNameAliasPersonAliasTypeSchema`},EntityNaturalSearch:{modulePath:`entity/natural-search`,schemaName:`EntityNaturalSearchSchema`},EntityOperatingStatus:{modulePath:`entity/operating-status`,schemaName:`EntityOperatingStatusSchema`},EntityPersonAssociation:{modulePath:`entity/person-association`,schemaName:`EntityPersonAssociationSchema`},EntityPersonOwner:{modulePath:`entity/person-owner`,schemaName:`EntityPersonOwnerSchema`},EntityRelationship:{modulePath:`entity/relationship`,schemaName:`EntityRelationshipSchema`},EntityRelationshipTypeOption:{modulePath:`entity/relationship-type-option`,schemaName:`EntityRelationshipTypeOptionSchema`},EntityResearch:{modulePath:`entity/research`,schemaName:`EntityResearchSchema`},EntityResearchDetail:{modulePath:`entity/research-detail`,schemaName:`EntityResearchDetailSchema`},EntityResearchFactValue:{modulePath:`entity/research-fact-value`,schemaName:`EntityResearchFactValueSchema`},EntityResearchPublicSource:{modulePath:`entity/research-public-source`,schemaName:`EntityResearchPublicSourceSchema`},EntityResearchSnippet:{modulePath:`entity/research-snippet`,schemaName:`EntityResearchSnippetSchema`},EntityResearchValueType:{modulePath:`entity/research-value-type`,schemaName:`EntityResearchValueTypeSchema`},EntityResolution:{modulePath:`entity/resolution`,schemaName:`EntityResolutionSchema`},EntitySimilarityContext:{modulePath:`entity/similarity-context`,schemaName:`EntitySimilarityContextSchema`},EntitySimilarityOrigin:{modulePath:`entity/similarity-origin`,schemaName:`EntitySimilarityOriginSchema`},EntitySimilarityResult:{modulePath:`entity/similarity-result`,schemaName:`EntitySimilarityResultSchema`},EntitySimilaritySummary:{modulePath:`entity/similarity-summary`,schemaName:`EntitySimilaritySummarySchema`},EntitySitemap:{modulePath:`entity/sitemap`,schemaName:`EntitySitemapSchema`},EntityTag:{modulePath:`entity/tag`,schemaName:`EntityTagSchema`},EntityText:{modulePath:`entity/text`,schemaName:`EntityTextSchema`},EntityTextBundle:{modulePath:`entity/text-bundle`,schemaName:`EntityTextBundleSchema`},EntityType:{modulePath:`entity/type`,schemaName:`EntityTypeSchema`},EntityTypeAlias:{modulePath:`entity/type-alias`,schemaName:`EntityTypeAliasSchema`},EntityTypeGroup:{modulePath:`entity/type-group`,schemaName:`EntityTypeGroupSchema`},EntityTypeGroupMembership:{modulePath:`entity/type-group-membership`,schemaName:`EntityTypeGroupMembershipSchema`},EntityUrlCrawlCdnProvider:{modulePath:`entity/url-crawl-cdn-provider`,schemaName:`EntityUrlCrawlCdnProviderSchema`},EntityUrlCrawlRenderMode:{modulePath:`entity/url-crawl-render-mode`,schemaName:`EntityUrlCrawlRenderModeSchema`},EntityUrlLink:{modulePath:`entity/url-link`,schemaName:`EntityUrlLinkSchema`},EntityUrlType:{modulePath:`entity/url-type`,schemaName:`EntityUrlTypeSchema`},EntityValuationDataConfidence:{modulePath:`entity/valuation-data-confidence`,schemaName:`EntityValuationDataConfidenceSchema`},EntityValuationDerivation:{modulePath:`entity/valuation-derivation`,schemaName:`EntityValuationDerivationSchema`},EntityValuationSource:{modulePath:`entity/valuation-source`,schemaName:`EntityValuationSourceSchema`},EntityValuationTimeSeriesPoint:{modulePath:`entity/valuation-time-series-point`,schemaName:`EntityValuationTimeSeriesPointSchema`},FederatedNaturalSearch:{modulePath:`federated/natural-search`,schemaName:`FederatedNaturalSearchSchema`},FederatedSearch:{modulePath:`federated/search`,schemaName:`FederatedSearchSchema`},FederatedSearchProvenance:{modulePath:`federated/search-provenance`,schemaName:`FederatedSearchProvenanceSchema`},FederatedSearchRejection:{modulePath:`federated/search-rejection`,schemaName:`FederatedSearchRejectionSchema`},FundingStage:{modulePath:`funding/stage`,schemaName:`FundingStageSchema`},FundraiseDataConfidence:{modulePath:`fundraise/data-confidence`,schemaName:`FundraiseDataConfidenceSchema`},FundraiseFinancialInstrumentType:{modulePath:`fundraise/financial-instrument-type`,schemaName:`FundraiseFinancialInstrumentTypeSchema`},FundraiseInvestmentAttribution:{modulePath:`fundraise/investment-attribution`,schemaName:`FundraiseInvestmentAttributionSchema`},FundraiseInvestmentAttributionType:{modulePath:`fundraise/investment-attribution-type`,schemaName:`FundraiseInvestmentAttributionTypeSchema`},FundraiseInvestmentEvidence:{modulePath:`fundraise/investment-evidence`,schemaName:`FundraiseInvestmentEvidenceSchema`},FundraiseTransactionStatus:{modulePath:`fundraise/transaction-status`,schemaName:`FundraiseTransactionStatusSchema`},GithubRepo:{modulePath:`github/repo`,schemaName:`GithubRepoSchema`},HarnessChassis:{modulePath:`harness/chassis`,schemaName:`HarnessChassisSchema`},HarnessLlmApi:{modulePath:`harness/llm-api`,schemaName:`HarnessLlmApiSchema`},HarnessRun:{modulePath:`harness/run`,schemaName:`HarnessRunSchema`},HarnessRunCreate:{modulePath:`harness/run-create`,schemaName:`HarnessRunCreateSchema`},HarnessRunDetail:{modulePath:`harness/run-detail`,schemaName:`HarnessRunDetailSchema`},HarnessRunEnvironment:{modulePath:`harness/run-environment`,schemaName:`HarnessRunEnvironmentSchema`},HarnessRunLane:{modulePath:`harness/run-lane`,schemaName:`HarnessRunLaneSchema`},HarnessRunProgress:{modulePath:`harness/run-progress`,schemaName:`HarnessRunProgressSchema`},HarnessRunStatus:{modulePath:`harness/run-status`,schemaName:`HarnessRunStatusSchema`},HarnessRunType:{modulePath:`harness/run-type`,schemaName:`HarnessRunTypeSchema`},HarnessTaskInput:{modulePath:`harness/task`,schemaName:`HarnessTaskSchema`},HarnessTaskInputType:{modulePath:`harness/task-input-type`,schemaName:`HarnessTaskInputTypeSchema`},HarnessTaskPlan:{modulePath:`harness/task-plan`,schemaName:`HarnessTaskPlanSchema`},HarnessTaskPlanStep:{modulePath:`harness/task-plan-step`,schemaName:`HarnessTaskPlanStepSchema`},HarnessTaskStep:{modulePath:`harness/task-step`,schemaName:`HarnessTaskStepSchema`},HarnessTaskWriteGuidance:{modulePath:`harness/task-write-guidance`,schemaName:`HarnessTaskWriteGuidanceSchema`},HelpCitation:{modulePath:`help/citation`,schemaName:`HelpCitationSchema`},HelpResolution:{modulePath:`help/resolution`,schemaName:`HelpResolutionSchema`},HelpResolutionOutcome:{modulePath:`help/resolution-outcome`,schemaName:`HelpResolutionOutcomeSchema`},HelpScope:{modulePath:`help/scope`,schemaName:`HelpScopeSchema`},HelpSourceType:{modulePath:`help/source-type`,schemaName:`HelpSourceTypeSchema`},Identification:{modulePath:`identification/identification`,schemaName:`IdentificationSchema`},IdentificationCandidate:{modulePath:`identification/candidate`,schemaName:`IdentificationCandidateSchema`},IdentificationSubject:{modulePath:`identification/subject`,schemaName:`IdentificationSubjectSchema`},IntRange:{modulePath:`int/range`,schemaName:`IntRangeSchema`},InvestorActivityFilter:{modulePath:`investor/activity-filter`,schemaName:`InvestorActivityFilterSchema`},JobEnqueue:{modulePath:`job/enqueue`,schemaName:`JobEnqueueSchema`},JobState:{modulePath:`job/state`,schemaName:`JobStateSchema`},JsonValue:{modulePath:`http/json-value`,schemaName:`JsonValueSchema`},LinkSearch:{modulePath:`link/search`,schemaName:`LinkSearchSchema`},LogoAccuracy:{modulePath:`logo/accuracy`,schemaName:`LogoAccuracySchema`},LogoAccuracyReference:{modulePath:`logo/accuracy-reference`,schemaName:`LogoAccuracyReferenceSchema`},LookupJob:{modulePath:`lookup/job`,schemaName:`LookupJobSchema`},LookupJobMention:{modulePath:`lookup/job-mention`,schemaName:`LookupJobMentionSchema`},LookupJobMutation:{modulePath:`lookup/job-mutation`,schemaName:`LookupJobMutationSchema`},LookupMention:{modulePath:`lookup/mention`,schemaName:`LookupMentionSchema`},MediaObjectType:{modulePath:`media/object-type`,schemaName:`MediaObjectTypeSchema`},MediaUpload:{modulePath:`media/upload`,schemaName:`MediaUploadSchema`},MentionLookup:{modulePath:`mention/lookup`,schemaName:`MentionLookupSchema`},NaturalSearch:{modulePath:`natural/search`,schemaName:`NaturalSearchSchema`},NaturalSearchResult:{modulePath:`natural/search-result`,schemaName:`NaturalSearchResultSchema`},News:{modulePath:`news/news`,schemaName:`NewsSchema`},NewsCandidateScore:{modulePath:`news/candidate-score`,schemaName:`NewsCandidateScoreSchema`},NewsDetail:{modulePath:`news/detail`,schemaName:`NewsDetailSchema`},NewsEntityMention:{modulePath:`news/entity-mention`,schemaName:`NewsEntityMentionSchema`},NewsFeedback:{modulePath:`news/feedback`,schemaName:`NewsFeedbackSchema`},NewsFeedbackAcknowledgement:{modulePath:`news/feedback-acknowledgement`,schemaName:`NewsFeedbackAcknowledgementSchema`},NewsMatchStatus:{modulePath:`news/match-status`,schemaName:`NewsMatchStatusSchema`},NewsPublishedEvent:{modulePath:`news/published-event`,schemaName:`NewsPublishedEventSchema`},NewsResolvedEntityLink:{modulePath:`news/resolved-entity-link`,schemaName:`NewsResolvedEntityLinkSchema`},NewsResolvedPersonLink:{modulePath:`news/resolved-person-link`,schemaName:`NewsResolvedPersonLinkSchema`},NewsSourceUrlConflict:{modulePath:`news/source-url-conflict`,schemaName:`NewsSourceUrlConflictSchema`},NewsSubscription:{modulePath:`news/subscription`,schemaName:`NewsSubscriptionSchema`},NewsSubscriptionArguments:{modulePath:`news/subscription-arguments`,schemaName:`NewsSubscriptionArgumentsSchema`},NewsSubscriptionDelivery:{modulePath:`news/subscription-delivery`,schemaName:`NewsSubscriptionDeliverySchema`},NewsSubscriptionDeliveryMode:{modulePath:`news/subscription-delivery-mode`,schemaName:`NewsSubscriptionDeliveryModeSchema`},NewsSubscriptionDeliveryStatus:{modulePath:`news/subscription-delivery-status`,schemaName:`NewsSubscriptionDeliveryStatusSchema`},NewsSubscriptionDetail:{modulePath:`news/subscription-detail`,schemaName:`NewsSubscriptionDetailSchema`},NewsSubscriptionEndpoint:{modulePath:`news/subscription-endpoint`,schemaName:`NewsSubscriptionEndpointSchema`},NewsSubscriptionEvent:{modulePath:`news/subscription-event`,schemaName:`NewsSubscriptionEventSchema`},NewsSubscriptionGrant:{modulePath:`news/subscription-grant`,schemaName:`NewsSubscriptionGrantSchema`},NewsSubscriptionKey:{modulePath:`news/subscription-key`,schemaName:`NewsSubscriptionKeySchema`},NewsSubscriptionTestEvent:{modulePath:`news/subscription-test-event`,schemaName:`NewsSubscriptionTestEventSchema`},PageableObject:{modulePath:`pageable/object`,schemaName:`PageableObjectSchema`},PageBlogPost:{modulePath:`pagination/schemas`,schemaName:`PageBlogPostSchema`},PageClassification:{modulePath:`pagination/schemas`,schemaName:`PageClassificationSchema`},PageEmployeeCount:{modulePath:`pagination/schemas`,schemaName:`PageEmployeeCountSchema`},PageEntity:{modulePath:`pagination/schemas`,schemaName:`PageEntitySchema`},PageEntityAcquisition:{modulePath:`pagination/schemas`,schemaName:`PageEntityAcquisitionSchema`},PageEntityDetail:{modulePath:`pagination/schemas`,schemaName:`PageEntityDetailSchema`},PageEntityFundraiseInvestorJoin:{modulePath:`pagination/schemas`,schemaName:`PageEntityFundraiseInvestorJoinSchema`},PageEntityFundraiseTransaction:{modulePath:`pagination/schemas`,schemaName:`PageEntityFundraiseTransactionSchema`},PageEntityInvestorParticipation:{modulePath:`pagination/schemas`,schemaName:`PageEntityInvestorParticipationSchema`},PageEntityList:{modulePath:`pagination/schemas`,schemaName:`PageEntityListSchema`},PageEntityPersonAssociation:{modulePath:`pagination/schemas`,schemaName:`PageEntityPersonAssociationSchema`},PageEntityRelationship:{modulePath:`pagination/schemas`,schemaName:`PageEntityRelationshipSchema`},PageEntityResearchDetail:{modulePath:`pagination/schemas`,schemaName:`PageEntityResearchDetailSchema`},PageEntityResearchSnippet:{modulePath:`pagination/schemas`,schemaName:`PageEntityResearchSnippetSchema`},PageEntitySimilarityResult:{modulePath:`pagination/schemas`,schemaName:`PageEntitySimilarityResultSchema`},PageEntitySimilaritySummary:{modulePath:`pagination/schemas`,schemaName:`PageEntitySimilaritySummarySchema`},PageEntityText:{modulePath:`pagination/schemas`,schemaName:`PageEntityTextSchema`},PageEntityUrlLink:{modulePath:`pagination/schemas`,schemaName:`PageEntityUrlLinkSchema`},PageEntityValuationTimeSeriesPoint:{modulePath:`pagination/schemas`,schemaName:`PageEntityValuationTimeSeriesPointSchema`},PageGithubRepo:{modulePath:`pagination/schemas`,schemaName:`PageGithubRepoSchema`},PageNews:{modulePath:`pagination/schemas`,schemaName:`PageNewsSchema`},PagePerson:{modulePath:`pagination/schemas`,schemaName:`PagePersonSchema`},PagePersonDetail:{modulePath:`pagination/schemas`,schemaName:`PagePersonDetailSchema`},PagePersonInvestment:{modulePath:`pagination/schemas`,schemaName:`PagePersonInvestmentSchema`},PagePersonInvestorParticipation:{modulePath:`pagination/schemas`,schemaName:`PagePersonInvestorParticipationSchema`},PagePersonSimilarityResult:{modulePath:`pagination/schemas`,schemaName:`PagePersonSimilarityResultSchema`},PagePublication:{modulePath:`pagination/schemas`,schemaName:`PagePublicationSchema`},PageResultEntityList:{modulePath:`pagination/schemas`,schemaName:`PageResultEntityListSchema`},PageResultNews:{modulePath:`pagination/schemas`,schemaName:`PageResultNewsSchema`},PageResultPerson:{modulePath:`pagination/schemas`,schemaName:`PageResultPersonSchema`},PageUniqueId:{modulePath:`pagination/schemas`,schemaName:`PageUniqueIdSchema`},Person:{modulePath:`person/person`,schemaName:`PersonSchema`},PersonAliasType:{modulePath:`person/alias-type`,schemaName:`PersonAliasTypeSchema`},PersonDetail:{modulePath:`person/detail`,schemaName:`PersonDetailSchema`},PersonEnrichment:{modulePath:`person/enrichment`,schemaName:`PersonEnrichmentSchema`},PersonFilter:{modulePath:`person/filter`,schemaName:`PersonFilterSchema`},PersonGraph:{modulePath:`person/graph`,schemaName:`PersonGraphSchema`},PersonGraphCareerContext:{modulePath:`person/graph-career-context`,schemaName:`PersonGraphCareerContextSchema`},PersonGraphCoInvestor:{modulePath:`person/graph-co-investor`,schemaName:`PersonGraphCoInvestorSchema`},PersonGraphMember:{modulePath:`person/graph-member`,schemaName:`PersonGraphMemberSchema`},PersonGraphSimilarEntity:{modulePath:`person/graph-similar-entity`,schemaName:`PersonGraphSimilarEntitySchema`},PersonImage:{modulePath:`person/image`,schemaName:`PersonImageSchema`},PersonInvestedCompany:{modulePath:`person/invested-company`,schemaName:`PersonInvestedCompanySchema`},PersonInvestment:{modulePath:`person/investment`,schemaName:`PersonInvestmentSchema`},PersonInvestorParticipation:{modulePath:`person/investor-participation`,schemaName:`PersonInvestorParticipationSchema`},PersonListArrayFilter:{modulePath:`person/list-array-filter`,schemaName:`PersonListArrayFilterSchema`},PersonLookupBatch:{modulePath:`person/lookup-batch`,schemaName:`PersonLookupBatchSchema`},PersonNaturalSearch:{modulePath:`person/natural-search`,schemaName:`PersonNaturalSearchSchema`},PersonNaturalSearchResult:{modulePath:`person/natural-search-result`,schemaName:`PersonNaturalSearchResultSchema`},PersonSearchInterpretation:{modulePath:`person/search-interpretation`,schemaName:`PersonSearchInterpretationSchema`},PersonSimilarityContext:{modulePath:`person/similarity-context`,schemaName:`PersonSimilarityContextSchema`},PersonSimilarityOrigin:{modulePath:`person/similarity-origin`,schemaName:`PersonSimilarityOriginSchema`},PersonSimilarityResult:{modulePath:`person/similarity-result`,schemaName:`PersonSimilarityResultSchema`},ProblemDetail:{modulePath:`http/problem-detail`,schemaName:`ProblemDetailSchema`},ProblemResolution:{modulePath:`problem/resolution`,schemaName:`ProblemResolutionSchema`},ProblemType:{modulePath:`problem/type`,schemaName:`ProblemTypeSchema`},ProseProblem:{modulePath:`prose/problem`,schemaName:`ProseProblemSchema`},ProseViolation:{modulePath:`prose/violation`,schemaName:`ProseViolationSchema`},Publication:{modulePath:`publication/publication`,schemaName:`PublicationSchema`},PublicationFacet:{modulePath:`publication/facet`,schemaName:`PublicationFacetSchema`},PublicationRelation:{modulePath:`publication/relation`,schemaName:`PublicationRelationSchema`},PublicationType:{modulePath:`publication/type`,schemaName:`PublicationTypeSchema`},ReasoningEffort:{modulePath:`reasoning/effort`,schemaName:`ReasoningEffortSchema`},RedirectSlugPath:{modulePath:`redirect/redirect-slug-path`,schemaName:`RedirectSlugPathSchema`},RefinementMeta:{modulePath:`refinement/meta`,schemaName:`RefinementMetaSchema`},RelationshipDirection:{modulePath:`relationship/direction`,schemaName:`RelationshipDirectionSchema`},ResearchAllowance:{modulePath:`research/allowance`,schemaName:`ResearchAllowanceSchema`},ResearchAllowanceUsage:{modulePath:`research/allowance-usage`,schemaName:`ResearchAllowanceUsageSchema`},ResearchDerivedBucket:{modulePath:`research/derived-bucket`,schemaName:`ResearchDerivedBucketSchema`},ResearchDerivedRange:{modulePath:`research/derived-range`,schemaName:`ResearchDerivedRangeSchema`},ResearchDetailType:{modulePath:`research/detail-type`,schemaName:`ResearchDetailTypeSchema`},ResearchFinding:{modulePath:`research/finding`,schemaName:`ResearchFindingSchema`},ResearchParagraphShape:{modulePath:`research/paragraph-shape`,schemaName:`ResearchParagraphShapeSchema`},ResearchSnippetType:{modulePath:`research/snippet-type`,schemaName:`ResearchSnippetTypeSchema`},ResearchValueRange:{modulePath:`research/value-range`,schemaName:`ResearchValueRangeSchema`},ResearchValueShapeType:{modulePath:`research/value-shape-type`,schemaName:`ResearchValueShapeTypeSchema`},ResolvedHandle:{modulePath:`resolved/handle`,schemaName:`ResolvedHandleSchema`},RoundLabel:{modulePath:`round/label`,schemaName:`RoundLabelSchema`},Search:{modulePath:`search/search`,schemaName:`SearchSchema`},SearchAnswer:{modulePath:`search/answer`,schemaName:`SearchAnswerSchema`},SearchAnswerCitation:{modulePath:`search/answer-citation`,schemaName:`SearchAnswerCitationSchema`},SearchAnswerParagraph:{modulePath:`search/answer-paragraph`,schemaName:`SearchAnswerParagraphSchema`},SearchCacheMode:{modulePath:`search/cache-mode`,schemaName:`SearchCacheModeSchema`},SearchDuplicateCandidateScore:{modulePath:`search/duplicate-candidate-score`,schemaName:`SearchDuplicateCandidateScoreSchema`},SearchEvidenceSource:{modulePath:`search/evidence-source`,schemaName:`SearchEvidenceSourceSchema`},SearchHit:{modulePath:`search/hit`,schemaName:`SearchHitSchema`},SearchIntent:{modulePath:`search/intent`,schemaName:`SearchIntentSchema`},SearchInterpretation:{modulePath:`search/interpretation`,schemaName:`SearchInterpretationSchema`},SearchInvestment:{modulePath:`search/investment`,schemaName:`SearchInvestmentSchema`},SearchJudgment:{modulePath:`search/judgment`,schemaName:`SearchJudgmentSchema`},SearchLayer:{modulePath:`search/layer`,schemaName:`SearchLayerSchema`},SearchMode:{modulePath:`search/mode`,schemaName:`SearchModeSchema`},SearchModeExecution:{modulePath:`search/mode-execution`,schemaName:`SearchModeExecutionSchema`},SearchOrderingEntityFilterSortable:{modulePath:`search/ordering-entity-filter-sortable`,schemaName:`SearchOrderingEntityFilterSortableSchema`},SearchOrderingPersonSortField:{modulePath:`search/ordering-person-sort-field`,schemaName:`SearchOrderingPersonSortFieldSchema`},SearchPassage:{modulePath:`search/passage`,schemaName:`SearchPassageSchema`},SearchRelevance:{modulePath:`search/relevance`,schemaName:`SearchRelevanceSchema`},SecCompany:{modulePath:`sec/company`,schemaName:`SecCompanySchema`},SharedSearch:{modulePath:`shared/search`,schemaName:`SharedSearchSchema`},SharedSearchList:{modulePath:`shared/search-list`,schemaName:`SharedSearchListSchema`},SharedSearchMutation:{modulePath:`shared/search-mutation`,schemaName:`SharedSearchMutationSchema`},SlugLocation:{modulePath:`slug/location`,schemaName:`SlugLocationSchema`},SlugResource:{modulePath:`redirect/slug-resource`,schemaName:`SlugResourceSchema`},SortObject:{modulePath:`sort/object`,schemaName:`SortObjectSchema`},SortOrderEntityFilterSortable:{modulePath:`sort/order-entity-filter-sortable`,schemaName:`SortOrderEntityFilterSortableSchema`},SortOrderPersonSortField:{modulePath:`sort/order-person-sort-field`,schemaName:`SortOrderPersonSortFieldSchema`},SourceDocumentList:{modulePath:`source/document-list`,schemaName:`SourceDocumentListSchema`},StageFrequency:{modulePath:`stage/frequency`,schemaName:`StageFrequencySchema`},StandardizedClassification:{modulePath:`standardized/classification`,schemaName:`StandardizedClassificationSchema`},StrictUrlLookupConflict:{modulePath:`strict/url-lookup-conflict`,schemaName:`StrictUrlLookupConflictSchema`},SuppressionReason:{modulePath:`suppression/reason`,schemaName:`SuppressionReasonSchema`},SystemBuild:{modulePath:`system/system-build`,schemaName:`SystemBuildSchema`},SystemBuildDetail:{modulePath:`system/system-build-detail`,schemaName:`SystemBuildDetailSchema`},SystemGlobalMetrics:{modulePath:`system/global-metrics`,schemaName:`SystemGlobalMetricsSchema`},SystemStatus:{modulePath:`system/status`,schemaName:`SystemStatusSchema`},TextTypeOption:{modulePath:`text/type-option`,schemaName:`TextTypeOptionSchema`},UniqueId:{modulePath:`unique/id`,schemaName:`UniqueIdSchema`},UniqueIdOwnerScope:{modulePath:`unique/id-owner-scope`,schemaName:`UniqueIdOwnerScopeSchema`},UniqueIdType:{modulePath:`unique/id-type`,schemaName:`UniqueIdTypeSchema`},UniqueIdTypeAlias:{modulePath:`unique/id-type-alias`,schemaName:`UniqueIdTypeAliasSchema`},Uptime:{modulePath:`uptime/uptime`,schemaName:`UptimeSchema`},UrlDuplicateConflict:{modulePath:`url/duplicate-conflict`,schemaName:`UrlDuplicateConflictSchema`},UrlDuplicateJoin:{modulePath:`url/duplicate-join`,schemaName:`UrlDuplicateJoinSchema`},UrlMatchMode:{modulePath:`url/match-mode`,schemaName:`UrlMatchModeSchema`},UrlTypeAlias:{modulePath:`url/type-alias`,schemaName:`UrlTypeAliasSchema`},ValuationType:{modulePath:`valuation/type`,schemaName:`ValuationTypeSchema`},WebSearch:{modulePath:`web/search`,schemaName:`WebSearchSchema`}});var B=[`get`,`post`,`put`,`patch`,`delete`],V={get:`GET`,post:`POST`,put:`PUT`,patch:`PATCH`,delete:`DELETE`},H=e=>V[e],U=[`oauth`,`start`,`poll`,`acknowledge`,`revoke`],W=t({name:u().regex(/^[A-Z][A-Z0-9_]*$/u)}),G=r([i(`private`),d({scope:u().optional(),value:u().optional()})]),K=a(()=>d({$ref:u().optional(),description:u().optional(),type:r([u(),o(u())]).optional(),format:u().optional(),default:m.optional(),enum:o(m).optional(),"x-extensible-enum":o(m).optional(),readOnly:c().optional(),items:K.optional(),minItems:l().int().nonnegative().optional(),maxItems:l().int().nonnegative().optional(),properties:n(u(),K).optional(),required:o(u()).optional(),oneOf:o(K).optional(),anyOf:o(K).optional(),allOf:o(K).optional(),"x-aventure-visibility":G.optional(),"x-aventure-cli-conflicts":o(o(u().min(1)).min(2)).min(1).optional(),"x-aventure-env":W.optional(),"x-aventure-detail":i(!0).optional()})),de=d({in:u(),name:u(),required:c().optional(),description:u().optional(),schema:K.optional(),"x-aventure-visibility":G.optional(),"x-aventure-legacy-name":t({name:u().trim().min(1)}).optional()}).superRefine((e,t)=>{let n=e[`x-aventure-legacy-name`]?.name;n!==void 0&&(e.in!==`path`&&t.addIssue({code:`custom`,path:[`x-aventure-legacy-name`],message:`x-aventure-legacy-name is valid only for path parameters`}),n===e.name&&t.addIssue({code:`custom`,path:[`x-aventure-legacy-name`,`name`],message:`Legacy path parameter name must differ from its canonical name`}))}),q=n(u(),d({schema:K.optional()})),fe=d({description:u().optional(),content:q.optional(),"x-aventure-standard-response":c().optional()}),J=d({description:u().optional(),required:c().optional(),content:q.optional()}),pe=t({auth:s([`none`,`read`]).optional()}).optional(),Y=r([i(``),u().regex(/^(?:\/(?:[^~/]|~[01])*)+$/)]),me=t({readOperationId:u().min(1),writePointer:Y,readPointer:Y}),he=u().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)* [a-z0-9]+(?:-[a-z0-9]+)*$/u),X=u().regex(/^[a-z][A-Za-z0-9]*$/u),ge=u().regex(/^--(?:no-)?[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u),_e=t({command:he,role:s(U),summary:u().trim().min(1).optional(),description:u().trim().min(1).optional(),bodyOption:o(X).min(1).optional(),localOption:o(t({optionKey:X,flag:ge,description:u().trim().min(1)})).min(1).optional()}).superRefine((t,n)=>{let r=[t.bodyOption??[],(t.localOption??[]).map(e=>e.optionKey),(t.localOption??[]).map(e=>e.flag)].some(e=>new Set(e).size!==e.length),i=(t.localOption??[]).some(t=>new e(t.flag).attributeName()!==t.optionKey);(r||i)&&n.addIssue({code:`custom`,message:`Composite CLI options must be unique and match their local flags`})}).optional(),ve=d({operationId:u(),summary:u().optional(),description:u().optional(),tags:o(u()).optional(),deprecated:c().optional(),hidden:c().optional(),security:o(n(u(),o(u()))).optional(),parameters:o(de).optional(),requestBody:J.optional(),responses:n(u(),fe),"x-aventure-visibility":G.optional(),"x-aventure-tool":pe,"x-aventure-mutation-readback":me.optional(),"x-aventure-cli-composite":_e}).superRefine((e,t)=>{let n=e.parameters??[];for(let[e,r]of n.entries()){let i=r[`x-aventure-legacy-name`]?.name;r.in===`path`&&i!==void 0&&n.some((t,n)=>n!==e&&t.in===`path`&&(t.name===i||t[`x-aventure-legacy-name`]?.name===i))&&t.addIssue({code:`custom`,path:[`parameters`,e,`x-aventure-legacy-name`,`name`],message:`Legacy path parameter name '${i}' collides with another declared path parameter`})}}),ye=d(Object.fromEntries(B.map(e=>[e,ve.optional()]))),be=d({$ref:u().optional(),description:u().optional(),type:r([u(),o(u())]).optional(),format:u().optional(),default:m.optional(),enum:o(m).optional(),"x-extensible-enum":o(m).optional(),readOnly:c().optional(),items:K.optional(),minItems:l().int().nonnegative().optional(),maxItems:l().int().nonnegative().optional(),oneOf:o(K).optional(),anyOf:o(K).optional(),allOf:o(K).optional(),properties:n(u(),K).optional(),required:o(u()).optional(),"x-aventure-visibility":G.optional(),"x-aventure-cli-conflicts":o(o(u().min(1)).min(2)).min(1).optional(),"x-aventure-env":W.optional(),"x-aventure-detail":i(!0).optional(),"x-aventure-noun":t({one:u().trim().min(1),other:u().trim().min(1)}).optional()}),xe=d({tags:o(d({name:u(),description:u().optional()})).optional(),paths:n(u(),ye),webhooks:n(u(),d({post:d({description:u(),requestBody:J})})).optional(),components:d({schemas:n(u(),be)})}).superRefine((e,t)=>{for(let[n,r]of Object.entries(e.paths))for(let i of B){let a=r[i]?.[`x-aventure-mutation-readback`];a!==void 0&&Z(e.paths,a.readOperationId)===null&&t.addIssue({code:`custom`,path:[`paths`,n,i,`x-aventure-mutation-readback`,`readOperationId`],message:`mutation readback names '${a.readOperationId}', which no operation in this document emits`})}}),Se=new Set([`page`,`size`,`sort`]);function Ce(e){let t=xe.safeParse(e);if(!t.success)throw Error(`OpenAPI snapshot drifted from spec subset: ${t.error.message}`);return t.data}function Z(e,t){for(let[n,r]of Object.entries(e))for(let e of B){let i=r[e];if(i?.operationId===t)return{method:e,template:n,operation:i}}return null}function we(e,t,n){let r=g(n),i=e[r]?.[t];if(i)return{method:t,template:r,operation:i};for(let[n,i]of Object.entries(e)){let e=i[t];if(e&&_(n,r))return{method:t,template:n,operation:e}}return null}function Te(e,t,n=e){return e.replace(/\{([^}]+)}/g,(...e)=>{let r=e[1],i=t[r];if(i==null)throw Error(`Missing path parameter '${r}' for ${n}`);return encodeURIComponent(String(i))})}function Ee(e,t,n){let r=t;for(let i of e.parameters??[]){let e=i[`x-aventure-legacy-name`]?.name;if(i.in===`path`&&e!==void 0&&Object.hasOwn(t,e)){if(Object.hasOwn(t,i.name))throw Error(`Path parameters '${i.name}' and legacy alias '${e}' were both supplied for ${n}`);r===t&&(r={...t}),r[i.name]=t[e],delete r[e]}}return r}function De(e,t){let n={};for(let r of e.parameters??[]){if(r.in!==`query`||Se.has(r.name))continue;let e=t?.[r.name]??Oe(r.schema?.default);e!==void 0&&(n[r.name]=e)}return Object.keys(n).length===0?void 0:n}function Oe(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||Array.isArray(e)&&e.every(e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`))return e}function Q(e){return e?.$ref?.startsWith(`#/components/schemas/`)===!0?e.$ref.slice(21):void 0}function ke(e){return e===`write`||e===`delete`}var Ae=`Shell-safe input: single-quote string flag values that contain $; use --from-file or stdin for JSON bodies, multiline text, and free text with currency amounts.`;function je(e,t){let n=e===`array`?t:e;return n===void 0||n===`string`}function Me(e){return e!==`/v1/auth/api-key`&&!/^\/v1\/sitemap(?:\/|$)/u.test(e)}function Ne(e){let t=Object.entries(e.responses).filter(([e])=>e.startsWith(`2`));return t.length>0&&t.every(([,e])=>Object.values(e.content??{}).some(e=>Pe(e.schema)))}function Pe(e){return e?.format===`byte`||e?.format===`binary`}function Fe(e){return`aventure_${e}`}function $(e){return e.replace(/([a-z0-9])([A-Z])/gu,`$1-$2`).replace(/[^A-Za-z0-9]+/gu,`-`).replace(/^-+|-+$/gu,``).toLowerCase()}var Ie=e=>`--${$(e)}`;export{b as C,g as D,S as E,E as S,x as T,we as _,ke as a,T as b,$ as c,H as d,Te as f,Ce as g,De as h,Ie as i,Q as l,Z as m,Ne as n,Fe as o,Ee as p,je as r,Me as s,Ae as t,B as u,ae as v,ie as w,oe as x,w as y};
|