@goperigon/perigon-ts 1.1.2 → 2.0.1
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/README.md +74 -136
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +19998 -5090
- package/dist/index.js +2 -2
- package/package.json +9 -4
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var Hn="https://api.perigon.io".replace(/\/+$/,""),oe=class{constructor(n={}){this.configuration=n;}set config(n){this.configuration=n;}get basePath(){return this.configuration.basePath??Hn}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Se}get accessToken(){let n=this.configuration.apiKey;return n?typeof n=="function"?n:async()=>n:void 0}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}},Dn=new oe,z=class z{constructor(n=Dn){this.configuration=n;this.fetchApi=async(n,t)=>{let i={url:n,init:t};for(let a of this.middleware)a.pre&&(i=await a.pre({fetch:this.fetchApi,...i})||i);let r;try{r=await(this.configuration.fetchApi||fetch)(i.url,i.init);}catch(a){for(let o of this.middleware)o.onError&&(r=await o.onError({fetch:this.fetchApi,url:i.url,init:i.init,error:a,response:r?r.clone():void 0})||r);if(r===void 0)throw a instanceof Error?new le(a,"The request failed and the interceptors did not return an alternative response"):a}for(let a of this.middleware)a.post&&(r=await a.post({fetch:this.fetchApi,url:i.url,init:i.init,response:r.clone()})||r);return r};this.middleware=n.middleware;}withMiddleware(...n){let t=this.clone();return t.middleware=t.middleware.concat(...n),t}withPreMiddleware(...n){let t=n.map(i=>({pre:i}));return this.withMiddleware(...t)}withPostMiddleware(...n){let t=n.map(i=>({post:i}));return this.withMiddleware(...t)}isJsonMime(n){return n?z.jsonRegex.test(n):false}async request(n,t){let{url:i,init:r}=await this.createFetchParams(n,t),a=await this.fetchApi(i,r);if(a&&a.status>=200&&a.status<300)return a;throw new ae(a,"Response returned an error code")}async createFetchParams(n,t){let i=this.configuration.basePath+n.path;n.query!==void 0&&Object.keys(n.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(n.query));let r=Object.assign({},this.configuration.headers,n.headers);Object.keys(r).forEach(pe=>r[pe]===void 0?delete r[pe]:{});let a=typeof t=="function"?t:async()=>t,o={method:n.method,headers:r,body:n.body,credentials:this.configuration.credentials},l={...o,...await a({init:o,context:n})},B;Wn(l.body)||l.body instanceof URLSearchParams||Ln(l.body)?B=l.body:this.isJsonMime(r["Content-Type"])?B=JSON.stringify(l.body):B=l.body;let wn={...l,body:B};return {url:i,init:wn}}clone(){let n=this.constructor,t=new n(this.configuration);return t.middleware=this.middleware.slice(),t}};z.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");var U=z;function Ln(e){return typeof Blob<"u"&&e instanceof Blob}function Wn(e){return typeof FormData<"u"&&e instanceof FormData}var ae=class extends Error{constructor(t,i){super(i);this.response=t;this.name="ResponseError";}},le=class extends Error{constructor(t,i){super(i);this.cause=t;this.name="FetchError";}},O=class extends Error{constructor(t,i){super(i);this.field=t;this.name="RequiredError";}},Sr={csv:",",ssv:" ",tsv:" ",pipes:"|"};function Se(e,n=""){return Object.keys(e).map(t=>ge(t,e[t],n)).filter(t=>t.length>0).join("&")}function ge(e,n,t=""){let i=t+(t.length?`[${e}]`:e);if(n instanceof Array){let r=n.map(a=>encodeURIComponent(String(a))).join(`&${encodeURIComponent(i)}=`);return `${encodeURIComponent(i)}=${r}`}if(n instanceof Set){let r=Array.from(n);return ge(e,r,t)}return n instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(n.toISOString())}`:n instanceof Object?Se(n,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(n))}`}function gr(e,n){let t=e[n];return t!=null}function Tr(e,n){let t={};for(let i of Object.keys(e))t[i]=n(e[i]);return t}function hr(e){for(let n of e)if(n.contentType==="multipart/form-data")return true;return false}var u=class{constructor(n,t=i=>i){this.raw=n;this.transformer=t;}async value(){return this.transformer(await this.raw.json())}},me=class{constructor(n){this.raw=n;}async value(){}},ye=class{constructor(n){this.raw=n;}async value(){return await this.raw.blob()}},fe=class{constructor(n){this.raw=n;}async value(){return await this.raw.text()}};var ue={Relevance:"relevance",Date:"date",ReverseDate:"reverseDate",ReverseAddDate:"reverseAddDate",AddDate:"addDate",PubDate:"pubDate",RefreshDate:"refreshDate"};function Ar(e){for(let n in ue)if(Object.prototype.hasOwnProperty.call(ue,n)&&ue[n]===e)return true;return false}function Or(e){return Mn(e)}function Mn(e,n){return e}function Nr(e){return e}function xr(e,n){return e}function br(e){return true}function N(e){return Bn(e)}function Bn(e,n){return e==null?e:{name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function x(e){return Un(e,false)}function Un(e,n=false){return e==null?e:{name:e.name,count:e.count}}function kr(e){return true}function R(e){return zn(e)}function zn(e,n){return e==null?e:{country:e.country==null?void 0:e.country,state:e.state==null?void 0:e.state,county:e.county==null?void 0:e.county,city:e.city==null?void 0:e.city,area:e.area==null?void 0:e.area}}function b(e){return Vn(e,false)}function Vn(e,n=false){return e==null?e:{country:e.country,state:e.state,county:e.county,city:e.city,area:e.area}}function Lr(e){return true}function I(e){return Gn(e)}function Gn(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,fullName:e.fullName==null?void 0:e.fullName,headline:e.headline==null?void 0:e.headline,description:e.description==null?void 0:e.description,title:e.title==null?void 0:e.title,locations:e.locations==null?void 0:e.locations.map(R),updatedAt:e.updatedAt==null?void 0:e.updatedAt,topTopics:e.topTopics==null?void 0:e.topTopics.map(N),topSources:e.topSources==null?void 0:e.topSources.map(N),topCategories:e.topCategories==null?void 0:e.topCategories.map(N),topLabels:e.topLabels==null?void 0:e.topLabels.map(N),topCountries:e.topCountries==null?void 0:e.topCountries.map(N),avgMonthlyPosts:e.avgMonthlyPosts==null?void 0:e.avgMonthlyPosts,twitterHandle:e.twitterHandle==null?void 0:e.twitterHandle,twitterBio:e.twitterBio==null?void 0:e.twitterBio,imageUrl:e.imageUrl==null?void 0:e.imageUrl,linkedinUrl:e.linkedinUrl==null?void 0:e.linkedinUrl,linkedinConnections:e.linkedinConnections==null?void 0:e.linkedinConnections,linkedinFollowers:e.linkedinFollowers==null?void 0:e.linkedinFollowers,facebookUrl:e.facebookUrl==null?void 0:e.facebookUrl,instagramUrl:e.instagramUrl==null?void 0:e.instagramUrl,websiteUrl:e.websiteUrl==null?void 0:e.websiteUrl,blogUrl:e.blogUrl==null?void 0:e.blogUrl,tumblrUrl:e.tumblrUrl==null?void 0:e.tumblrUrl,youtubeUrl:e.youtubeUrl==null?void 0:e.youtubeUrl}}function V(e){return Qn(e,false)}function Qn(e,n=false){return e==null?e:{id:e.id,name:e.name,fullName:e.fullName,headline:e.headline,description:e.description,title:e.title,locations:e.locations==null?void 0:e.locations.map(b),updatedAt:e.updatedAt,topTopics:e.topTopics==null?void 0:e.topTopics.map(x),topSources:e.topSources==null?void 0:e.topSources.map(x),topCategories:e.topCategories==null?void 0:e.topCategories.map(x),topLabels:e.topLabels==null?void 0:e.topLabels.map(x),topCountries:e.topCountries==null?void 0:e.topCountries.map(x),avgMonthlyPosts:e.avgMonthlyPosts,twitterHandle:e.twitterHandle,twitterBio:e.twitterBio,imageUrl:e.imageUrl,linkedinUrl:e.linkedinUrl,linkedinConnections:e.linkedinConnections,linkedinFollowers:e.linkedinFollowers,facebookUrl:e.facebookUrl,instagramUrl:e.instagramUrl,websiteUrl:e.websiteUrl,blogUrl:e.blogUrl,tumblrUrl:e.tumblrUrl,youtubeUrl:e.youtubeUrl}}function _r(e){return true}function G(e){return Kn(e)}function Kn(e,n){return e==null?e:{lat:e.lat==null?void 0:e.lat,lon:e.lon==null?void 0:e.lon}}function Q(e){return Pn(e,false)}function Pn(e,n=false){return e==null?e:{lat:e.lat,lon:e.lon}}function Vr(e){return true}function K(e){return Yn(e)}function Yn(e,n){return e==null?e:{country:e.country==null?void 0:e.country,state:e.state==null?void 0:e.state,county:e.county==null?void 0:e.county,city:e.city==null?void 0:e.city,coordinates:e.coordinates==null?void 0:G(e.coordinates)}}function P(e){return $n(e,false)}function $n(e,n=false){return e==null?e:{country:e.country,state:e.state,county:e.county,city:e.city,coordinates:Q(e.coordinates)}}function Yr(e){return true}function Y(e){return Xn(e)}function Xn(e,n){return e==null?e:{domain:e.domain==null?void 0:e.domain,paywall:e.paywall==null?void 0:e.paywall,location:e.location==null?void 0:K(e.location)}}function $(e){return Zn(e,false)}function Zn(e,n=false){return e==null?e:{domain:e.domain,paywall:e.paywall,location:P(e.location)}}function Xr(e){return true}function X(e){return vn(e)}function vn(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,domains:e.domains==null?void 0:e.domains,symbols:e.symbols==null?void 0:e.symbols}}function Z(e){return qn(e,false)}function qn(e,n=false){return e==null?e:{id:e.id,name:e.name,domains:e.domains,symbols:e.symbols}}function vr(e){return true}function Te(e){return jn(e)}function jn(e,n){return e==null?e:{data:e.data==null?void 0:e.data,type:e.type==null?void 0:e.type,mentions:e.mentions==null?void 0:e.mentions}}function he(e){return ei(e,false)}function ei(e,n=false){return e==null?e:{data:e.data,type:e.type,mentions:e.mentions}}function jr(e){return true}function J(e){return ni(e)}function ni(e,n){return e==null?e:{name:e.name==null?void 0:e.name}}function F(e){return ii(e,false)}function ii(e,n=false){return e==null?e:{name:e.name}}function no(e){return true}function v(e){return ti(e)}function ti(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,name:e.name==null?void 0:e.name}}function q(e){return ri(e,false)}function ri(e,n=false){return e==null?e:{wikidataId:e.wikidataId,name:e.name}}function to(e){return true}function Ae(e){return oi(e)}function oi(e,n){return e==null?e:{name:e.name==null?void 0:e.name}}function Oe(e){return ai(e,false)}function ai(e,n=false){return e==null?e:{name:e.name}}function oo(e){return true}function E(e){return li(e)}function li(e,n){return e==null?e:{name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function w(e){return ui(e,false)}function ui(e,n=false){return e==null?e:{name:e.name,count:e.count}}function lo(e){return true}function Ne(e){return di(e)}function di(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function xe(e){return ci(e,false)}function ci(e,n=false){return e==null?e:{wikidataId:e.wikidataId,name:e.name,count:e.count}}function co(e){return true}function Re(e){return si(e)}function si(e,n){return e==null?e:{state:e.state==null?void 0:e.state,county:e.county==null?void 0:e.county,city:e.city==null?void 0:e.city,area:e.area==null?void 0:e.area,count:e.count==null?void 0:e.count}}function be(e){return pi(e,false)}function pi(e,n=false){return e==null?e:{state:e.state,county:e.county,city:e.city,area:e.area,count:e.count}}function po(e){return true}function Ie(e){return mi(e)}function mi(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,domains:e.domains==null?void 0:e.domains,symbols:e.symbols==null?void 0:e.symbols,count:e.count==null?void 0:e.count}}function ke(e){return yi(e,false)}function yi(e,n=false){return e==null?e:{id:e.id,name:e.name,domains:e.domains,symbols:e.symbols,count:e.count}}function yo(e){return true}function Ce(e){return fi(e)}function fi(e,n){return e==null?e:{point:e.point==null?void 0:e.point,references:e.references==null?void 0:e.references}}function Je(e){return Si(e,false)}function Si(e,n=false){return e==null?e:{point:e.point,references:e.references}}function So(e){return true}function j(e){return gi(e)}function gi(e,n){return e==null?e:{name:e.name==null?void 0:e.name}}function ee(e){return Ti(e,false)}function Ti(e,n=false){return e==null?e:{name:e.name}}function To(e){return true}function Fe(e){return hi(e)}function hi(e,n){return e==null?e:{question:e.question==null?void 0:e.question,answer:e.answer==null?void 0:e.answer,references:e.references==null?void 0:e.references}}function Ee(e){return Ai(e,false)}function Ai(e,n=false){return e==null?e:{question:e.question,answer:e.answer,references:e.references}}function Ao(e){return true}function ne(e){return Oi(e)}function Oi(e,n){return e==null?e:{positive:e.positive==null?void 0:e.positive,negative:e.negative==null?void 0:e.negative,neutral:e.neutral==null?void 0:e.neutral}}function ie(e){return Ni(e,false)}function Ni(e,n=false){return e==null?e:{positive:e.positive,negative:e.negative,neutral:e.neutral}}function ca(e){return true}function te(e){return xi(e)}function xi(e,n){return e==null?e:{createdAt:e.createdAt==null?void 0:e.createdAt,updatedAt:e.updatedAt==null?void 0:e.updatedAt,initializedAt:e.initializedAt==null?void 0:e.initializedAt,id:e.id==null?void 0:e.id,duplicateOf:e.duplicateOf==null?void 0:e.duplicateOf,slug:e.slug==null?void 0:e.slug,name:e.name==null?void 0:e.name,summary:e.summary==null?void 0:e.summary,shortSummary:e.shortSummary==null?void 0:e.shortSummary,summaryReferences:e.summaryReferences==null?void 0:e.summaryReferences,imageSource:e.imageSource==null?void 0:Y(e.imageSource),imageUrl:e.imageUrl==null?void 0:e.imageUrl,keyPoints:e.keyPoints==null?void 0:e.keyPoints.map(Ce),questions:e.questions==null?void 0:e.questions.map(Fe),uniqueSources:e.uniqueSources==null?void 0:e.uniqueSources,selectedArticles:e.selectedArticles==null?void 0:e.selectedArticles.map(h),sentiment:e.sentiment==null?void 0:ne(e.sentiment),uniqueCount:e.uniqueCount==null?void 0:e.uniqueCount,reprintCount:e.reprintCount==null?void 0:e.reprintCount,totalCount:e.totalCount==null?void 0:e.totalCount,countries:e.countries==null?void 0:e.countries.map(E),topCountries:e.topCountries==null?void 0:e.topCountries,topics:e.topics==null?void 0:e.topics.map(E),topTopics:e.topTopics==null?void 0:e.topTopics.map(j),categories:e.categories==null?void 0:e.categories.map(E),topCategories:e.topCategories==null?void 0:e.topCategories.map(J),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(E),topTaxonomies:e.topTaxonomies==null?void 0:e.topTaxonomies.map(J),people:e.people==null?void 0:e.people.map(Ne),topPeople:e.topPeople==null?void 0:e.topPeople.map(v),companies:e.companies==null?void 0:e.companies.map(Ie),topCompanies:e.topCompanies==null?void 0:e.topCompanies.map(X),locations:e.locations==null?void 0:e.locations.map(Re),topLocations:e.topLocations==null?void 0:e.topLocations.map(R),highlights:e.highlights==null?void 0:e.highlights}}function re(e){return Ri(e,false)}function Ri(e,n=false){return e==null?e:{createdAt:e.createdAt,updatedAt:e.updatedAt,initializedAt:e.initializedAt,id:e.id,duplicateOf:e.duplicateOf,slug:e.slug,name:e.name,summary:e.summary,shortSummary:e.shortSummary,summaryReferences:e.summaryReferences,imageSource:$(e.imageSource),imageUrl:e.imageUrl,keyPoints:e.keyPoints==null?void 0:e.keyPoints.map(Je),questions:e.questions==null?void 0:e.questions.map(Ee),uniqueSources:e.uniqueSources,selectedArticles:e.selectedArticles==null?void 0:e.selectedArticles.map(A),sentiment:ie(e.sentiment),uniqueCount:e.uniqueCount,reprintCount:e.reprintCount,totalCount:e.totalCount,countries:e.countries==null?void 0:e.countries.map(w),topCountries:e.topCountries,topics:e.topics==null?void 0:e.topics.map(w),topTopics:e.topTopics==null?void 0:e.topTopics.map(ee),categories:e.categories==null?void 0:e.categories.map(w),topCategories:e.topCategories==null?void 0:e.topCategories.map(F),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(w),topTaxonomies:e.topTaxonomies==null?void 0:e.topTaxonomies.map(F),people:e.people==null?void 0:e.people.map(xe),topPeople:e.topPeople==null?void 0:e.topPeople.map(q),companies:e.companies==null?void 0:e.companies.map(ke),topCompanies:e.topCompanies==null?void 0:e.topCompanies.map(Z),locations:e.locations==null?void 0:e.locations.map(be),topLocations:e.topLocations==null?void 0:e.topLocations.map(b),highlights:e.highlights}}function pa(e){return true}function we(e){return bi(e)}function bi(e,n){return e==null?e:{name:e.name==null?void 0:e.name,weight:e.weight==null?void 0:e.weight}}function He(e){return Ii(e,false)}function Ii(e,n=false){return e==null?e:{name:e.name,weight:e.weight}}function ya(e){return true}function De(e){return ki(e)}function ki(e,n){return e==null?e:{name:e.name==null?void 0:e.name,type:e.type==null?void 0:e.type}}function Le(e){return Ci(e,false)}function Ci(e,n=false){return e==null?e:{name:e.name,type:e.type}}function Sa(e){return true}function We(e){return Ji(e)}function Ji(e,n){return e==null?e:{name:e.name==null?void 0:e.name,score:e.score==null?void 0:e.score}}function _e(e){return Fi(e,false)}function Fi(e,n=false){return e==null?e:{name:e.name,score:e.score}}function Oa(e){return true}function Me(e){return Ei(e)}function Ei(e,n){return e==null?e:{osmId:e.osmId==null?void 0:e.osmId,road:e.road==null?void 0:e.road,quarter:e.quarter==null?void 0:e.quarter,suburb:e.suburb==null?void 0:e.suburb,city:e.city==null?void 0:e.city,town:e.town==null?void 0:e.town,county:e.county==null?void 0:e.county,stateDistrict:e.stateDistrict==null?void 0:e.stateDistrict,state:e.state==null?void 0:e.state,postcode:e.postcode==null?void 0:e.postcode,country:e.country==null?void 0:e.country,countryCode:e.countryCode==null?void 0:e.countryCode,amenity:e.amenity==null?void 0:e.amenity,neighbourhood:e.neighbourhood==null?void 0:e.neighbourhood,coordinates:e.coordinates==null?void 0:G(e.coordinates)}}function Be(e){return wi(e,false)}function wi(e,n=false){return e==null?e:{osmId:e.osmId,road:e.road,quarter:e.quarter,suburb:e.suburb,city:e.city,town:e.town,county:e.county,stateDistrict:e.stateDistrict,state:e.state,postcode:e.postcode,country:e.country,countryCode:e.countryCode,amenity:e.amenity,neighbourhood:e.neighbourhood,coordinates:Q(e.coordinates)}}function xa(e){return true}function Ue(e){return Hi(e)}function Hi(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name}}function ze(e){return Di(e,false)}function Di(e,n=false){return e==null?e:{id:e.id,name:e.name}}function hl(e){return true}function h(e){return Li(e)}function Li(e,n){return e==null?e:{url:e.url==null?void 0:e.url,authorsByline:e.authorsByline==null?void 0:e.authorsByline,articleId:e.articleId==null?void 0:e.articleId,clusterId:e.clusterId==null?void 0:e.clusterId,source:e.source==null?void 0:Y(e.source),imageUrl:e.imageUrl==null?void 0:e.imageUrl,country:e.country==null?void 0:e.country,language:e.language==null?void 0:e.language,pubDate:e.pubDate==null?void 0:e.pubDate,addDate:e.addDate==null?void 0:e.addDate,refreshDate:e.refreshDate==null?void 0:e.refreshDate,score:e.score==null?void 0:e.score,title:e.title==null?void 0:e.title,description:e.description==null?void 0:e.description,content:e.content==null?void 0:e.content,medium:e.medium==null?void 0:e.medium,links:e.links==null?void 0:e.links,labels:e.labels==null?void 0:e.labels.map(Ae),eventTypes:e.eventTypes==null?void 0:e.eventTypes.map(De),matchedAuthors:e.matchedAuthors==null?void 0:e.matchedAuthors.map(Ue),claim:e.claim==null?void 0:e.claim,verdict:e.verdict==null?void 0:e.verdict,keywords:e.keywords==null?void 0:e.keywords.map(we),topics:e.topics==null?void 0:e.topics.map(j),categories:e.categories==null?void 0:e.categories.map(J),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(We),entities:e.entities==null?void 0:e.entities.map(Te),companies:e.companies==null?void 0:e.companies.map(X),sentiment:e.sentiment==null?void 0:ne(e.sentiment),summary:e.summary==null?void 0:e.summary,shortSummary:e.shortSummary==null?void 0:e.shortSummary,translation:e.translation==null?void 0:e.translation,translatedTitle:e.translatedTitle==null?void 0:e.translatedTitle,translatedDescription:e.translatedDescription==null?void 0:e.translatedDescription,translatedSummary:e.translatedSummary==null?void 0:e.translatedSummary,locations:e.locations==null?void 0:e.locations.map(R),reprint:e.reprint==null?void 0:e.reprint,reprintGroupId:e.reprintGroupId==null?void 0:e.reprintGroupId,places:e.places==null?void 0:e.places.map(Me),people:e.people==null?void 0:e.people.map(v),cluster:e.cluster==null?void 0:te(e.cluster),journalists:e.journalists==null?void 0:e.journalists.map(I),highlights:e.highlights==null?void 0:e.highlights}}function A(e){return Wi(e,false)}function Wi(e,n=false){return e==null?e:{url:e.url,authorsByline:e.authorsByline,articleId:e.articleId,clusterId:e.clusterId,source:$(e.source),imageUrl:e.imageUrl,country:e.country,language:e.language,pubDate:e.pubDate,addDate:e.addDate,refreshDate:e.refreshDate,score:e.score,title:e.title,description:e.description,content:e.content,medium:e.medium,links:e.links,labels:e.labels==null?void 0:e.labels.map(Oe),eventTypes:e.eventTypes==null?void 0:e.eventTypes.map(Le),matchedAuthors:e.matchedAuthors==null?void 0:e.matchedAuthors.map(ze),claim:e.claim,verdict:e.verdict,keywords:e.keywords==null?void 0:e.keywords.map(He),topics:e.topics==null?void 0:e.topics.map(ee),categories:e.categories==null?void 0:e.categories.map(F),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(_e),entities:e.entities==null?void 0:e.entities.map(he),companies:e.companies==null?void 0:e.companies.map(Z),sentiment:ie(e.sentiment),summary:e.summary,shortSummary:e.shortSummary,translation:e.translation,translatedTitle:e.translatedTitle,translatedDescription:e.translatedDescription,translatedSummary:e.translatedSummary,locations:e.locations==null?void 0:e.locations.map(b),reprint:e.reprint,reprintGroupId:e.reprintGroupId,places:e.places==null?void 0:e.places.map(Be),people:e.people==null?void 0:e.people.map(q),cluster:re(e.cluster),journalists:e.journalists==null?void 0:e.journalists.map(V),highlights:e.highlights}}function Ol(e){return true}function de(e){return _i(e)}function _i(e,n){return e==null?e:{lat:e.lat==null?void 0:e.lat,lon:e.lon==null?void 0:e.lon,radius:e.radius==null?void 0:e.radius}}function ce(e){return Mi(e,false)}function Mi(e,n=false){return e==null?e:{lat:e.lat,lon:e.lon,radius:e.radius}}function Il(e){return true}function H(e){return Bi(e)}function Bi(e,n){return e==null?e:{articleId:e.articleId==null?void 0:e.articleId,clusterId:e.clusterId==null?void 0:e.clusterId,source:e.source==null?void 0:e.source,excludeSource:e.excludeSource==null?void 0:e.excludeSource,sourceGroup:e.sourceGroup==null?void 0:e.sourceGroup,language:e.language==null?void 0:e.language,excludeLanguage:e.excludeLanguage==null?void 0:e.excludeLanguage,label:e.label==null?void 0:e.label,excludeLabel:e.excludeLabel==null?void 0:e.excludeLabel,taxonomy:e.taxonomy==null?void 0:e.taxonomy,category:e.category==null?void 0:e.category,topic:e.topic==null?void 0:e.topic,excludeTopic:e.excludeTopic==null?void 0:e.excludeTopic,country:e.country==null?void 0:e.country,excludeCountry:e.excludeCountry==null?void 0:e.excludeCountry,locationsCountry:e.locationsCountry==null?void 0:e.locationsCountry,excludeLocationsCountry:e.excludeLocationsCountry==null?void 0:e.excludeLocationsCountry,state:e.state==null?void 0:e.state,excludeState:e.excludeState==null?void 0:e.excludeState,county:e.county==null?void 0:e.county,excludeCounty:e.excludeCounty==null?void 0:e.excludeCounty,city:e.city==null?void 0:e.city,excludeCity:e.excludeCity==null?void 0:e.excludeCity,sourceCountry:e.sourceCountry==null?void 0:e.sourceCountry,sourceState:e.sourceState==null?void 0:e.sourceState,sourceCounty:e.sourceCounty==null?void 0:e.sourceCounty,sourceCity:e.sourceCity==null?void 0:e.sourceCity,coordinates:e.coordinates==null?void 0:de(e.coordinates),sourceCoordinates:e.sourceCoordinates==null?void 0:de(e.sourceCoordinates),companyId:e.companyId==null?void 0:e.companyId,excludeCompanyId:e.excludeCompanyId==null?void 0:e.excludeCompanyId,companyDomain:e.companyDomain==null?void 0:e.companyDomain,excludeCompanyDomain:e.excludeCompanyDomain==null?void 0:e.excludeCompanyDomain,companySymbol:e.companySymbol==null?void 0:e.companySymbol,excludeCompanySymbol:e.excludeCompanySymbol==null?void 0:e.excludeCompanySymbol,companyName:e.companyName==null?void 0:e.companyName,personWikidataId:e.personWikidataId==null?void 0:e.personWikidataId,excludePersonWikidataId:e.excludePersonWikidataId==null?void 0:e.excludePersonWikidataId,personName:e.personName==null?void 0:e.personName,excludePersonName:e.excludePersonName==null?void 0:e.excludePersonName,aND:e.AND==null?void 0:e.AND.map(H),oR:e.OR==null?void 0:e.OR.map(H),nOT:e.NOT==null?void 0:e.NOT.map(H)}}function D(e){return Ui(e,false)}function Ui(e,n=false){return e==null?e:{articleId:e.articleId,clusterId:e.clusterId,source:e.source,excludeSource:e.excludeSource,sourceGroup:e.sourceGroup,language:e.language,excludeLanguage:e.excludeLanguage,label:e.label,excludeLabel:e.excludeLabel,taxonomy:e.taxonomy,category:e.category,topic:e.topic,excludeTopic:e.excludeTopic,country:e.country,excludeCountry:e.excludeCountry,locationsCountry:e.locationsCountry,excludeLocationsCountry:e.excludeLocationsCountry,state:e.state,excludeState:e.excludeState,county:e.county,excludeCounty:e.excludeCounty,city:e.city,excludeCity:e.excludeCity,sourceCountry:e.sourceCountry,sourceState:e.sourceState,sourceCounty:e.sourceCounty,sourceCity:e.sourceCity,coordinates:ce(e.coordinates),sourceCoordinates:ce(e.sourceCoordinates),companyId:e.companyId,excludeCompanyId:e.excludeCompanyId,companyDomain:e.companyDomain,excludeCompanyDomain:e.excludeCompanyDomain,companySymbol:e.companySymbol,excludeCompanySymbol:e.excludeCompanySymbol,companyName:e.companyName,personWikidataId:e.personWikidataId,excludePersonWikidataId:e.excludePersonWikidataId,personName:e.personName,excludePersonName:e.excludePersonName,AND:e.aND==null?void 0:e.aND.map(D),OR:e.oR==null?void 0:e.oR.map(D),NOT:e.nOT==null?void 0:e.nOT.map(D)}}function El(e){return !(!("prompt"in e)||e.prompt===void 0)}function wl(e){return zi(e)}function zi(e,n){return e==null?e:{prompt:e.prompt,filter:e.filter==null?void 0:H(e.filter),pubDateFrom:e.pubDateFrom==null?void 0:new Date(e.pubDateFrom),pubDateTo:e.pubDateTo==null?void 0:new Date(e.pubDateTo),showReprints:e.showReprints==null?void 0:e.showReprints,size:e.size==null?void 0:e.size,page:e.page==null?void 0:e.page}}function Ve(e){return Vi(e,false)}function Vi(e,n=false){return e==null?e:{prompt:e.prompt,filter:D(e.filter),pubDateFrom:e.pubDateFrom==null?void 0:e.pubDateFrom.toISOString(),pubDateTo:e.pubDateTo==null?void 0:e.pubDateTo.toISOString(),showReprints:e.showReprints,size:e.size,page:e.page}}function _l(e){return true}function Ge(e){return Gi(e)}function Gi(e,n){return e==null?e:{score:e.score==null?void 0:e.score,data:e.data==null?void 0:h(e.data)}}function Qe(e){return Qi(e,false)}function Qi(e,n=false){return e==null?e:{score:e.score,data:A(e.data)}}function Vl(e){return !(!("status"in e)||e.status===void 0||!("results"in e)||e.results===void 0)}function Ke(e){return Ki(e)}function Ki(e,n){return e==null?e:{status:e.status,results:e.results.map(Ge)}}function Gl(e){return Pi(e,false)}function Pi(e,n=false){return e==null?e:{status:e.status,results:e.results.map(Qe)}}function Kl(e){return true}function d(e){return Yi(e)}function Yi(e,n){return e==null?e:{classLoaderName:e.classLoaderName==null?void 0:e.classLoaderName,moduleName:e.moduleName==null?void 0:e.moduleName,moduleVersion:e.moduleVersion==null?void 0:e.moduleVersion,methodName:e.methodName==null?void 0:e.methodName,fileName:e.fileName==null?void 0:e.fileName,lineNumber:e.lineNumber==null?void 0:e.lineNumber,nativeMethod:e.nativeMethod==null?void 0:e.nativeMethod,className:e.className==null?void 0:e.className}}function c(e){return $i(e,false)}function $i(e,n=false){return e==null?e:{classLoaderName:e.classLoaderName,moduleName:e.moduleName,moduleVersion:e.moduleVersion,methodName:e.methodName,fileName:e.fileName,lineNumber:e.lineNumber,nativeMethod:e.nativeMethod,className:e.className}}function Zl(e){return true}function s(e){return Xi(e)}function Xi(e,n){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),message:e.message==null?void 0:e.message,localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function p(e){return Zi(e,false)}function Zi(e,n=false){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,localizedMessage:e.localizedMessage}}function nu(e){return true}function m(e){return vi(e)}function vi(e,n){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),message:e.message==null?void 0:e.message,localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function y(e){return qi(e,false)}function qi(e,n=false){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,localizedMessage:e.localizedMessage}}var pu={_100Continue:"100 CONTINUE",_101SwitchingProtocols:"101 SWITCHING_PROTOCOLS",_102Processing:"102 PROCESSING",_103Checkpoint:"103 CHECKPOINT",_200Ok:"200 OK",_201Created:"201 CREATED",_202Accepted:"202 ACCEPTED",_203NonAuthoritativeInformation:"203 NON_AUTHORITATIVE_INFORMATION",_204NoContent:"204 NO_CONTENT",_205ResetContent:"205 RESET_CONTENT",_206PartialContent:"206 PARTIAL_CONTENT",_207MultiStatus:"207 MULTI_STATUS",_208AlreadyReported:"208 ALREADY_REPORTED",_226ImUsed:"226 IM_USED",_300MultipleChoices:"300 MULTIPLE_CHOICES",_301MovedPermanently:"301 MOVED_PERMANENTLY",_302Found:"302 FOUND",_302MovedTemporarily:"302 MOVED_TEMPORARILY",_303SeeOther:"303 SEE_OTHER",_304NotModified:"304 NOT_MODIFIED",_305UseProxy:"305 USE_PROXY",_307TemporaryRedirect:"307 TEMPORARY_REDIRECT",_308PermanentRedirect:"308 PERMANENT_REDIRECT",_400BadRequest:"400 BAD_REQUEST",_401Unauthorized:"401 UNAUTHORIZED",_402PaymentRequired:"402 PAYMENT_REQUIRED",_403Forbidden:"403 FORBIDDEN",_404NotFound:"404 NOT_FOUND",_405MethodNotAllowed:"405 METHOD_NOT_ALLOWED",_406NotAcceptable:"406 NOT_ACCEPTABLE",_407ProxyAuthenticationRequired:"407 PROXY_AUTHENTICATION_REQUIRED",_408RequestTimeout:"408 REQUEST_TIMEOUT",_409Conflict:"409 CONFLICT",_410Gone:"410 GONE",_411LengthRequired:"411 LENGTH_REQUIRED",_412PreconditionFailed:"412 PRECONDITION_FAILED",_413PayloadTooLarge:"413 PAYLOAD_TOO_LARGE",_413RequestEntityTooLarge:"413 REQUEST_ENTITY_TOO_LARGE",_414UriTooLong:"414 URI_TOO_LONG",_414RequestUriTooLong:"414 REQUEST_URI_TOO_LONG",_415UnsupportedMediaType:"415 UNSUPPORTED_MEDIA_TYPE",_416RequestedRangeNotSatisfiable:"416 REQUESTED_RANGE_NOT_SATISFIABLE",_417ExpectationFailed:"417 EXPECTATION_FAILED",_418IAmATeapot:"418 I_AM_A_TEAPOT",_419InsufficientSpaceOnResource:"419 INSUFFICIENT_SPACE_ON_RESOURCE",_420MethodFailure:"420 METHOD_FAILURE",_421DestinationLocked:"421 DESTINATION_LOCKED",_422UnprocessableEntity:"422 UNPROCESSABLE_ENTITY",_423Locked:"423 LOCKED",_424FailedDependency:"424 FAILED_DEPENDENCY",_425TooEarly:"425 TOO_EARLY",_426UpgradeRequired:"426 UPGRADE_REQUIRED",_428PreconditionRequired:"428 PRECONDITION_REQUIRED",_429TooManyRequests:"429 TOO_MANY_REQUESTS",_431RequestHeaderFieldsTooLarge:"431 REQUEST_HEADER_FIELDS_TOO_LARGE",_451UnavailableForLegalReasons:"451 UNAVAILABLE_FOR_LEGAL_REASONS",_500InternalServerError:"500 INTERNAL_SERVER_ERROR",_501NotImplemented:"501 NOT_IMPLEMENTED",_502BadGateway:"502 BAD_GATEWAY",_503ServiceUnavailable:"503 SERVICE_UNAVAILABLE",_504GatewayTimeout:"504 GATEWAY_TIMEOUT",_505HttpVersionNotSupported:"505 HTTP_VERSION_NOT_SUPPORTED",_506VariantAlsoNegotiates:"506 VARIANT_ALSO_NEGOTIATES",_507InsufficientStorage:"507 INSUFFICIENT_STORAGE",_508LoopDetected:"508 LOOP_DETECTED",_509BandwidthLimitExceeded:"509 BANDWIDTH_LIMIT_EXCEEDED",_510NotExtended:"510 NOT_EXTENDED",_511NetworkAuthenticationRequired:"511 NETWORK_AUTHENTICATION_REQUIRED"};function mu(e){return true}function yu(e){return ji(e)}function ji(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),statusCode:e.statusCode==null?void 0:e.statusCode,message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function fu(e){return et(e,false)}function et(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),statusCode:e.statusCode,message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage}}function gu(e){return true}function Pe(e){return nt(e)}function nt(e,n){return e==null?e:{symbol:e.symbol==null?void 0:e.symbol,exchange:e.exchange==null?void 0:e.exchange,exchangeShortName:e.exchangeShortName==null?void 0:e.exchangeShortName,ipoDate:e.ipoDate==null?void 0:e.ipoDate}}function Ye(e){return it(e,false)}function it(e,n=false){return e==null?e:{symbol:e.symbol,exchange:e.exchange,exchangeShortName:e.exchangeShortName,ipoDate:e.ipoDate}}function hu(e){return true}function $e(e){return tt(e)}function tt(e,n){return e==null?e:{careers:e.careers==null?void 0:e.careers,about:e.about==null?void 0:e.about,blog:e.blog==null?void 0:e.blog,events:e.events==null?void 0:e.events,sitemap:e.sitemap==null?void 0:e.sitemap,updates:e.updates==null?void 0:e.updates,linkedin:e.linkedin==null?void 0:e.linkedin,facebook:e.facebook==null?void 0:e.facebook,instagram:e.instagram==null?void 0:e.instagram,medium:e.medium==null?void 0:e.medium,reddit:e.reddit==null?void 0:e.reddit,threads:e.threads==null?void 0:e.threads,tiktok:e.tiktok==null?void 0:e.tiktok,x:e.x==null?void 0:e.x,wellfound:e.wellfound==null?void 0:e.wellfound,youtube:e.youtube==null?void 0:e.youtube,wikipedia:e.wikipedia==null?void 0:e.wikipedia}}function Xe(e){return rt(e,false)}function rt(e,n=false){return e==null?e:{careers:e.careers,about:e.about,blog:e.blog,events:e.events,sitemap:e.sitemap,updates:e.updates,linkedin:e.linkedin,facebook:e.facebook,instagram:e.instagram,medium:e.medium,reddit:e.reddit,threads:e.threads,tiktok:e.tiktok,x:e.x,wellfound:e.wellfound,youtube:e.youtube,wikipedia:e.wikipedia}}function ku(e){return true}function Ze(e){return ot(e)}function ot(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,updatedAt:e.updatedAt==null?void 0:e.updatedAt,primaryRecordId:e.primaryRecordId==null?void 0:e.primaryRecordId,altNames:e.altNames==null?void 0:e.altNames,domains:e.domains==null?void 0:e.domains,monthlyVisits:e.monthlyVisits==null?void 0:e.monthlyVisits,globalRank:e.globalRank==null?void 0:e.globalRank,description:e.description==null?void 0:e.description,ceo:e.ceo==null?void 0:e.ceo,industry:e.industry==null?void 0:e.industry,sector:e.sector==null?void 0:e.sector,country:e.country==null?void 0:e.country,fullTimeEmployees:e.fullTimeEmployees==null?void 0:e.fullTimeEmployees,address:e.address==null?void 0:e.address,city:e.city==null?void 0:e.city,state:e.state==null?void 0:e.state,zip:e.zip==null?void 0:e.zip,logo:e.logo==null?void 0:e.logo,favicon:e.favicon==null?void 0:e.favicon,isEtf:e.isEtf==null?void 0:e.isEtf,isActivelyTrading:e.isActivelyTrading==null?void 0:e.isActivelyTrading,isFund:e.isFund==null?void 0:e.isFund,isAdr:e.isAdr==null?void 0:e.isAdr,symbols:e.symbols==null?void 0:e.symbols.map(Pe),naics:e.naics==null?void 0:e.naics,sic:e.sic==null?void 0:e.sic,yearFounded:e.yearFounded==null?void 0:e.yearFounded,revenue:e.revenue==null?void 0:e.revenue,webResources:e.webResources==null?void 0:$e(e.webResources)}}function ve(e){return at(e,false)}function at(e,n=false){return e==null?e:{id:e.id,name:e.name,updatedAt:e.updatedAt,primaryRecordId:e.primaryRecordId,altNames:e.altNames,domains:e.domains,monthlyVisits:e.monthlyVisits,globalRank:e.globalRank,description:e.description,ceo:e.ceo,industry:e.industry,sector:e.sector,country:e.country,fullTimeEmployees:e.fullTimeEmployees,address:e.address,city:e.city,state:e.state,zip:e.zip,logo:e.logo,favicon:e.favicon,isEtf:e.isEtf,isActivelyTrading:e.isActivelyTrading,isFund:e.isFund,isAdr:e.isAdr,symbols:e.symbols==null?void 0:e.symbols.map(Ye),naics:e.naics,sic:e.sic,yearFounded:e.yearFounded,revenue:e.revenue,webResources:Xe(e.webResources)}}function wu(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function qe(e){return lt(e)}function lt(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(Ze)}}function Hu(e){return ut(e,false)}function ut(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(ve)}}function Qu(e){return true}function Ku(e){return dt(e)}function dt(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function Pu(e){return ct(e,false)}function ct(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage}}function $u(e){return true}function k(e){return st(e)}function st(e,n){return e==null?e:{url:e.url==null?void 0:e.url}}function C(e){return pt(e,false)}function pt(e,n=false){return e==null?e:{url:e.url}}function od(e){return true}function ad(e){return mt(e)}function mt(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function ld(e){return yt(e,false)}function yt(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage}}function pd(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function je(e){return ft(e)}function ft(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(I)}}function md(e){return St(e,false)}function St(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(V)}}function Rd(e){return true}function bd(e){return gt(e)}function gt(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function Id(e){return Tt(e,false)}function Tt(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage}}function Cd(e){return true}function f(e){return ht(e)}function ht(e,n){return e==null?e:{time:e.time==null?void 0:e.time,precision:e.precision==null?void 0:e.precision}}function S(e){return At(e,false)}function At(e,n=false){return e==null?e:{time:e.time,precision:e.precision}}function Hd(e){return true}function en(e){return Ot(e)}function Ot(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,label:e.label==null?void 0:e.label,startTime:e.startTime==null?void 0:f(e.startTime),endTime:e.endTime==null?void 0:f(e.endTime)}}function nn(e){return Nt(e,false)}function Nt(e,n=false){return e==null?e:{wikidataId:e.wikidataId,label:e.label,startTime:S(e.startTime),endTime:S(e.endTime)}}function Ld(e){return true}function g(e){return xt(e)}function xt(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,label:e.label==null?void 0:e.label}}function T(e){return Rt(e,false)}function Rt(e,n=false){return e==null?e:{wikidataId:e.wikidataId,label:e.label}}function Gd(e){return true}function tn(e){return bt(e)}function bt(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,label:e.label==null?void 0:e.label,startTime:e.startTime==null?void 0:f(e.startTime),endTime:e.endTime==null?void 0:f(e.endTime),employer:e.employer==null?void 0:g(e.employer)}}function rn(e){return It(e,false)}function It(e,n=false){return e==null?e:{wikidataId:e.wikidataId,label:e.label,startTime:S(e.startTime),endTime:S(e.endTime),employer:T(e.employer)}}function ac(e){return true}function on(e){return kt(e)}function kt(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,createdAt:e.createdAt==null?void 0:e.createdAt,updatedAt:e.updatedAt==null?void 0:e.updatedAt,name:e.name==null?void 0:e.name,gender:e.gender==null?void 0:g(e.gender),dateOfBirth:e.dateOfBirth==null?void 0:f(e.dateOfBirth),dateOfDeath:e.dateOfDeath==null?void 0:f(e.dateOfDeath),description:e.description==null?void 0:e.description,aliases:e.aliases==null?void 0:e.aliases,occupation:e.occupation==null?void 0:e.occupation.map(g),position:e.position==null?void 0:e.position.map(tn),politicalParty:e.politicalParty==null?void 0:e.politicalParty.map(en),image:e.image==null?void 0:k(e.image),_abstract:e.abstract==null?void 0:e.abstract}}function an(e){return Ct(e,false)}function Ct(e,n=false){return e==null?e:{wikidataId:e.wikidataId,createdAt:e.createdAt,updatedAt:e.updatedAt,name:e.name,gender:T(e.gender),dateOfBirth:S(e.dateOfBirth),dateOfDeath:S(e.dateOfDeath),description:e.description,aliases:e.aliases,occupation:e.occupation==null?void 0:e.occupation.map(T),position:e.position==null?void 0:e.position.map(rn),politicalParty:e.politicalParty==null?void 0:e.politicalParty.map(nn),image:C(e.image),abstract:e._abstract}}function sc(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function ln(e){return Jt(e)}function Jt(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(on)}}function pc(e){return Ft(e,false)}function Ft(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(an)}}function gc(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("articles"in e)||e.articles===void 0)}function un(e){return Et(e)}function Et(e,n){return e==null?e:{status:e.status,numResults:e.numResults,articles:e.articles.map(h)}}function Tc(e){return wt(e,false)}function wt(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,articles:e.articles.map(A)}}function xc(e){return true}function dn(e){return Ht(e)}function Ht(e,n){return e==null?e:{pageId:e.pageId==null?void 0:e.pageId,sectionId:e.sectionId==null?void 0:e.sectionId,wikiPageId:e.wikiPageId==null?void 0:e.wikiPageId,wikiRevisionId:e.wikiRevisionId==null?void 0:e.wikiRevisionId,wikiRevisionTs:e.wikiRevisionTs==null?void 0:e.wikiRevisionTs,wikiCode:e.wikiCode==null?void 0:e.wikiCode,wikiNamespace:e.wikiNamespace==null?void 0:e.wikiNamespace,wikiTitle:e.wikiTitle==null?void 0:e.wikiTitle,wikidataId:e.wikidataId==null?void 0:e.wikidataId,wikidataInstanceOf:e.wikidataInstanceOf==null?void 0:e.wikidataInstanceOf.map(g),redirectTitles:e.redirectTitles==null?void 0:e.redirectTitles,pageviews:e.pageviews==null?void 0:e.pageviews,title:e.title==null?void 0:e.title,styleLevel:e.styleLevel==null?void 0:e.styleLevel,content:e.content==null?void 0:e.content}}function cn(e){return Dt(e,false)}function Dt(e,n=false){return e==null?e:{pageId:e.pageId,sectionId:e.sectionId,wikiPageId:e.wikiPageId,wikiRevisionId:e.wikiRevisionId,wikiRevisionTs:e.wikiRevisionTs,wikiCode:e.wikiCode,wikiNamespace:e.wikiNamespace,wikiTitle:e.wikiTitle,wikidataId:e.wikidataId,wikidataInstanceOf:e.wikidataInstanceOf==null?void 0:e.wikidataInstanceOf.map(T),redirectTitles:e.redirectTitles,pageviews:e.pageviews,title:e.title,styleLevel:e.styleLevel,content:e.content}}function Cc(e){return true}function sn(e){return Lt(e)}function Lt(e,n){return e==null?e:{score:e.score==null?void 0:e.score,data:e.data==null?void 0:dn(e.data)}}function pn(e){return Wt(e,false)}function Wt(e,n=false){return e==null?e:{score:e.score,data:cn(e.data)}}var se={CreatedAt:"createdAt",UpdatedAt:"updatedAt",Relevance:"relevance",Count:"count",TotalCount:"totalCount"};function Fc(e){for(let n in se)if(Object.prototype.hasOwnProperty.call(se,n)&&se[n]===e)return true;return false}function Ec(e){return _t(e)}function _t(e,n){return e}function wc(e){return e}function Hc(e,n){return e}function Lc(e){return true}function L(e){return Mt(e)}function Mt(e,n){return e==null?e:{name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function W(e){return Bt(e,false)}function Bt(e,n=false){return e==null?e:{name:e.name,count:e.count}}function Pc(e){return true}function mn(e){return Ut(e)}function Ut(e,n){return e==null?e:{id:e.id==null?void 0:e.id,domain:e.domain==null?void 0:e.domain,name:e.name==null?void 0:e.name,primaryRecordId:e.primaryRecordId==null?void 0:e.primaryRecordId,updatedAt:e.updatedAt==null?void 0:e.updatedAt,altNames:e.altNames==null?void 0:e.altNames,description:e.description==null?void 0:e.description,avgMonthlyPosts:e.avgMonthlyPosts==null?void 0:e.avgMonthlyPosts,paywall:e.paywall==null?void 0:e.paywall,location:e.location==null?void 0:K(e.location),topCategories:e.topCategories==null?void 0:e.topCategories.map(L),topTopics:e.topTopics==null?void 0:e.topTopics.map(L),topCountries:e.topCountries==null?void 0:e.topCountries.map(L),topLabels:e.topLabels==null?void 0:e.topLabels.map(L),avgBiasRating:e.avgBiasRating==null?void 0:e.avgBiasRating,adFontesBiasRating:e.adFontesBiasRating==null?void 0:e.adFontesBiasRating,allSidesBiasRating:e.allSidesBiasRating==null?void 0:e.allSidesBiasRating,mbfcBiasRating:e.mbfcBiasRating==null?void 0:e.mbfcBiasRating,monthlyVisits:e.monthlyVisits==null?void 0:e.monthlyVisits,globalRank:e.globalRank==null?void 0:e.globalRank,logoLarge:e.logoLarge==null?void 0:k(e.logoLarge),logoFavIcon:e.logoFavIcon==null?void 0:k(e.logoFavIcon),logoSquare:e.logoSquare==null?void 0:k(e.logoSquare)}}function yn(e){return zt(e,false)}function zt(e,n=false){return e==null?e:{id:e.id,domain:e.domain,name:e.name,primaryRecordId:e.primaryRecordId,updatedAt:e.updatedAt,altNames:e.altNames,description:e.description,avgMonthlyPosts:e.avgMonthlyPosts,paywall:e.paywall,location:P(e.location),topCategories:e.topCategories==null?void 0:e.topCategories.map(W),topTopics:e.topTopics==null?void 0:e.topTopics.map(W),topCountries:e.topCountries==null?void 0:e.topCountries.map(W),topLabels:e.topLabels==null?void 0:e.topLabels.map(W),avgBiasRating:e.avgBiasRating,adFontesBiasRating:e.adFontesBiasRating,allSidesBiasRating:e.allSidesBiasRating,mbfcBiasRating:e.mbfcBiasRating,monthlyVisits:e.monthlyVisits,globalRank:e.globalRank,logoLarge:C(e.logoLarge),logoFavIcon:C(e.logoFavIcon),logoSquare:C(e.logoSquare)}}function vc(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function fn(e){return Vt(e)}function Vt(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(mn)}}function qc(e){return Gt(e,false)}function Gt(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(yn)}}function ts(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function Sn(e){return Qt(e)}function Qt(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(te)}}function rs(e){return Kt(e,false)}function Kt(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(re)}}var as={Title:"TITLE",Content:"CONTENT",Summary:"SUMMARY"},ls={Articles:"ARTICLES",Clusters:"CLUSTERS"},us={Gpt4o:"gpt-4o",Gpt4oMini:"gpt-4o-mini",Gpt41:"gpt-4.1",Gpt41Mini:"gpt-4.1-mini",Gpt41Nano:"gpt-4.1-nano",Llama3370bVersatile:"llama-3.3-70b-versatile",DeepseekR1DistillLlama70b:"deepseek-r1-distill-llama-70b"};function ds(e){return true}function cs(e){return Pt(e)}function Pt(e,n){return e==null?e:{prompt:e.prompt==null?void 0:e.prompt,maxArticleCount:e.maxArticleCount==null?void 0:e.maxArticleCount,returnedArticleCount:e.returnedArticleCount==null?void 0:e.returnedArticleCount,summarizeFields:e.summarizeFields==null?void 0:e.summarizeFields,method:e.method==null?void 0:e.method,model:e.model==null?void 0:e.model,temperature:e.temperature==null?void 0:e.temperature,topP:e.topP==null?void 0:e.topP,maxTokens:e.maxTokens==null?void 0:e.maxTokens}}function gn(e){return Yt(e,false)}function Yt(e,n=false){return e==null?e:{prompt:e.prompt,maxArticleCount:e.maxArticleCount,returnedArticleCount:e.returnedArticleCount,summarizeFields:e.summarizeFields,method:e.method,model:e.model,temperature:e.temperature,topP:e.topP,maxTokens:e.maxTokens}}function fs(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("summary"in e)||e.summary===void 0||!("results"in e)||e.results===void 0)}function Tn(e){return $t(e)}function $t(e,n){return e==null?e:{status:e.status,numResults:e.numResults,summary:e.summary,results:e.results.map(h)}}function Ss(e){return Xt(e,false)}function Xt(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,summary:e.summary,results:e.results.map(A)}}var ks={_100Continue:"100 CONTINUE",_101SwitchingProtocols:"101 SWITCHING_PROTOCOLS",_102Processing:"102 PROCESSING",_103Checkpoint:"103 CHECKPOINT",_200Ok:"200 OK",_201Created:"201 CREATED",_202Accepted:"202 ACCEPTED",_203NonAuthoritativeInformation:"203 NON_AUTHORITATIVE_INFORMATION",_204NoContent:"204 NO_CONTENT",_205ResetContent:"205 RESET_CONTENT",_206PartialContent:"206 PARTIAL_CONTENT",_207MultiStatus:"207 MULTI_STATUS",_208AlreadyReported:"208 ALREADY_REPORTED",_226ImUsed:"226 IM_USED",_300MultipleChoices:"300 MULTIPLE_CHOICES",_301MovedPermanently:"301 MOVED_PERMANENTLY",_302Found:"302 FOUND",_302MovedTemporarily:"302 MOVED_TEMPORARILY",_303SeeOther:"303 SEE_OTHER",_304NotModified:"304 NOT_MODIFIED",_305UseProxy:"305 USE_PROXY",_307TemporaryRedirect:"307 TEMPORARY_REDIRECT",_308PermanentRedirect:"308 PERMANENT_REDIRECT",_400BadRequest:"400 BAD_REQUEST",_401Unauthorized:"401 UNAUTHORIZED",_402PaymentRequired:"402 PAYMENT_REQUIRED",_403Forbidden:"403 FORBIDDEN",_404NotFound:"404 NOT_FOUND",_405MethodNotAllowed:"405 METHOD_NOT_ALLOWED",_406NotAcceptable:"406 NOT_ACCEPTABLE",_407ProxyAuthenticationRequired:"407 PROXY_AUTHENTICATION_REQUIRED",_408RequestTimeout:"408 REQUEST_TIMEOUT",_409Conflict:"409 CONFLICT",_410Gone:"410 GONE",_411LengthRequired:"411 LENGTH_REQUIRED",_412PreconditionFailed:"412 PRECONDITION_FAILED",_413PayloadTooLarge:"413 PAYLOAD_TOO_LARGE",_413RequestEntityTooLarge:"413 REQUEST_ENTITY_TOO_LARGE",_414UriTooLong:"414 URI_TOO_LONG",_414RequestUriTooLong:"414 REQUEST_URI_TOO_LONG",_415UnsupportedMediaType:"415 UNSUPPORTED_MEDIA_TYPE",_416RequestedRangeNotSatisfiable:"416 REQUESTED_RANGE_NOT_SATISFIABLE",_417ExpectationFailed:"417 EXPECTATION_FAILED",_418IAmATeapot:"418 I_AM_A_TEAPOT",_419InsufficientSpaceOnResource:"419 INSUFFICIENT_SPACE_ON_RESOURCE",_420MethodFailure:"420 METHOD_FAILURE",_421DestinationLocked:"421 DESTINATION_LOCKED",_422UnprocessableEntity:"422 UNPROCESSABLE_ENTITY",_423Locked:"423 LOCKED",_424FailedDependency:"424 FAILED_DEPENDENCY",_425TooEarly:"425 TOO_EARLY",_426UpgradeRequired:"426 UPGRADE_REQUIRED",_428PreconditionRequired:"428 PRECONDITION_REQUIRED",_429TooManyRequests:"429 TOO_MANY_REQUESTS",_431RequestHeaderFieldsTooLarge:"431 REQUEST_HEADER_FIELDS_TOO_LARGE",_451UnavailableForLegalReasons:"451 UNAVAILABLE_FOR_LEGAL_REASONS",_500InternalServerError:"500 INTERNAL_SERVER_ERROR",_501NotImplemented:"501 NOT_IMPLEMENTED",_502BadGateway:"502 BAD_GATEWAY",_503ServiceUnavailable:"503 SERVICE_UNAVAILABLE",_504GatewayTimeout:"504 GATEWAY_TIMEOUT",_505HttpVersionNotSupported:"505 HTTP_VERSION_NOT_SUPPORTED",_506VariantAlsoNegotiates:"506 VARIANT_ALSO_NEGOTIATES",_507InsufficientStorage:"507 INSUFFICIENT_STORAGE",_508LoopDetected:"508 LOOP_DETECTED",_509BandwidthLimitExceeded:"509 BANDWIDTH_LIMIT_EXCEEDED",_510NotExtended:"510 NOT_EXTENDED",_511NetworkAuthenticationRequired:"511 NETWORK_AUTHENTICATION_REQUIRED"};function Cs(e){return true}function Js(e){return Zt(e)}function Zt(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),status:e.status==null?void 0:e.status,message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function Fs(e){return vt(e,false)}function vt(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),status:e.status,message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage}}function ws(e){return true}function hn(e){return qt(e)}function qt(e,n){return e==null?e:{category:e.category==null?void 0:e.category,subcategory:e.subcategory==null?void 0:e.subcategory}}function An(e){return jt(e,false)}function jt(e,n=false){return e==null?e:{category:e.category,subcategory:e.subcategory}}function _s(e){return true}function On(e){return er(e)}function er(e,n){return e==null?e:{id:e.id==null?void 0:e.id,createdAt:e.createdAt==null?void 0:new Date(e.createdAt),updatedAt:e.updatedAt==null?void 0:new Date(e.updatedAt),name:e.name==null?void 0:e.name,labels:e.labels==null?void 0:hn(e.labels)}}function Nn(e){return nr(e,false)}function nr(e,n=false){return e==null?e:{id:e.id,createdAt:e.createdAt==null?void 0:e.createdAt.toISOString(),updatedAt:e.updatedAt==null?void 0:e.updatedAt.toISOString(),name:e.name,labels:An(e.labels)}}function Vs(e){return !(!("total"in e)||e.total===void 0||!("data"in e)||e.data===void 0)}function xn(e){return ir(e)}function ir(e,n){return e==null?e:{total:e.total,data:e.data.map(On)}}function Gs(e){return tr(e,false)}function tr(e,n=false){return e==null?e:{total:e.total,data:e.data.map(Nn)}}function Ks(e){return true}function Rn(e){return rr(e)}function rr(e,n){return e==null?e:{id:e.id==null?void 0:e.id,title:e.title==null?void 0:e.title,styleLevel:e.styleLevel==null?void 0:e.styleLevel,loc:e.loc==null?void 0:e.loc,textRaw:e.textRaw==null?void 0:e.textRaw,textRich:e.textRich==null?void 0:e.textRich}}function bn(e){return or(e,false)}function or(e,n=false){return e==null?e:{id:e.id,title:e.title,styleLevel:e.styleLevel,loc:e.loc,textRaw:e.textRaw,textRich:e.textRich}}function js(e){return true}function In(e){return ar(e)}function ar(e,n){return e==null?e:{id:e.id==null?void 0:e.id,scrapedAt:e.scrapedAt==null?void 0:e.scrapedAt,wikiPageId:e.wikiPageId==null?void 0:e.wikiPageId,wikiRevisionId:e.wikiRevisionId==null?void 0:e.wikiRevisionId,wikiRevisionTs:e.wikiRevisionTs==null?void 0:e.wikiRevisionTs,wikiCode:e.wikiCode==null?void 0:e.wikiCode,wikiNamespace:e.wikiNamespace==null?void 0:e.wikiNamespace,wikiTitle:e.wikiTitle==null?void 0:e.wikiTitle,url:e.url==null?void 0:e.url,topImage:e.topImage==null?void 0:e.topImage,wikidataId:e.wikidataId==null?void 0:e.wikidataId,wikidataInstanceOf:e.wikidataInstanceOf==null?void 0:e.wikidataInstanceOf.map(g),redirectTitles:e.redirectTitles==null?void 0:e.redirectTitles,summary:e.summary==null?void 0:e.summary,sections:e.sections==null?void 0:e.sections.map(Rn),categories:e.categories==null?void 0:e.categories,externalLinks:e.externalLinks==null?void 0:e.externalLinks,references:e.references==null?void 0:e.references,pageviews:e.pageviews==null?void 0:e.pageviews}}function kn(e){return lr(e,false)}function lr(e,n=false){return e==null?e:{id:e.id,scrapedAt:e.scrapedAt,wikiPageId:e.wikiPageId,wikiRevisionId:e.wikiRevisionId,wikiRevisionTs:e.wikiRevisionTs,wikiCode:e.wikiCode,wikiNamespace:e.wikiNamespace,wikiTitle:e.wikiTitle,url:e.url,topImage:e.topImage,wikidataId:e.wikidataId,wikidataInstanceOf:e.wikidataInstanceOf==null?void 0:e.wikidataInstanceOf.map(T),redirectTitles:e.redirectTitles,summary:e.summary,sections:e.sections==null?void 0:e.sections.map(bn),categories:e.categories,externalLinks:e.externalLinks,references:e.references,pageviews:e.pageviews}}function np(e){return true}function _(e){return ur(e)}function ur(e,n){return e==null?e:{pageId:e.pageId==null?void 0:e.pageId,sectionId:e.sectionId==null?void 0:e.sectionId,wikiPageId:e.wikiPageId==null?void 0:e.wikiPageId,wikiRevisionId:e.wikiRevisionId==null?void 0:e.wikiRevisionId,wikiCode:e.wikiCode==null?void 0:e.wikiCode,wikiNamespace:e.wikiNamespace==null?void 0:e.wikiNamespace,wikidataId:e.wikidataId==null?void 0:e.wikidataId,wikidataInstanceOfId:e.wikidataInstanceOfId==null?void 0:e.wikidataInstanceOfId,wikidataInstanceOfLabel:e.wikidataInstanceOfLabel==null?void 0:e.wikidataInstanceOfLabel,aND:e.AND==null?void 0:e.AND.map(_),oR:e.OR==null?void 0:e.OR.map(_),nOT:e.NOT==null?void 0:e.NOT.map(_)}}function M(e){return dr(e,false)}function dr(e,n=false){return e==null?e:{pageId:e.pageId,sectionId:e.sectionId,wikiPageId:e.wikiPageId,wikiRevisionId:e.wikiRevisionId,wikiCode:e.wikiCode,wikiNamespace:e.wikiNamespace,wikidataId:e.wikidataId,wikidataInstanceOfId:e.wikidataInstanceOfId,wikidataInstanceOfLabel:e.wikidataInstanceOfLabel,AND:e.aND==null?void 0:e.aND.map(M),OR:e.oR==null?void 0:e.oR.map(M),NOT:e.nOT==null?void 0:e.nOT.map(M)}}function ap(e){return !(!("prompt"in e)||e.prompt===void 0)}function lp(e){return cr(e)}function cr(e,n){return e==null?e:{prompt:e.prompt,filter:e.filter==null?void 0:_(e.filter),wikiRevisionFrom:e.wikiRevisionFrom==null?void 0:new Date(e.wikiRevisionFrom),wikiRevisionTo:e.wikiRevisionTo==null?void 0:new Date(e.wikiRevisionTo),pageviewsFrom:e.pageviewsFrom==null?void 0:e.pageviewsFrom,pageviewsTo:e.pageviewsTo==null?void 0:e.pageviewsTo,size:e.size==null?void 0:e.size,page:e.page==null?void 0:e.page}}function Cn(e){return sr(e,false)}function sr(e,n=false){return e==null?e:{prompt:e.prompt,filter:M(e.filter),wikiRevisionFrom:e.wikiRevisionFrom==null?void 0:e.wikiRevisionFrom.toISOString(),wikiRevisionTo:e.wikiRevisionTo==null?void 0:e.wikiRevisionTo.toISOString(),pageviewsFrom:e.pageviewsFrom,pageviewsTo:e.pageviewsTo,size:e.size,page:e.page}}function pp(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function Jn(e){return pr(e)}function pr(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(In)}}function mp(e){return mr(e,false)}function mr(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(kn)}}function Tp(e){return !(!("status"in e)||e.status===void 0||!("results"in e)||e.results===void 0)}function Fn(e){return yr(e)}function yr(e,n){return e==null?e:{status:e.status,results:e.results.map(sn)}}function hp(e){return fr(e,false)}function fr(e,n=false){return e==null?e:{status:e.status,results:e.results.map(pn)}}var En=class extends U{async getJournalistByIdRaw(n,t){if(n.id==null)throw new O("id",'Required parameter "id" was null or undefined when calling getJournalistById().');let i={},r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/journalists/{id}".replace("{id}",encodeURIComponent(String(n.id))),method:"GET",headers:r,query:i},t);return new u(a,o=>I(o))}async getJournalistById(n,t){return await(await this.getJournalistByIdRaw(n,t)).value()}async searchArticlesRaw(n,t){let i={};n.q!=null&&(i.q=n.q),n.title!=null&&(i.title=n.title),n.desc!=null&&(i.desc=n.desc),n.content!=null&&(i.content=n.content),n.url!=null&&(i.url=n.url),n.articleId!=null&&(i.articleId=n.articleId),n.clusterId!=null&&(i.clusterId=n.clusterId),n.sortBy!=null&&(i.sortBy=n.sortBy),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size),n.from!=null&&(i.from=n.from.toISOString()),n.to!=null&&(i.to=n.to.toISOString()),n.addDateFrom!=null&&(i.addDateFrom=n.addDateFrom.toISOString()),n.addDateTo!=null&&(i.addDateTo=n.addDateTo.toISOString()),n.refreshDateFrom!=null&&(i.refreshDateFrom=n.refreshDateFrom.toISOString()),n.refreshDateTo!=null&&(i.refreshDateTo=n.refreshDateTo.toISOString()),n.medium!=null&&(i.medium=n.medium),n.source!=null&&(i.source=n.source),n.sourceGroup!=null&&(i.sourceGroup=n.sourceGroup),n.excludeSourceGroup!=null&&(i.excludeSourceGroup=n.excludeSourceGroup),n.excludeSource!=null&&(i.excludeSource=n.excludeSource),n.paywall!=null&&(i.paywall=n.paywall),n.byline!=null&&(i.byline=n.byline),n.author!=null&&(i.author=n.author),n.excludeAuthor!=null&&(i.excludeAuthor=n.excludeAuthor),n.journalistId!=null&&(i.journalistId=n.journalistId),n.excludeJournalistId!=null&&(i.excludeJournalistId=n.excludeJournalistId),n.language!=null&&(i.language=n.language),n.excludeLanguage!=null&&(i.excludeLanguage=n.excludeLanguage),n.searchTranslation!=null&&(i.searchTranslation=n.searchTranslation),n.label!=null&&(i.label=n.label),n.excludeLabel!=null&&(i.excludeLabel=n.excludeLabel),n.category!=null&&(i.category=n.category),n.excludeCategory!=null&&(i.excludeCategory=n.excludeCategory),n.topic!=null&&(i.topic=n.topic),n.excludeTopic!=null&&(i.excludeTopic=n.excludeTopic),n.linkTo!=null&&(i.linkTo=n.linkTo),n.showReprints!=null&&(i.showReprints=n.showReprints),n.reprintGroupId!=null&&(i.reprintGroupId=n.reprintGroupId),n.city!=null&&(i.city=n.city),n.excludeCity!=null&&(i.excludeCity=n.excludeCity),n.area!=null&&(i.area=n.area),n.state!=null&&(i.state=n.state),n.excludeState!=null&&(i.excludeState=n.excludeState),n.county!=null&&(i.county=n.county),n.excludeCounty!=null&&(i.excludeCounty=n.excludeCounty),n.locationsCountry!=null&&(i.locationsCountry=n.locationsCountry),n.country!=null&&(i.country=n.country),n.excludeLocationsCountry!=null&&(i.excludeLocationsCountry=n.excludeLocationsCountry),n.location!=null&&(i.location=n.location),n.lat!=null&&(i.lat=n.lat),n.lon!=null&&(i.lon=n.lon),n.maxDistance!=null&&(i.maxDistance=n.maxDistance),n.sourceCity!=null&&(i.sourceCity=n.sourceCity),n.sourceCounty!=null&&(i.sourceCounty=n.sourceCounty),n.sourceCountry!=null&&(i.sourceCountry=n.sourceCountry),n.sourceState!=null&&(i.sourceState=n.sourceState),n.sourceLat!=null&&(i.sourceLat=n.sourceLat),n.sourceLon!=null&&(i.sourceLon=n.sourceLon),n.sourceMaxDistance!=null&&(i.sourceMaxDistance=n.sourceMaxDistance),n.personWikidataId!=null&&(i.personWikidataId=n.personWikidataId),n.excludePersonWikidataId!=null&&(i.excludePersonWikidataId=n.excludePersonWikidataId),n.personName!=null&&(i.personName=n.personName),n.excludePersonName!=null&&(i.excludePersonName=n.excludePersonName),n.companyId!=null&&(i.companyId=n.companyId),n.excludeCompanyId!=null&&(i.excludeCompanyId=n.excludeCompanyId),n.companyName!=null&&(i.companyName=n.companyName),n.companyDomain!=null&&(i.companyDomain=n.companyDomain),n.excludeCompanyDomain!=null&&(i.excludeCompanyDomain=n.excludeCompanyDomain),n.companySymbol!=null&&(i.companySymbol=n.companySymbol),n.excludeCompanySymbol!=null&&(i.excludeCompanySymbol=n.excludeCompanySymbol),n.showNumResults!=null&&(i.showNumResults=n.showNumResults),n.positiveSentimentFrom!=null&&(i.positiveSentimentFrom=n.positiveSentimentFrom),n.positiveSentimentTo!=null&&(i.positiveSentimentTo=n.positiveSentimentTo),n.neutralSentimentFrom!=null&&(i.neutralSentimentFrom=n.neutralSentimentFrom),n.neutralSentimentTo!=null&&(i.neutralSentimentTo=n.neutralSentimentTo),n.negativeSentimentFrom!=null&&(i.negativeSentimentFrom=n.negativeSentimentFrom),n.negativeSentimentTo!=null&&(i.negativeSentimentTo=n.negativeSentimentTo),n.taxonomy!=null&&(i.taxonomy=n.taxonomy),n.prefixTaxonomy!=null&&(i.prefixTaxonomy=n.prefixTaxonomy),n.showHighlighting!=null&&(i.showHighlighting=n.showHighlighting),n.highlightFragmentSize!=null&&(i.highlightFragmentSize=n.highlightFragmentSize),n.highlightNumFragments!=null&&(i.highlightNumFragments=n.highlightNumFragments),n.highlightPreTag!=null&&(i.highlightPreTag=n.highlightPreTag),n.highlightPostTag!=null&&(i.highlightPostTag=n.highlightPostTag),n.highlightQ!=null&&(i.highlightQ=n.highlightQ);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/articles/all",method:"GET",headers:r,query:i},t);return new u(a,o=>un(o))}async searchArticles(n={},t){return await(await this.searchArticlesRaw(n,t)).value()}async searchCompaniesRaw(n,t){let i={};n.id!=null&&(i.id=n.id),n.symbol!=null&&(i.symbol=n.symbol),n.domain!=null&&(i.domain=n.domain),n.country!=null&&(i.country=n.country),n.exchange!=null&&(i.exchange=n.exchange),n.numEmployeesFrom!=null&&(i.numEmployeesFrom=n.numEmployeesFrom),n.numEmployeesTo!=null&&(i.numEmployeesTo=n.numEmployeesTo),n.ipoFrom!=null&&(i.ipoFrom=n.ipoFrom.toISOString()),n.ipoTo!=null&&(i.ipoTo=n.ipoTo.toISOString()),n.q!=null&&(i.q=n.q),n.name!=null&&(i.name=n.name),n.industry!=null&&(i.industry=n.industry),n.sector!=null&&(i.sector=n.sector),n.size!=null&&(i.size=n.size),n.page!=null&&(i.page=n.page);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/companies/all",method:"GET",headers:r,query:i},t);return new u(a,o=>qe(o))}async searchCompanies(n={},t){return await(await this.searchCompaniesRaw(n,t)).value()}async searchJournalistsRaw(n,t){let i={};n.id!=null&&(i.id=n.id),n.q!=null&&(i.q=n.q),n.name!=null&&(i.name=n.name),n.twitter!=null&&(i.twitter=n.twitter),n.size!=null&&(i.size=n.size),n.page!=null&&(i.page=n.page),n.source!=null&&(i.source=n.source),n.topic!=null&&(i.topic=n.topic),n.category!=null&&(i.category=n.category),n.label!=null&&(i.label=n.label),n.minMonthlyPosts!=null&&(i.minMonthlyPosts=n.minMonthlyPosts),n.maxMonthlyPosts!=null&&(i.maxMonthlyPosts=n.maxMonthlyPosts),n.country!=null&&(i.country=n.country),n.updatedAtFrom!=null&&(i.updatedAtFrom=n.updatedAtFrom.toISOString()),n.updatedAtTo!=null&&(i.updatedAtTo=n.updatedAtTo.toISOString()),n.showNumResults!=null&&(i.showNumResults=n.showNumResults);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/journalists/all",method:"GET",headers:r,query:i},t);return new u(a,o=>je(o))}async searchJournalists(n={},t){return await(await this.searchJournalistsRaw(n,t)).value()}async searchPeopleRaw(n,t){let i={};n.name!=null&&(i.name=n.name),n.wikidataId!=null&&(i.wikidataId=n.wikidataId),n.occupationId!=null&&(i.occupationId=n.occupationId),n.occupationLabel!=null&&(i.occupationLabel=n.occupationLabel),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/people/all",method:"GET",headers:r,query:i},t);return new u(a,o=>ln(o))}async searchPeople(n={},t){return await(await this.searchPeopleRaw(n,t)).value()}async searchSourcesRaw(n,t){let i={};n.domain!=null&&(i.domain=n.domain),n.name!=null&&(i.name=n.name),n.sourceGroup!=null&&(i.sourceGroup=n.sourceGroup),n.sortBy!=null&&(i.sortBy=n.sortBy),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size),n.minMonthlyVisits!=null&&(i.minMonthlyVisits=n.minMonthlyVisits),n.maxMonthlyVisits!=null&&(i.maxMonthlyVisits=n.maxMonthlyVisits),n.minMonthlyPosts!=null&&(i.minMonthlyPosts=n.minMonthlyPosts),n.maxMonthlyPosts!=null&&(i.maxMonthlyPosts=n.maxMonthlyPosts),n.country!=null&&(i.country=n.country),n.sourceCountry!=null&&(i.sourceCountry=n.sourceCountry),n.sourceState!=null&&(i.sourceState=n.sourceState),n.sourceCounty!=null&&(i.sourceCounty=n.sourceCounty),n.sourceCity!=null&&(i.sourceCity=n.sourceCity),n.sourceLat!=null&&(i.sourceLat=n.sourceLat),n.sourceLon!=null&&(i.sourceLon=n.sourceLon),n.sourceMaxDistance!=null&&(i.sourceMaxDistance=n.sourceMaxDistance),n.category!=null&&(i.category=n.category),n.topic!=null&&(i.topic=n.topic),n.label!=null&&(i.label=n.label),n.paywall!=null&&(i.paywall=n.paywall),n.showSubdomains!=null&&(i.showSubdomains=n.showSubdomains),n.showNumResults!=null&&(i.showNumResults=n.showNumResults);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/sources/all",method:"GET",headers:r,query:i},t);return new u(a,o=>fn(o))}async searchSources(n={},t){return await(await this.searchSourcesRaw(n,t)).value()}async searchStoriesRaw(n,t){let i={};n.q!=null&&(i.q=n.q),n.name!=null&&(i.name=n.name),n.clusterId!=null&&(i.clusterId=n.clusterId),n.excludeClusterId!=null&&(i.excludeClusterId=n.excludeClusterId),n.sortBy!=null&&(i.sortBy=n.sortBy),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size),n.from!=null&&(i.from=n.from.toISOString()),n.to!=null&&(i.to=n.to.toISOString()),n.initializedFrom!=null&&(i.initializedFrom=n.initializedFrom.toISOString()),n.initializedTo!=null&&(i.initializedTo=n.initializedTo.toISOString()),n.updatedFrom!=null&&(i.updatedFrom=n.updatedFrom.toISOString()),n.updatedTo!=null&&(i.updatedTo=n.updatedTo.toISOString()),n.topic!=null&&(i.topic=n.topic),n.category!=null&&(i.category=n.category),n.taxonomy!=null&&(i.taxonomy=n.taxonomy),n.source!=null&&(i.source=n.source),n.sourceGroup!=null&&(i.sourceGroup=n.sourceGroup),n.minUniqueSources!=null&&(i.minUniqueSources=n.minUniqueSources),n.personWikidataId!=null&&(i.personWikidataId=n.personWikidataId),n.personName!=null&&(i.personName=n.personName),n.companyId!=null&&(i.companyId=n.companyId),n.companyName!=null&&(i.companyName=n.companyName),n.companyDomain!=null&&(i.companyDomain=n.companyDomain),n.companySymbol!=null&&(i.companySymbol=n.companySymbol),n.country!=null&&(i.country=n.country),n.state!=null&&(i.state=n.state),n.city!=null&&(i.city=n.city),n.area!=null&&(i.area=n.area),n.minClusterSize!=null&&(i.minClusterSize=n.minClusterSize),n.maxClusterSize!=null&&(i.maxClusterSize=n.maxClusterSize),n.nameExists!=null&&(i.nameExists=n.nameExists),n.positiveSentimentFrom!=null&&(i.positiveSentimentFrom=n.positiveSentimentFrom),n.positiveSentimentTo!=null&&(i.positiveSentimentTo=n.positiveSentimentTo),n.neutralSentimentFrom!=null&&(i.neutralSentimentFrom=n.neutralSentimentFrom),n.neutralSentimentTo!=null&&(i.neutralSentimentTo=n.neutralSentimentTo),n.negativeSentimentFrom!=null&&(i.negativeSentimentFrom=n.negativeSentimentFrom),n.negativeSentimentTo!=null&&(i.negativeSentimentTo=n.negativeSentimentTo),n.showStoryPageInfo!=null&&(i.showStoryPageInfo=n.showStoryPageInfo),n.showNumResults!=null&&(i.showNumResults=n.showNumResults),n.showDuplicates!=null&&(i.showDuplicates=n.showDuplicates),n.showHighlighting!=null&&(i.showHighlighting=n.showHighlighting),n.highlightFragmentSize!=null&&(i.highlightFragmentSize=n.highlightFragmentSize),n.highlightNumFragments!=null&&(i.highlightNumFragments=n.highlightNumFragments),n.highlightPreTag!=null&&(i.highlightPreTag=n.highlightPreTag),n.highlightPostTag!=null&&(i.highlightPostTag=n.highlightPostTag),n.highlightQ!=null&&(i.highlightQ=n.highlightQ);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/stories/all",method:"GET",headers:r,query:i},t);return new u(a,o=>Sn(o))}async searchStories(n={},t){return await(await this.searchStoriesRaw(n,t)).value()}async searchSummarizerRaw(n,t){if(n.summaryBody==null)throw new O("summaryBody",'Required parameter "summaryBody" was null or undefined when calling searchSummarizer().');let i={};n.q!=null&&(i.q=n.q),n.title!=null&&(i.title=n.title),n.desc!=null&&(i.desc=n.desc),n.content!=null&&(i.content=n.content),n.url!=null&&(i.url=n.url),n.articleId!=null&&(i.articleId=n.articleId),n.clusterId!=null&&(i.clusterId=n.clusterId),n.sortBy!=null&&(i.sortBy=n.sortBy),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size),n.from!=null&&(i.from=n.from.toISOString()),n.to!=null&&(i.to=n.to.toISOString()),n.addDateFrom!=null&&(i.addDateFrom=n.addDateFrom.toISOString()),n.addDateTo!=null&&(i.addDateTo=n.addDateTo.toISOString()),n.refreshDateFrom!=null&&(i.refreshDateFrom=n.refreshDateFrom.toISOString()),n.refreshDateTo!=null&&(i.refreshDateTo=n.refreshDateTo.toISOString()),n.medium!=null&&(i.medium=n.medium),n.source!=null&&(i.source=n.source),n.sourceGroup!=null&&(i.sourceGroup=n.sourceGroup),n.excludeSourceGroup!=null&&(i.excludeSourceGroup=n.excludeSourceGroup),n.excludeSource!=null&&(i.excludeSource=n.excludeSource),n.paywall!=null&&(i.paywall=n.paywall),n.byline!=null&&(i.byline=n.byline),n.author!=null&&(i.author=n.author),n.excludeAuthor!=null&&(i.excludeAuthor=n.excludeAuthor),n.journalistId!=null&&(i.journalistId=n.journalistId),n.excludeJournalistId!=null&&(i.excludeJournalistId=n.excludeJournalistId),n.language!=null&&(i.language=n.language),n.excludeLanguage!=null&&(i.excludeLanguage=n.excludeLanguage),n.searchTranslation!=null&&(i.searchTranslation=n.searchTranslation),n.label!=null&&(i.label=n.label),n.excludeLabel!=null&&(i.excludeLabel=n.excludeLabel),n.category!=null&&(i.category=n.category),n.excludeCategory!=null&&(i.excludeCategory=n.excludeCategory),n.topic!=null&&(i.topic=n.topic),n.excludeTopic!=null&&(i.excludeTopic=n.excludeTopic),n.linkTo!=null&&(i.linkTo=n.linkTo),n.showReprints!=null&&(i.showReprints=n.showReprints),n.reprintGroupId!=null&&(i.reprintGroupId=n.reprintGroupId),n.city!=null&&(i.city=n.city),n.excludeCity!=null&&(i.excludeCity=n.excludeCity),n.area!=null&&(i.area=n.area),n.state!=null&&(i.state=n.state),n.excludeState!=null&&(i.excludeState=n.excludeState),n.county!=null&&(i.county=n.county),n.excludeCounty!=null&&(i.excludeCounty=n.excludeCounty),n.locationsCountry!=null&&(i.locationsCountry=n.locationsCountry),n.country!=null&&(i.country=n.country),n.excludeLocationsCountry!=null&&(i.excludeLocationsCountry=n.excludeLocationsCountry),n.location!=null&&(i.location=n.location),n.lat!=null&&(i.lat=n.lat),n.lon!=null&&(i.lon=n.lon),n.maxDistance!=null&&(i.maxDistance=n.maxDistance),n.sourceCity!=null&&(i.sourceCity=n.sourceCity),n.sourceCounty!=null&&(i.sourceCounty=n.sourceCounty),n.sourceCountry!=null&&(i.sourceCountry=n.sourceCountry),n.sourceState!=null&&(i.sourceState=n.sourceState),n.sourceLat!=null&&(i.sourceLat=n.sourceLat),n.sourceLon!=null&&(i.sourceLon=n.sourceLon),n.sourceMaxDistance!=null&&(i.sourceMaxDistance=n.sourceMaxDistance),n.personWikidataId!=null&&(i.personWikidataId=n.personWikidataId),n.excludePersonWikidataId!=null&&(i.excludePersonWikidataId=n.excludePersonWikidataId),n.personName!=null&&(i.personName=n.personName),n.excludePersonName!=null&&(i.excludePersonName=n.excludePersonName),n.companyId!=null&&(i.companyId=n.companyId),n.excludeCompanyId!=null&&(i.excludeCompanyId=n.excludeCompanyId),n.companyName!=null&&(i.companyName=n.companyName),n.companyDomain!=null&&(i.companyDomain=n.companyDomain),n.excludeCompanyDomain!=null&&(i.excludeCompanyDomain=n.excludeCompanyDomain),n.companySymbol!=null&&(i.companySymbol=n.companySymbol),n.excludeCompanySymbol!=null&&(i.excludeCompanySymbol=n.excludeCompanySymbol),n.showNumResults!=null&&(i.showNumResults=n.showNumResults),n.positiveSentimentFrom!=null&&(i.positiveSentimentFrom=n.positiveSentimentFrom),n.positiveSentimentTo!=null&&(i.positiveSentimentTo=n.positiveSentimentTo),n.neutralSentimentFrom!=null&&(i.neutralSentimentFrom=n.neutralSentimentFrom),n.neutralSentimentTo!=null&&(i.neutralSentimentTo=n.neutralSentimentTo),n.negativeSentimentFrom!=null&&(i.negativeSentimentFrom=n.negativeSentimentFrom),n.negativeSentimentTo!=null&&(i.negativeSentimentTo=n.negativeSentimentTo),n.taxonomy!=null&&(i.taxonomy=n.taxonomy),n.prefixTaxonomy!=null&&(i.prefixTaxonomy=n.prefixTaxonomy),n.showHighlighting!=null&&(i.showHighlighting=n.showHighlighting),n.highlightFragmentSize!=null&&(i.highlightFragmentSize=n.highlightFragmentSize),n.highlightNumFragments!=null&&(i.highlightNumFragments=n.highlightNumFragments),n.highlightPreTag!=null&&(i.highlightPreTag=n.highlightPreTag),n.highlightPostTag!=null&&(i.highlightPostTag=n.highlightPostTag),n.highlightQ!=null&&(i.highlightQ=n.highlightQ);let r={};if(r["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/summarize",method:"POST",headers:r,query:i,body:gn(n.summaryBody)},t);return new u(a,o=>Tn(o))}async searchSummarizer(n,t){return await(await this.searchSummarizerRaw(n,t)).value()}async searchTopicsRaw(n,t){let i={};n.name!=null&&(i.name=n.name),n.category!=null&&(i.category=n.category),n.subcategory!=null&&(i.subcategory=n.subcategory),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/topics/all",method:"GET",headers:r,query:i},t);return new u(a,o=>xn(o))}async searchTopics(n={},t){return await(await this.searchTopicsRaw(n,t)).value()}async searchWikipediaRaw(n,t){let i={};n.q!=null&&(i.q=n.q),n.title!=null&&(i.title=n.title),n.summary!=null&&(i.summary=n.summary),n.text!=null&&(i.text=n.text),n.reference!=null&&(i.reference=n.reference),n.id!=null&&(i.id=n.id),n.wikiPageId!=null&&(i.wikiPageId=n.wikiPageId),n.wikiRevisionId!=null&&(i.wikiRevisionId=n.wikiRevisionId),n.wikiCode!=null&&(i.wikiCode=n.wikiCode),n.wikiNamespace!=null&&(i.wikiNamespace=n.wikiNamespace),n.wikidataId!=null&&(i.wikidataId=n.wikidataId),n.wikidataInstanceOfId!=null&&(i.wikidataInstanceOfId=n.wikidataInstanceOfId),n.wikidataInstanceOfLabel!=null&&(i.wikidataInstanceOfLabel=n.wikidataInstanceOfLabel),n.category!=null&&(i.category=n.category),n.sectionId!=null&&(i.sectionId=n.sectionId),n.wikiRevisionFrom!=null&&(i.wikiRevisionFrom=n.wikiRevisionFrom.toISOString()),n.wikiRevisionTo!=null&&(i.wikiRevisionTo=n.wikiRevisionTo.toISOString()),n.scrapedAtFrom!=null&&(i.scrapedAtFrom=n.scrapedAtFrom.toISOString()),n.scrapedAtTo!=null&&(i.scrapedAtTo=n.scrapedAtTo.toISOString()),n.pageviewsFrom!=null&&(i.pageviewsFrom=n.pageviewsFrom),n.pageviewsTo!=null&&(i.pageviewsTo=n.pageviewsTo),n.withPageviews!=null&&(i.withPageviews=n.withPageviews),n.showNumResults!=null&&(i.showNumResults=n.showNumResults),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size),n.sortBy!=null&&(i.sortBy=n.sortBy);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/wikipedia/all",method:"GET",headers:r,query:i},t);return new u(a,o=>Jn(o))}async searchWikipedia(n={},t){return await(await this.searchWikipediaRaw(n,t)).value()}async vectorSearchArticlesRaw(n,t){if(n.articleSearchParams==null)throw new O("articleSearchParams",'Required parameter "articleSearchParams" was null or undefined when calling vectorSearchArticles().');let i={},r={};if(r["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/vector/news/all",method:"POST",headers:r,query:i,body:Ve(n.articleSearchParams)},t);return new u(a,o=>Ke(o))}async vectorSearchArticles(n,t){return await(await this.vectorSearchArticlesRaw(n,t)).value()}async vectorSearchWikipediaRaw(n,t){if(n.wikipediaSearchParams==null)throw new O("wikipediaSearchParams",'Required parameter "wikipediaSearchParams" was null or undefined when calling vectorSearchWikipedia().');let i={},r={};if(r["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/vector/wikipedia/all",method:"POST",headers:r,query:i,body:Cn(n.wikipediaSearchParams)},t);return new u(a,o=>Fn(o))}async vectorSearchWikipedia(n,t){return await(await this.vectorSearchWikipediaRaw(n,t)).value()}};
|
|
2
|
-
export{ue as AllEndpointSortBy,Or as AllEndpointSortByFromJSON,Mn as AllEndpointSortByFromJSONTyped,Nr as AllEndpointSortByToJSON,xr as AllEndpointSortByToJSONTyped,h as ArticleFromJSON,Li as ArticleFromJSONTyped,H as ArticleSearchFilterFromJSON,Bi as ArticleSearchFilterFromJSONTyped,D as ArticleSearchFilterToJSON,Ui as ArticleSearchFilterToJSONTyped,wl as ArticleSearchParamsFromJSON,zi as ArticleSearchParamsFromJSONTyped,Ve as ArticleSearchParamsToJSON,Vi as ArticleSearchParamsToJSONTyped,A as ArticleToJSON,Wi as ArticleToJSONTyped,Ke as ArticlesVectorSearchResultFromJSON,Ki as ArticlesVectorSearchResultFromJSONTyped,Gl as ArticlesVectorSearchResultToJSON,Pi as ArticlesVectorSearchResultToJSONTyped,s as AuthExceptionCauseFromJSON,Xi as AuthExceptionCauseFromJSONTyped,d as AuthExceptionCauseStackTraceInnerFromJSON,Yi as AuthExceptionCauseStackTraceInnerFromJSONTyped,c as AuthExceptionCauseStackTraceInnerToJSON,$i as AuthExceptionCauseStackTraceInnerToJSONTyped,p as AuthExceptionCauseToJSON,Zi as AuthExceptionCauseToJSONTyped,yu as AuthExceptionFromJSON,ji as AuthExceptionFromJSONTyped,pu as AuthExceptionStatusCodeEnum,m as AuthExceptionSuppressedInnerFromJSON,vi as AuthExceptionSuppressedInnerFromJSONTyped,y as AuthExceptionSuppressedInnerToJSON,qi as AuthExceptionSuppressedInnerToJSONTyped,fu as AuthExceptionToJSON,et as AuthExceptionToJSONTyped,Hn as BASE_PATH,U as BaseAPI,ye as BlobApiResponse,Sr as COLLECTION_FORMATS,J as CategoryHolderFromJSON,ni as CategoryHolderFromJSONTyped,F as CategoryHolderToJSON,ii as CategoryHolderToJSONTyped,We as CategoryWithScoreHolderFromJSON,Ji as CategoryWithScoreHolderFromJSONTyped,_e as CategoryWithScoreHolderToJSON,Fi as CategoryWithScoreHolderToJSONTyped,Ie as CompanyCountFromJSON,mi as CompanyCountFromJSONTyped,ke as CompanyCountToJSON,yi as CompanyCountToJSONTyped,Ze as CompanyFromJSON,ot as CompanyFromJSONTyped,X as CompanyHolderFromJSON,vn as CompanyHolderFromJSONTyped,Z as CompanyHolderToJSON,qn as CompanyHolderToJSONTyped,qe as CompanySearchResultFromJSON,lt as CompanySearchResultFromJSONTyped,Hu as CompanySearchResultToJSON,ut as CompanySearchResultToJSONTyped,ve as CompanyToJSON,at as CompanyToJSONTyped,oe as Configuration,de as CoordinateFilterFromJSON,_i as CoordinateFilterFromJSONTyped,ce as CoordinateFilterToJSON,Mi as CoordinateFilterToJSONTyped,G as CoordinateFromJSON,Kn as CoordinateFromJSONTyped,Q as CoordinateToJSON,Pn as CoordinateToJSONTyped,Dn as DefaultConfig,Te as EntityHolderFromJSON,jn as EntityHolderFromJSONTyped,he as EntityHolderToJSON,ei as EntityHolderToJSONTyped,De as EventTypeHolderFromJSON,ki as EventTypeHolderFromJSONTyped,Le as EventTypeHolderToJSON,Ci as EventTypeHolderToJSONTyped,le as FetchError,Ue as IdNameHolderFromJSON,Hi as IdNameHolderFromJSONTyped,ze as IdNameHolderToJSON,Di as IdNameHolderToJSONTyped,Ku as IllegalParameterExceptionFromJSON,dt as IllegalParameterExceptionFromJSONTyped,Pu as IllegalParameterExceptionToJSON,ct as IllegalParameterExceptionToJSONTyped,k as ImageHolderFromJSON,st as ImageHolderFromJSONTyped,C as ImageHolderToJSON,pt as ImageHolderToJSONTyped,ad as InternalErrorExceptionFromJSON,mt as InternalErrorExceptionFromJSONTyped,ld as InternalErrorExceptionToJSON,yt as InternalErrorExceptionToJSONTyped,u as JSONApiResponse,I as JournalistFromJSON,Gn as JournalistFromJSONTyped,je as JournalistSearchResultFromJSON,ft as JournalistSearchResultFromJSONTyped,md as JournalistSearchResultToJSON,St as JournalistSearchResultToJSONTyped,V as JournalistToJSON,Qn as JournalistToJSONTyped,Ce as KeyPointFromJSON,fi as KeyPointFromJSONTyped,Je as KeyPointToJSON,Si as KeyPointToJSONTyped,we as KeywordHolderFromJSON,bi as KeywordHolderFromJSONTyped,He as KeywordHolderToJSON,Ii as KeywordHolderToJSONTyped,Ae as LabelHolderFromJSON,oi as LabelHolderFromJSONTyped,Oe as LabelHolderToJSON,ai as LabelHolderToJSONTyped,Re as LocationCountFromJSON,si as LocationCountFromJSONTyped,be as LocationCountToJSON,pi as LocationCountToJSONTyped,R as LocationHolderFromJSON,zn as LocationHolderFromJSONTyped,b as LocationHolderToJSON,Vn as LocationHolderToJSONTyped,N as NameCountFromJSON,Bn as NameCountFromJSONTyped,x as NameCountToJSON,Un as NameCountToJSONTyped,te as NewsClusterFromJSON,xi as NewsClusterFromJSONTyped,re as NewsClusterToJSON,Ri as NewsClusterToJSONTyped,bd as NotFoundExceptionFromJSON,gt as NotFoundExceptionFromJSONTyped,Id as NotFoundExceptionToJSON,Tt as NotFoundExceptionToJSONTyped,ln as PeopleSearchResultFromJSON,Jt as PeopleSearchResultFromJSONTyped,pc as PeopleSearchResultToJSON,Ft as PeopleSearchResultToJSONTyped,Ne as PersonCountFromJSON,di as PersonCountFromJSONTyped,xe as PersonCountToJSON,ci as PersonCountToJSONTyped,on as PersonFromJSON,kt as PersonFromJSONTyped,v as PersonHolderFromJSON,ti as PersonHolderFromJSONTyped,q as PersonHolderToJSON,ri as PersonHolderToJSONTyped,an as PersonToJSON,Ct as PersonToJSONTyped,Me as PlaceFromJSON,Ei as PlaceFromJSONTyped,Be as PlaceToJSON,wi as PlaceToJSONTyped,un as QuerySearchResultFromJSON,Et as QuerySearchResultFromJSONTyped,Tc as QuerySearchResultToJSON,wt as QuerySearchResultToJSONTyped,Fe as QuestionFromJSON,hi as QuestionFromJSONTyped,Ee as QuestionToJSON,Ai as QuestionToJSONTyped,E as RecordStatHolderFromJSON,li as RecordStatHolderFromJSONTyped,w as RecordStatHolderToJSON,ui as RecordStatHolderToJSONTyped,O as RequiredError,ae as ResponseError,Ge as ScoredDataArticleFromJSON,Gi as ScoredDataArticleFromJSONTyped,Qe as ScoredDataArticleToJSON,Qi as ScoredDataArticleToJSONTyped,sn as ScoredDataWikiDataFromJSON,Lt as ScoredDataWikiDataFromJSONTyped,pn as ScoredDataWikiDataToJSON,Wt as ScoredDataWikiDataToJSONTyped,ne as SentimentHolderFromJSON,Oi as SentimentHolderFromJSONTyped,ie as SentimentHolderToJSON,Ni as SentimentHolderToJSONTyped,se as SortBy,Ec as SortByFromJSON,_t as SortByFromJSONTyped,wc as SortByToJSON,Hc as SortByToJSONTyped,mn as SourceFromJSON,Ut as SourceFromJSONTyped,Y as SourceHolderFromJSON,Xn as SourceHolderFromJSONTyped,$ as SourceHolderToJSON,Zn as SourceHolderToJSONTyped,K as SourceLocationFromJSON,Yn as SourceLocationFromJSONTyped,P as SourceLocationToJSON,$n as SourceLocationToJSONTyped,fn as SourceSearchResultFromJSON,Vt as SourceSearchResultFromJSONTyped,qc as SourceSearchResultToJSON,Gt as SourceSearchResultToJSONTyped,yn as SourceToJSON,zt as SourceToJSONTyped,L as SourceTopStatHolderFromJSON,Mt as SourceTopStatHolderFromJSONTyped,W as SourceTopStatHolderToJSON,Bt as SourceTopStatHolderToJSONTyped,Sn as StorySearchResultFromJSON,Qt as StorySearchResultFromJSONTyped,rs as StorySearchResultToJSON,Kt as StorySearchResultToJSONTyped,cs as SummaryBodyFromJSON,Pt as SummaryBodyFromJSONTyped,ls as SummaryBodyMethodEnum,us as SummaryBodyModelEnum,as as SummaryBodySummarizeFieldsEnum,gn as SummaryBodyToJSON,Yt as SummaryBodyToJSONTyped,Tn as SummarySearchResultFromJSON,$t as SummarySearchResultFromJSONTyped,Ss as SummarySearchResultToJSON,Xt as SummarySearchResultToJSONTyped,Pe as SymbolHolderFromJSON,nt as SymbolHolderFromJSONTyped,Ye as SymbolHolderToJSON,it as SymbolHolderToJSONTyped,fe as TextApiResponse,Js as TooManyRequestsExceptionFromJSON,Zt as TooManyRequestsExceptionFromJSONTyped,ks as TooManyRequestsExceptionStatusEnum,Fs as TooManyRequestsExceptionToJSON,vt as TooManyRequestsExceptionToJSONTyped,On as TopicDtoFromJSON,er as TopicDtoFromJSONTyped,Nn as TopicDtoToJSON,nr as TopicDtoToJSONTyped,j as TopicHolderFromJSON,gi as TopicHolderFromJSONTyped,ee as TopicHolderToJSON,Ti as TopicHolderToJSONTyped,hn as TopicLabelsFromJSON,qt as TopicLabelsFromJSONTyped,An as TopicLabelsToJSON,jt as TopicLabelsToJSONTyped,xn as TopicSearchResultFromJSON,ir as TopicSearchResultFromJSONTyped,Gs as TopicSearchResultToJSON,tr as TopicSearchResultToJSONTyped,En as V1Api,me as VoidApiResponse,$e as WebResourcesFromJSON,tt as WebResourcesFromJSONTyped,Xe as WebResourcesToJSON,rt as WebResourcesToJSONTyped,dn as WikiDataFromJSON,Ht as WikiDataFromJSONTyped,cn as WikiDataToJSON,Dt as WikiDataToJSONTyped,In as WikiPageFromJSON,ar as WikiPageFromJSONTyped,Rn as WikiPageSectionHolderFromJSON,rr as WikiPageSectionHolderFromJSONTyped,bn as WikiPageSectionHolderToJSON,or as WikiPageSectionHolderToJSONTyped,kn as WikiPageToJSON,lr as WikiPageToJSONTyped,f as WikidataDateHolderFromJSON,ht as WikidataDateHolderFromJSONTyped,S as WikidataDateHolderToJSON,At as WikidataDateHolderToJSONTyped,g as WikidataLabelHolderFromJSON,xt as WikidataLabelHolderFromJSONTyped,T as WikidataLabelHolderToJSON,Rt as WikidataLabelHolderToJSONTyped,en as WikidataPoliticalPartyHolderFromJSON,Ot as WikidataPoliticalPartyHolderFromJSONTyped,nn as WikidataPoliticalPartyHolderToJSON,Nt as WikidataPoliticalPartyHolderToJSONTyped,tn as WikidataPositionHolderFromJSON,bt as WikidataPositionHolderFromJSONTyped,rn as WikidataPositionHolderToJSON,It as WikidataPositionHolderToJSONTyped,_ as WikipediaSearchFilterFromJSON,ur as WikipediaSearchFilterFromJSONTyped,M as WikipediaSearchFilterToJSON,dr as WikipediaSearchFilterToJSONTyped,lp as WikipediaSearchParamsFromJSON,cr as WikipediaSearchParamsFromJSONTyped,Cn as WikipediaSearchParamsToJSON,sr as WikipediaSearchParamsToJSONTyped,Jn as WikipediaSearchResultFromJSON,pr as WikipediaSearchResultFromJSONTyped,mp as WikipediaSearchResultToJSON,mr as WikipediaSearchResultToJSONTyped,Fn as WikipediaVectorSearchResultFromJSON,yr as WikipediaVectorSearchResultFromJSONTyped,hp as WikipediaVectorSearchResultToJSON,fr as WikipediaVectorSearchResultToJSONTyped,hr as canConsumeForm,gr as exists,Ar as instanceOfAllEndpointSortBy,hl as instanceOfArticle,Il as instanceOfArticleSearchFilter,El as instanceOfArticleSearchParams,Vl as instanceOfArticlesVectorSearchResult,mu as instanceOfAuthException,Zl as instanceOfAuthExceptionCause,Kl as instanceOfAuthExceptionCauseStackTraceInner,nu as instanceOfAuthExceptionSuppressedInner,jr as instanceOfCategoryHolder,Sa as instanceOfCategoryWithScoreHolder,ku as instanceOfCompany,po as instanceOfCompanyCount,Xr as instanceOfCompanyHolder,wu as instanceOfCompanySearchResult,_r as instanceOfCoordinate,Ol as instanceOfCoordinateFilter,vr as instanceOfEntityHolder,ya as instanceOfEventTypeHolder,xa as instanceOfIdNameHolder,Qu as instanceOfIllegalParameterException,$u as instanceOfImageHolder,od as instanceOfInternalErrorException,Lr as instanceOfJournalist,pd as instanceOfJournalistSearchResult,yo as instanceOfKeyPoint,pa as instanceOfKeywordHolder,to as instanceOfLabelHolder,co as instanceOfLocationCount,kr as instanceOfLocationHolder,br as instanceOfNameCount,ca as instanceOfNewsCluster,Rd as instanceOfNotFoundException,sc as instanceOfPeopleSearchResult,ac as instanceOfPerson,lo as instanceOfPersonCount,no as instanceOfPersonHolder,Oa as instanceOfPlace,gc as instanceOfQuerySearchResult,To as instanceOfQuestion,oo as instanceOfRecordStatHolder,_l as instanceOfScoredDataArticle,Cc as instanceOfScoredDataWikiData,Ao as instanceOfSentimentHolder,Fc as instanceOfSortBy,Pc as instanceOfSource,Yr as instanceOfSourceHolder,Vr as instanceOfSourceLocation,vc as instanceOfSourceSearchResult,Lc as instanceOfSourceTopStatHolder,ts as instanceOfStorySearchResult,ds as instanceOfSummaryBody,fs as instanceOfSummarySearchResult,gu as instanceOfSymbolHolder,Cs as instanceOfTooManyRequestsException,_s as instanceOfTopicDto,So as instanceOfTopicHolder,ws as instanceOfTopicLabels,Vs as instanceOfTopicSearchResult,hu as instanceOfWebResources,xc as instanceOfWikiData,js as instanceOfWikiPage,Ks as instanceOfWikiPageSectionHolder,Cd as instanceOfWikidataDateHolder,Ld as instanceOfWikidataLabelHolder,Hd as instanceOfWikidataPoliticalPartyHolder,Gd as instanceOfWikidataPositionHolder,np as instanceOfWikipediaSearchFilter,ap as instanceOfWikipediaSearchParams,pp as instanceOfWikipediaSearchResult,Tp as instanceOfWikipediaVectorSearchResult,Tr as mapValues,Se as querystring};//# sourceMappingURL=index.js.map
|
|
1
|
+
import {z as z$1}from'zod';var dt="https://api.perigon.io".replace(/\/+$/,""),P=class{constructor(a={}){this.configuration=a;}set config(a){this.configuration=a;}get basePath(){return dt}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||L}get accessToken(){let a=this.configuration.apiKey;return a?typeof a=="function"?a:async()=>a:void 0}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}},ht=new P,E=class E{constructor(a=ht){this.configuration=a;this.fetchApi=async(a,n)=>{let r={url:a,init:n};for(let i of this.middleware)i.pre&&(r=await i.pre({fetch:this.fetchApi,...r})||r);let s;try{s=await(this.configuration.fetchApi||fetch)(r.url,r.init);}catch(i){for(let u of this.middleware)u.onError&&(s=await u.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:i,response:s?s.clone():void 0})||s);if(s===void 0)throw i instanceof Error?new N(i,"The request failed and the interceptors did not return an alternative response"):i}for(let i of this.middleware)i.post&&(s=await i.post({fetch:this.fetchApi,url:r.url,init:r.init,response:s.clone()})||s);return s};this.middleware=a.middleware;}withMiddleware(...a){let n=this.clone();return n.middleware=n.middleware.concat(...a),n}withPreMiddleware(...a){let n=a.map(r=>({pre:r}));return this.withMiddleware(...n)}withPostMiddleware(...a){let n=a.map(r=>({post:r}));return this.withMiddleware(...n)}isJsonMime(a){return a?E.jsonRegex.test(a):false}async request(a,n){let{url:r,init:s}=await this.createFetchParams(a,n),i=await this.fetchApi(r,s);if(i&&i.status>=200&&i.status<300)return i;throw new O(i,"Response returned an error code")}async createFetchParams(a,n){let r=this.configuration.basePath+a.path;a.query!==void 0&&Object.keys(a.query).length!==0&&(r+="?"+this.configuration.queryParamsStringify(a.query));let s=Object.assign({},this.configuration.headers,a.headers);Object.keys(s).forEach(k=>s[k]===void 0?delete s[k]:{});let i=typeof n=="function"?n:async()=>n,u={method:a.method,headers:s,body:a.body,credentials:this.configuration.credentials},l={...u,...await i({init:u,context:a})},p;ft(l.body)||l.body instanceof URLSearchParams||St(l.body)?p=l.body:this.isJsonMime(s["Content-Type"])?p=JSON.stringify(l.body):p=l.body;let c={...l,body:p};return {url:r,init:c}}clone(){let a=this.constructor,n=new a(this.configuration);return n.middleware=this.middleware.slice(),n}};E.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");var R=E;function St(o){return typeof Blob<"u"&&o instanceof Blob}function ft(o){return typeof FormData<"u"&&o instanceof FormData}var O=class extends Error{constructor(n,r){super(r);this.response=n;this.name="ResponseError";}},N=class extends Error{constructor(n,r){super(r);this.cause=n;this.name="FetchError";}},_=class extends Error{constructor(n,r){super(r);this.field=n;this.name="RequiredError";}},ce={csv:",",ssv:" ",tsv:" ",pipes:"|"};function L(o,a=""){return Object.keys(o).map(n=>U(n,o[n],a)).filter(n=>n.length>0).join("&")}function U(o,a,n=""){let r=n+(n.length?`[${o}]`:o);if(a instanceof Array){let s=a.map(i=>encodeURIComponent(String(i))).join(`&${encodeURIComponent(r)}=`);return `${encodeURIComponent(r)}=${s}`}if(a instanceof Set){let s=Array.from(a);return U(o,s,n)}return a instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(a.toISOString())}`:a instanceof Object?L(a,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(a))}`}function ue(o,a){let n=o[a];return n!=null}function y(o){if(o!==null){if(Array.isArray(o))return o.map(y);if(typeof o=="object"&&o!==null){let a={};for(let[n,r]of Object.entries(o))a[n]=y(r);return a}return o}}function ye(o,a){let n={};for(let r of Object.keys(o))n[r]=a(o[r]);return n}function me(o){for(let a of o)if(a.contentType==="multipart/form-data")return true;return false}var m=class{constructor(a,n=r=>r){this.raw=a;this.transformer=n;}async value(){return this.transformer(await this.raw.json())}},H=class{constructor(a){this.raw=a;}async value(){}},q=class{constructor(a){this.raw=a;}async value(){return await this.raw.blob()}},z=class{constructor(a){this.raw=a;}async value(){return await this.raw.text()}};var de=z$1.enum(["createdAt","updatedAt","relevance","count","totalCount"]),he={CreatedAt:"createdAt",UpdatedAt:"updatedAt",Relevance:"relevance",Count:"count",TotalCount:"totalCount"},Se=z$1.enum(["relevance","date","reverseDate","reverseAddDate","addDate","pubDate","refreshDate"]),fe={Relevance:"relevance",Date:"date",ReverseDate:"reverseDate",ReverseAddDate:"reverseAddDate",AddDate:"addDate",PubDate:"pubDate",RefreshDate:"refreshDate"},C=z$1.object({name:z$1.string().optional()}),Rt=z$1.object({name:z$1.string().optional(),score:z$1.number().optional()}),j=z$1.object({id:z$1.string().optional(),name:z$1.string().optional(),domains:z$1.array(z$1.string()).optional(),symbols:z$1.array(z$1.string()).optional()}),Et=z$1.object({data:z$1.string().optional(),type:z$1.string().optional(),mentions:z$1.number().optional()}),xt=z$1.object({name:z$1.string().optional(),type:z$1.string().optional()}),bt=z$1.object({id:z$1.string().optional(),name:z$1.string().optional()}),D=z$1.object({country:z$1.string().optional(),state:z$1.string().optional(),county:z$1.string().optional(),city:z$1.string().optional(),area:z$1.string().optional()}),h=z$1.object({name:z$1.string().optional(),count:z$1.number().optional()}),A=z$1.object({id:z$1.string().optional(),name:z$1.string().optional(),fullName:z$1.string().optional(),headline:z$1.string().optional(),description:z$1.string().optional(),title:z$1.string().optional(),locations:z$1.array(D).optional(),updatedAt:z$1.string().optional(),topTopics:z$1.array(h).optional(),topSources:z$1.array(h).optional(),topCategories:z$1.array(h).optional(),topLabels:z$1.array(h).optional(),topCountries:z$1.array(h).optional(),avgMonthlyPosts:z$1.number().optional(),twitterHandle:z$1.string().optional(),twitterBio:z$1.string().optional(),imageUrl:z$1.string().optional(),linkedinUrl:z$1.string().optional(),linkedinConnections:z$1.number().optional(),linkedinFollowers:z$1.number().optional(),facebookUrl:z$1.string().optional(),instagramUrl:z$1.string().optional(),websiteUrl:z$1.string().optional(),blogUrl:z$1.string().optional(),tumblrUrl:z$1.string().optional(),youtubeUrl:z$1.string().optional()}),It=z$1.object({name:z$1.string().optional(),weight:z$1.number().optional()}),At=z$1.object({name:z$1.string().optional()}),Pt=z$1.object({id:z$1.string().optional(),name:z$1.string().optional(),domains:z$1.array(z$1.string()).optional(),symbols:z$1.array(z$1.string()).optional(),count:z$1.number().optional()}),Ot=z$1.object({point:z$1.string().optional(),references:z$1.array(z$1.string()).optional()}),Nt=z$1.object({state:z$1.string().optional(),county:z$1.string().optional(),city:z$1.string().optional(),area:z$1.string().optional(),count:z$1.number().optional()}),Ct=z$1.object({wikidataId:z$1.string().optional(),name:z$1.string().optional(),count:z$1.number().optional()}),M=z$1.object({wikidataId:z$1.string().optional(),name:z$1.string().optional()}),Dt=z$1.object({question:z$1.string().optional(),answer:z$1.string().optional(),references:z$1.array(z$1.string()).optional()}),x=z$1.object({name:z$1.string().optional(),count:z$1.number().optional()}),W=z$1.object({positive:z$1.number().optional(),negative:z$1.number().optional(),neutral:z$1.number().optional()}),B=z$1.object({lat:z$1.number().optional(),lon:z$1.number().optional()}),v=z$1.object({country:z$1.string().optional(),state:z$1.string().optional(),county:z$1.string().optional(),city:z$1.string().optional(),coordinates:B.optional()}),G=z$1.object({domain:z$1.string().optional(),paywall:z$1.boolean().optional(),location:v.optional()}),Q=z$1.object({name:z$1.string().optional()}),V=z$1.object({createdAt:z$1.string().optional(),updatedAt:z$1.string().optional(),initializedAt:z$1.string().optional(),id:z$1.string().optional(),duplicateOf:z$1.string().optional(),slug:z$1.string().optional(),name:z$1.string().optional(),summary:z$1.string().optional(),shortSummary:z$1.string().optional(),summaryReferences:z$1.array(z$1.string()).optional(),imageSource:G.optional(),imageUrl:z$1.string().optional(),keyPoints:z$1.array(Ot).optional(),questions:z$1.array(Dt).optional(),uniqueSources:z$1.array(z$1.string()).optional(),selectedArticles:z$1.array(z$1.never()).optional(),sentiment:W.optional(),uniqueCount:z$1.number().optional(),reprintCount:z$1.number().optional(),totalCount:z$1.number().optional(),countries:z$1.array(x).optional(),topCountries:z$1.array(z$1.string()).optional(),topics:z$1.array(x).optional(),topTopics:z$1.array(Q).optional(),categories:z$1.array(x).optional(),topCategories:z$1.array(C).optional(),taxonomies:z$1.array(x).optional(),topTaxonomies:z$1.array(C).optional(),people:z$1.array(Ct).optional(),topPeople:z$1.array(M).optional(),companies:z$1.array(Pt).optional(),topCompanies:z$1.array(j).optional(),locations:z$1.array(Nt).optional(),topLocations:z$1.array(D).optional(),highlights:z$1.record(z$1.string(),z$1.array(z$1.string())).optional()}),wt=z$1.object({osmId:z$1.string().optional(),road:z$1.string().optional(),quarter:z$1.string().optional(),suburb:z$1.string().optional(),city:z$1.string().optional(),town:z$1.string().optional(),county:z$1.string().optional(),stateDistrict:z$1.string().optional(),state:z$1.string().optional(),postcode:z$1.string().optional(),country:z$1.string().optional(),countryCode:z$1.string().optional(),amenity:z$1.string().optional(),neighbourhood:z$1.string().optional(),coordinates:B.optional()}),w=z$1.object({url:z$1.string().optional(),authorsByline:z$1.string().optional(),articleId:z$1.string().optional(),clusterId:z$1.string().optional(),source:G.optional(),imageUrl:z$1.string().optional(),country:z$1.string().optional(),language:z$1.string().optional(),pubDate:z$1.string().optional(),addDate:z$1.string().optional(),refreshDate:z$1.string().optional(),score:z$1.number().optional(),title:z$1.string().optional(),description:z$1.string().optional(),content:z$1.string().optional(),medium:z$1.string().optional(),links:z$1.array(z$1.string()).optional(),labels:z$1.array(At).optional(),eventTypes:z$1.array(xt).optional(),matchedAuthors:z$1.array(bt).optional(),claim:z$1.string().optional(),verdict:z$1.string().optional(),keywords:z$1.array(It).optional(),topics:z$1.array(Q).optional(),categories:z$1.array(C).optional(),taxonomies:z$1.array(Rt).optional(),entities:z$1.array(Et).optional(),companies:z$1.array(j).optional(),sentiment:W.optional(),summary:z$1.string().optional(),shortSummary:z$1.string().optional(),translation:z$1.string().optional(),translatedTitle:z$1.string().optional(),translatedDescription:z$1.string().optional(),translatedSummary:z$1.string().optional(),locations:z$1.array(D).optional(),reprint:z$1.boolean().optional(),reprintGroupId:z$1.string().optional(),places:z$1.array(wt).optional(),people:z$1.array(M).optional(),cluster:V.optional(),journalists:z$1.array(A).optional(),highlights:z$1.record(z$1.string(),z$1.array(z$1.string())).optional()}),F=z$1.object({lat:z$1.number().optional(),lon:z$1.number().optional(),radius:z$1.number().optional()}),kt=z$1.object({articleId:z$1.array(z$1.string()).optional(),clusterId:z$1.array(z$1.string()).optional(),source:z$1.array(z$1.string()).optional(),excludeSource:z$1.array(z$1.string()).optional(),sourceGroup:z$1.array(z$1.string()).optional(),language:z$1.array(z$1.string()).optional(),excludeLanguage:z$1.array(z$1.string()).optional(),label:z$1.array(z$1.string()).optional(),excludeLabel:z$1.array(z$1.string()).optional(),taxonomy:z$1.array(z$1.string()).optional(),category:z$1.array(z$1.string()).optional(),topic:z$1.array(z$1.string()).optional(),excludeTopic:z$1.array(z$1.string()).optional(),country:z$1.array(z$1.string()).optional(),excludeCountry:z$1.array(z$1.string()).optional(),locationsCountry:z$1.array(z$1.string()).optional(),excludeLocationsCountry:z$1.array(z$1.string()).optional(),state:z$1.array(z$1.string()).optional(),excludeState:z$1.array(z$1.string()).optional(),county:z$1.array(z$1.string()).optional(),excludeCounty:z$1.array(z$1.string()).optional(),city:z$1.array(z$1.string()).optional(),excludeCity:z$1.array(z$1.string()).optional(),sourceCountry:z$1.array(z$1.string()).optional(),sourceState:z$1.array(z$1.string()).optional(),sourceCounty:z$1.array(z$1.string()).optional(),sourceCity:z$1.array(z$1.string()).optional(),coordinates:F.optional(),sourceCoordinates:F.optional(),companyId:z$1.array(z$1.string()).optional(),excludeCompanyId:z$1.array(z$1.string()).optional(),companyDomain:z$1.array(z$1.string()).optional(),excludeCompanyDomain:z$1.array(z$1.string()).optional(),companySymbol:z$1.array(z$1.string()).optional(),excludeCompanySymbol:z$1.array(z$1.string()).optional(),companyName:z$1.array(z$1.string()).optional(),personWikidataId:z$1.array(z$1.string()).optional(),excludePersonWikidataId:z$1.array(z$1.string()).optional(),personName:z$1.array(z$1.string()).optional(),excludePersonName:z$1.array(z$1.string()).optional(),AND:z$1.array(z$1.never()).optional(),OR:z$1.array(z$1.never()).optional(),NOT:z$1.array(z$1.never()).optional()}),Te=z$1.object({prompt:z$1.string(),filter:kt.optional(),pubDateFrom:z$1.string().optional(),pubDateTo:z$1.string().optional(),showReprints:z$1.boolean().optional(),size:z$1.number().optional(),page:z$1.number().optional()}),_t=z$1.object({score:z$1.number().optional(),data:w.optional()}),J=z$1.object({status:z$1.number(),results:z$1.array(_t)}),g=z$1.object({classLoaderName:z$1.string().optional(),moduleName:z$1.string().optional(),moduleVersion:z$1.string().optional(),methodName:z$1.string().optional(),fileName:z$1.string().optional(),lineNumber:z$1.number().optional(),nativeMethod:z$1.boolean().optional(),className:z$1.string().optional()}),f=z$1.object({stackTrace:z$1.array(g).optional(),message:z$1.string().optional(),localizedMessage:z$1.string().optional()}),T=z$1.object({stackTrace:z$1.array(g).optional(),message:z$1.string().optional(),localizedMessage:z$1.string().optional()}),Re=z$1.object({cause:f.optional(),stackTrace:z$1.array(g).optional(),statusCode:z$1.enum(["100 CONTINUE","101 SWITCHING_PROTOCOLS","102 PROCESSING","103 CHECKPOINT","200 OK","201 CREATED","202 ACCEPTED","203 NON_AUTHORITATIVE_INFORMATION","204 NO_CONTENT","205 RESET_CONTENT","206 PARTIAL_CONTENT","207 MULTI_STATUS","208 ALREADY_REPORTED","226 IM_USED","300 MULTIPLE_CHOICES","301 MOVED_PERMANENTLY","302 FOUND","302 MOVED_TEMPORARILY","303 SEE_OTHER","304 NOT_MODIFIED","305 USE_PROXY","307 TEMPORARY_REDIRECT","308 PERMANENT_REDIRECT","400 BAD_REQUEST","401 UNAUTHORIZED","402 PAYMENT_REQUIRED","403 FORBIDDEN","404 NOT_FOUND","405 METHOD_NOT_ALLOWED","406 NOT_ACCEPTABLE","407 PROXY_AUTHENTICATION_REQUIRED","408 REQUEST_TIMEOUT","409 CONFLICT","410 GONE","411 LENGTH_REQUIRED","412 PRECONDITION_FAILED","413 PAYLOAD_TOO_LARGE","413 REQUEST_ENTITY_TOO_LARGE","414 URI_TOO_LONG","414 REQUEST_URI_TOO_LONG","415 UNSUPPORTED_MEDIA_TYPE","416 REQUESTED_RANGE_NOT_SATISFIABLE","417 EXPECTATION_FAILED","418 I_AM_A_TEAPOT","419 INSUFFICIENT_SPACE_ON_RESOURCE","420 METHOD_FAILURE","421 DESTINATION_LOCKED","422 UNPROCESSABLE_ENTITY","423 LOCKED","424 FAILED_DEPENDENCY","425 TOO_EARLY","426 UPGRADE_REQUIRED","428 PRECONDITION_REQUIRED","429 TOO_MANY_REQUESTS","431 REQUEST_HEADER_FIELDS_TOO_LARGE","451 UNAVAILABLE_FOR_LEGAL_REASONS","500 INTERNAL_SERVER_ERROR","501 NOT_IMPLEMENTED","502 BAD_GATEWAY","503 SERVICE_UNAVAILABLE","504 GATEWAY_TIMEOUT","505 HTTP_VERSION_NOT_SUPPORTED","506 VARIANT_ALSO_NEGOTIATES","507 INSUFFICIENT_STORAGE","508 LOOP_DETECTED","509 BANDWIDTH_LIMIT_EXCEEDED","510 NOT_EXTENDED","511 NETWORK_AUTHENTICATION_REQUIRED"]).optional(),message:z$1.string().optional(),suppressed:z$1.array(T).optional(),localizedMessage:z$1.string().optional()}),Ht=z$1.object({symbol:z$1.string().optional(),exchange:z$1.string().optional(),exchangeShortName:z$1.string().optional(),ipoDate:z$1.string().optional()}),qt=z$1.object({careers:z$1.string().optional(),about:z$1.string().optional(),blog:z$1.string().optional(),events:z$1.string().optional(),sitemap:z$1.string().optional(),updates:z$1.string().optional(),linkedin:z$1.string().optional(),facebook:z$1.string().optional(),instagram:z$1.string().optional(),medium:z$1.string().optional(),reddit:z$1.string().optional(),threads:z$1.string().optional(),tiktok:z$1.string().optional(),x:z$1.string().optional(),wellfound:z$1.string().optional(),youtube:z$1.string().optional(),wikipedia:z$1.string().optional()}),zt=z$1.object({id:z$1.string().optional(),name:z$1.string().optional(),updatedAt:z$1.string().optional(),primaryRecordId:z$1.string().optional(),altNames:z$1.array(z$1.string()).optional(),domains:z$1.array(z$1.string()).optional(),monthlyVisits:z$1.number().optional(),globalRank:z$1.number().optional(),description:z$1.string().optional(),ceo:z$1.string().optional(),industry:z$1.string().optional(),sector:z$1.string().optional(),country:z$1.string().optional(),fullTimeEmployees:z$1.number().optional(),address:z$1.string().optional(),city:z$1.string().optional(),state:z$1.string().optional(),zip:z$1.string().optional(),logo:z$1.string().optional(),favicon:z$1.string().optional(),isEtf:z$1.boolean().optional(),isActivelyTrading:z$1.boolean().optional(),isFund:z$1.boolean().optional(),isAdr:z$1.boolean().optional(),symbols:z$1.array(Ht).optional(),naics:z$1.string().optional(),sic:z$1.string().optional(),yearFounded:z$1.number().optional(),revenue:z$1.string().optional(),webResources:qt.optional()}),Y=z$1.object({status:z$1.number(),numResults:z$1.number(),results:z$1.array(zt)}),Ee=z$1.object({cause:f.optional(),stackTrace:z$1.array(g).optional(),message:z$1.string().optional(),suppressed:z$1.array(T).optional(),localizedMessage:z$1.string().optional()}),I=z$1.object({url:z$1.string().optional()}),xe=z$1.object({cause:f.optional(),stackTrace:z$1.array(g).optional(),message:z$1.string().optional(),suppressed:z$1.array(T).optional(),localizedMessage:z$1.string().optional()}),K=z$1.object({status:z$1.number(),numResults:z$1.number(),results:z$1.array(A)}),be=z$1.object({cause:f.optional(),stackTrace:z$1.array(g).optional(),message:z$1.string().optional(),suppressed:z$1.array(T).optional(),localizedMessage:z$1.string().optional()}),d=z$1.object({time:z$1.string().optional(),precision:z$1.string().optional()}),S=z$1.object({wikidataId:z$1.string().optional(),label:z$1.string().optional()}),Lt=z$1.object({wikidataId:z$1.string().optional(),label:z$1.string().optional(),startTime:d.optional(),endTime:d.optional()}),Ut=z$1.object({wikidataId:z$1.string().optional(),label:z$1.string().optional(),startTime:d.optional(),endTime:d.optional(),employer:S.optional()}),Ft=z$1.object({wikidataId:z$1.string().optional(),createdAt:z$1.string().optional(),updatedAt:z$1.string().optional(),name:z$1.string().optional(),gender:S.optional(),dateOfBirth:d.optional(),dateOfDeath:d.optional(),description:z$1.string().optional(),aliases:z$1.array(z$1.string()).optional(),occupation:z$1.array(S).optional(),position:z$1.array(Ut).optional(),politicalParty:z$1.array(Lt).optional(),image:I.optional(),_abstract:z$1.string().optional()}),$=z$1.object({status:z$1.number(),numResults:z$1.number(),results:z$1.array(Ft)}),X=z$1.object({status:z$1.number(),numResults:z$1.number(),articles:z$1.array(w)}),jt=z$1.object({pageId:z$1.string().optional(),sectionId:z$1.string().optional(),wikiPageId:z$1.number().optional(),wikiRevisionId:z$1.number().optional(),wikiRevisionTs:z$1.string().optional(),wikiCode:z$1.string().optional(),wikiNamespace:z$1.number().optional(),wikiTitle:z$1.string().optional(),wikidataId:z$1.string().optional(),wikidataInstanceOf:z$1.array(S).optional(),redirectTitles:z$1.array(z$1.string()).optional(),pageviews:z$1.number().optional(),title:z$1.string().optional(),styleLevel:z$1.number().optional(),content:z$1.string().optional()}),Mt=z$1.object({score:z$1.number().optional(),data:jt.optional()}),b=z$1.object({name:z$1.string().optional(),count:z$1.number().optional()}),Wt=z$1.object({id:z$1.string().optional(),domain:z$1.string().optional(),name:z$1.string().optional(),primaryRecordId:z$1.string().optional(),updatedAt:z$1.string().optional(),altNames:z$1.array(z$1.string()).optional(),description:z$1.string().optional(),avgMonthlyPosts:z$1.number().optional(),paywall:z$1.boolean().optional(),location:v.optional(),topCategories:z$1.array(b).optional(),topTopics:z$1.array(b).optional(),topCountries:z$1.array(b).optional(),topLabels:z$1.array(b).optional(),avgBiasRating:z$1.string().optional(),adFontesBiasRating:z$1.string().optional(),allSidesBiasRating:z$1.string().optional(),mbfcBiasRating:z$1.string().optional(),monthlyVisits:z$1.number().optional(),globalRank:z$1.number().optional(),logoLarge:I.optional(),logoFavIcon:I.optional(),logoSquare:I.optional()}),Z=z$1.object({status:z$1.number(),numResults:z$1.number(),results:z$1.array(Wt)}),tt=z$1.object({status:z$1.number(),numResults:z$1.number(),results:z$1.array(V)}),Ie=z$1.object({prompt:z$1.string().optional(),maxArticleCount:z$1.number().optional(),returnedArticleCount:z$1.number().optional(),summarizeFields:z$1.enum(["TITLE","CONTENT","SUMMARY"]).optional(),method:z$1.enum(["ARTICLES","CLUSTERS"]).optional(),model:z$1.enum(["gpt-4o","gpt-4o-mini","gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","llama-3.3-70b-versatile","deepseek-r1-distill-llama-70b"]).optional(),temperature:z$1.number().optional(),topP:z$1.number().optional(),maxTokens:z$1.number().optional()}),et=z$1.object({status:z$1.number(),numResults:z$1.number(),summary:z$1.string(),results:z$1.array(w)}),Ae=z$1.object({cause:f.optional(),stackTrace:z$1.array(g).optional(),status:z$1.enum(["100 CONTINUE","101 SWITCHING_PROTOCOLS","102 PROCESSING","103 CHECKPOINT","200 OK","201 CREATED","202 ACCEPTED","203 NON_AUTHORITATIVE_INFORMATION","204 NO_CONTENT","205 RESET_CONTENT","206 PARTIAL_CONTENT","207 MULTI_STATUS","208 ALREADY_REPORTED","226 IM_USED","300 MULTIPLE_CHOICES","301 MOVED_PERMANENTLY","302 FOUND","302 MOVED_TEMPORARILY","303 SEE_OTHER","304 NOT_MODIFIED","305 USE_PROXY","307 TEMPORARY_REDIRECT","308 PERMANENT_REDIRECT","400 BAD_REQUEST","401 UNAUTHORIZED","402 PAYMENT_REQUIRED","403 FORBIDDEN","404 NOT_FOUND","405 METHOD_NOT_ALLOWED","406 NOT_ACCEPTABLE","407 PROXY_AUTHENTICATION_REQUIRED","408 REQUEST_TIMEOUT","409 CONFLICT","410 GONE","411 LENGTH_REQUIRED","412 PRECONDITION_FAILED","413 PAYLOAD_TOO_LARGE","413 REQUEST_ENTITY_TOO_LARGE","414 URI_TOO_LONG","414 REQUEST_URI_TOO_LONG","415 UNSUPPORTED_MEDIA_TYPE","416 REQUESTED_RANGE_NOT_SATISFIABLE","417 EXPECTATION_FAILED","418 I_AM_A_TEAPOT","419 INSUFFICIENT_SPACE_ON_RESOURCE","420 METHOD_FAILURE","421 DESTINATION_LOCKED","422 UNPROCESSABLE_ENTITY","423 LOCKED","424 FAILED_DEPENDENCY","425 TOO_EARLY","426 UPGRADE_REQUIRED","428 PRECONDITION_REQUIRED","429 TOO_MANY_REQUESTS","431 REQUEST_HEADER_FIELDS_TOO_LARGE","451 UNAVAILABLE_FOR_LEGAL_REASONS","500 INTERNAL_SERVER_ERROR","501 NOT_IMPLEMENTED","502 BAD_GATEWAY","503 SERVICE_UNAVAILABLE","504 GATEWAY_TIMEOUT","505 HTTP_VERSION_NOT_SUPPORTED","506 VARIANT_ALSO_NEGOTIATES","507 INSUFFICIENT_STORAGE","508 LOOP_DETECTED","509 BANDWIDTH_LIMIT_EXCEEDED","510 NOT_EXTENDED","511 NETWORK_AUTHENTICATION_REQUIRED"]).optional(),message:z$1.string().optional(),suppressed:z$1.array(T).optional(),localizedMessage:z$1.string().optional()}),Bt=z$1.object({category:z$1.string().optional(),subcategory:z$1.string().optional()}),vt=z$1.object({id:z$1.number().optional(),createdAt:z$1.string().optional(),updatedAt:z$1.string().optional(),name:z$1.string().optional(),labels:Bt.optional()}),ot=z$1.object({total:z$1.number(),data:z$1.array(vt)}),Gt=z$1.object({id:z$1.string().optional(),title:z$1.string().optional(),styleLevel:z$1.number().optional(),loc:z$1.array(z$1.number()).optional(),textRaw:z$1.string().optional(),textRich:z$1.string().optional()}),Qt=z$1.object({id:z$1.string().optional(),scrapedAt:z$1.string().optional(),wikiPageId:z$1.number().optional(),wikiRevisionId:z$1.number().optional(),wikiRevisionTs:z$1.string().optional(),wikiCode:z$1.string().optional(),wikiNamespace:z$1.number().optional(),wikiTitle:z$1.string().optional(),url:z$1.string().optional(),topImage:z$1.string().optional(),wikidataId:z$1.string().optional(),wikidataInstanceOf:z$1.array(S).optional(),redirectTitles:z$1.array(z$1.string()).optional(),summary:z$1.string().optional(),sections:z$1.array(Gt).optional(),categories:z$1.array(z$1.string()).optional(),externalLinks:z$1.array(z$1.string()).optional(),references:z$1.array(z$1.string()).optional(),pageviews:z$1.number().optional()}),Vt=z$1.object({pageId:z$1.array(z$1.string()).optional(),sectionId:z$1.array(z$1.string()).optional(),wikiPageId:z$1.array(z$1.number()).optional(),wikiRevisionId:z$1.array(z$1.number()).optional(),wikiCode:z$1.array(z$1.string()).optional(),wikiNamespace:z$1.array(z$1.number()).optional(),wikidataId:z$1.array(z$1.string()).optional(),wikidataInstanceOfId:z$1.array(z$1.string()).optional(),wikidataInstanceOfLabel:z$1.array(z$1.string()).optional(),AND:z$1.array(z$1.never()).optional(),OR:z$1.array(z$1.never()).optional(),NOT:z$1.array(z$1.never()).optional()}),Pe=z$1.object({prompt:z$1.string(),filter:Vt.optional(),wikiRevisionFrom:z$1.string().optional(),wikiRevisionTo:z$1.string().optional(),pageviewsFrom:z$1.number().optional(),pageviewsTo:z$1.number().optional(),size:z$1.number().optional(),page:z$1.number().optional()}),at=z$1.object({status:z$1.number(),numResults:z$1.number(),results:z$1.array(Qt)}),nt=z$1.object({status:z$1.number(),results:z$1.array(Mt)});var Jt=z$1.object({id:z$1.string()}),Yt=z$1.object({...Jt.shape}),it=z$1.object({q:z$1.string().optional(),title:z$1.string().optional(),desc:z$1.string().optional(),content:z$1.string().optional(),url:z$1.string().optional(),articleId:z$1.array(z$1.string()).optional(),clusterId:z$1.array(z$1.string()).optional(),sortBy:z$1.any().optional(),page:z$1.any().optional(),size:z$1.any().optional(),from:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),to:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),addDateFrom:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),addDateTo:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),refreshDateFrom:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),refreshDateTo:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),medium:z$1.array(z$1.string()).optional(),source:z$1.array(z$1.string()).optional(),sourceGroup:z$1.array(z$1.string()).optional(),excludeSourceGroup:z$1.array(z$1.string()).optional(),excludeSource:z$1.array(z$1.string()).optional(),paywall:z$1.boolean().optional(),byline:z$1.array(z$1.string()).optional(),author:z$1.array(z$1.string()).optional(),excludeAuthor:z$1.array(z$1.string()).optional(),journalistId:z$1.array(z$1.string()).optional(),excludeJournalistId:z$1.array(z$1.string()).optional(),language:z$1.array(z$1.string()).optional(),excludeLanguage:z$1.array(z$1.string()).optional(),searchTranslation:z$1.boolean().optional(),label:z$1.array(z$1.string()).optional(),excludeLabel:z$1.array(z$1.string()).optional(),category:z$1.array(z$1.string()).optional(),excludeCategory:z$1.array(z$1.string()).optional(),topic:z$1.array(z$1.string()).optional(),excludeTopic:z$1.array(z$1.string()).optional(),linkTo:z$1.string().optional(),showReprints:z$1.boolean().optional(),reprintGroupId:z$1.string().optional(),city:z$1.array(z$1.string()).optional(),excludeCity:z$1.array(z$1.string()).optional(),area:z$1.array(z$1.string()).optional(),state:z$1.array(z$1.string()).optional(),excludeState:z$1.array(z$1.string()).optional(),county:z$1.array(z$1.string()).optional(),excludeCounty:z$1.array(z$1.string()).optional(),locationsCountry:z$1.array(z$1.string()).optional(),country:z$1.array(z$1.string()).optional(),excludeLocationsCountry:z$1.array(z$1.string()).optional(),location:z$1.array(z$1.string()).optional(),lat:z$1.any().optional(),lon:z$1.any().optional(),maxDistance:z$1.any().optional(),sourceCity:z$1.array(z$1.string()).optional(),sourceCounty:z$1.array(z$1.string()).optional(),sourceCountry:z$1.array(z$1.string()).optional(),sourceState:z$1.array(z$1.string()).optional(),sourceLat:z$1.any().optional(),sourceLon:z$1.any().optional(),sourceMaxDistance:z$1.any().optional(),personWikidataId:z$1.array(z$1.string()).optional(),excludePersonWikidataId:z$1.array(z$1.string()).optional(),personName:z$1.array(z$1.string()).optional(),excludePersonName:z$1.array(z$1.string()).optional(),companyId:z$1.array(z$1.string()).optional(),excludeCompanyId:z$1.array(z$1.string()).optional(),companyName:z$1.string().optional(),companyDomain:z$1.array(z$1.string()).optional(),excludeCompanyDomain:z$1.array(z$1.string()).optional(),companySymbol:z$1.array(z$1.string()).optional(),excludeCompanySymbol:z$1.array(z$1.string()).optional(),showNumResults:z$1.boolean().optional(),positiveSentimentFrom:z$1.any().optional(),positiveSentimentTo:z$1.any().optional(),neutralSentimentFrom:z$1.any().optional(),neutralSentimentTo:z$1.any().optional(),negativeSentimentFrom:z$1.any().optional(),negativeSentimentTo:z$1.any().optional(),taxonomy:z$1.array(z$1.string()).optional(),prefixTaxonomy:z$1.string().optional(),showHighlighting:z$1.boolean().optional(),highlightFragmentSize:z$1.any().optional(),highlightNumFragments:z$1.any().optional(),highlightPreTag:z$1.string().optional(),highlightPostTag:z$1.string().optional(),highlightQ:z$1.string().optional()}),Kt=z$1.object({...it.shape}),st=z$1.object({id:z$1.array(z$1.string()).optional(),symbol:z$1.array(z$1.string()).optional(),domain:z$1.array(z$1.string()).optional(),country:z$1.array(z$1.string()).optional(),exchange:z$1.array(z$1.string()).optional(),numEmployeesFrom:z$1.any().optional(),numEmployeesTo:z$1.any().optional(),ipoFrom:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),ipoTo:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),q:z$1.string().optional(),name:z$1.string().optional(),industry:z$1.string().optional(),sector:z$1.string().optional(),size:z$1.any().optional(),page:z$1.any().optional()}),$t=z$1.object({...st.shape}),pt=z$1.object({id:z$1.array(z$1.string()).optional(),q:z$1.string().optional(),name:z$1.string().optional(),twitter:z$1.string().optional(),size:z$1.any().optional(),page:z$1.any().optional(),source:z$1.array(z$1.string()).optional(),topic:z$1.array(z$1.string()).optional(),category:z$1.array(z$1.string()).optional(),label:z$1.array(z$1.string()).optional(),minMonthlyPosts:z$1.any().optional(),maxMonthlyPosts:z$1.any().optional(),country:z$1.array(z$1.string()).optional(),updatedAtFrom:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),updatedAtTo:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),showNumResults:z$1.boolean().optional()}),Xt=z$1.object({...pt.shape}),lt=z$1.object({name:z$1.string().optional(),wikidataId:z$1.array(z$1.string()).optional(),occupationId:z$1.array(z$1.string()).optional(),occupationLabel:z$1.string().optional(),page:z$1.any().optional(),size:z$1.any().optional()}),Zt=z$1.object({...lt.shape}),ct=z$1.object({domain:z$1.array(z$1.string()).optional(),name:z$1.string().optional(),sourceGroup:z$1.string().optional(),sortBy:z$1.any().optional(),page:z$1.any().optional(),size:z$1.any().optional(),minMonthlyVisits:z$1.any().optional(),maxMonthlyVisits:z$1.any().optional(),minMonthlyPosts:z$1.any().optional(),maxMonthlyPosts:z$1.any().optional(),country:z$1.array(z$1.string()).optional(),sourceCountry:z$1.array(z$1.string()).optional(),sourceState:z$1.array(z$1.string()).optional(),sourceCounty:z$1.array(z$1.string()).optional(),sourceCity:z$1.array(z$1.string()).optional(),sourceLat:z$1.any().optional(),sourceLon:z$1.any().optional(),sourceMaxDistance:z$1.any().optional(),category:z$1.array(z$1.string()).optional(),topic:z$1.array(z$1.string()).optional(),label:z$1.array(z$1.string()).optional(),paywall:z$1.boolean().optional(),showSubdomains:z$1.boolean().optional(),showNumResults:z$1.boolean().optional()}),te=z$1.object({...ct.shape}),ut=z$1.object({q:z$1.string().optional(),name:z$1.string().optional(),clusterId:z$1.array(z$1.string()).optional(),excludeClusterId:z$1.array(z$1.string()).optional(),sortBy:z$1.any().optional(),page:z$1.any().optional(),size:z$1.any().optional(),from:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),to:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),initializedFrom:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),initializedTo:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),updatedFrom:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),updatedTo:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),topic:z$1.array(z$1.string()).optional(),category:z$1.array(z$1.string()).optional(),taxonomy:z$1.array(z$1.string()).optional(),source:z$1.array(z$1.string()).optional(),sourceGroup:z$1.array(z$1.string()).optional(),minUniqueSources:z$1.any().optional(),personWikidataId:z$1.array(z$1.string()).optional(),personName:z$1.string().optional(),companyId:z$1.array(z$1.string()).optional(),companyName:z$1.string().optional(),companyDomain:z$1.array(z$1.string()).optional(),companySymbol:z$1.array(z$1.string()).optional(),country:z$1.array(z$1.string()).optional(),state:z$1.array(z$1.string()).optional(),city:z$1.array(z$1.string()).optional(),area:z$1.array(z$1.string()).optional(),minClusterSize:z$1.any().optional(),maxClusterSize:z$1.any().optional(),nameExists:z$1.boolean().optional(),positiveSentimentFrom:z$1.any().optional(),positiveSentimentTo:z$1.any().optional(),neutralSentimentFrom:z$1.any().optional(),neutralSentimentTo:z$1.any().optional(),negativeSentimentFrom:z$1.any().optional(),negativeSentimentTo:z$1.any().optional(),showStoryPageInfo:z$1.boolean().optional(),showNumResults:z$1.boolean().optional(),showDuplicates:z$1.boolean().optional(),showHighlighting:z$1.boolean().optional(),highlightFragmentSize:z$1.any().optional(),highlightNumFragments:z$1.any().optional(),highlightPreTag:z$1.string().optional(),highlightPostTag:z$1.string().optional(),highlightQ:z$1.string().optional()}),ee=z$1.object({...ut.shape}),yt=z$1.object({q:z$1.string().optional(),title:z$1.string().optional(),desc:z$1.string().optional(),content:z$1.string().optional(),url:z$1.string().optional(),articleId:z$1.array(z$1.string()).optional(),clusterId:z$1.array(z$1.string()).optional(),sortBy:z$1.any().optional(),page:z$1.any().optional(),size:z$1.any().optional(),from:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),to:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),addDateFrom:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),addDateTo:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),refreshDateFrom:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),refreshDateTo:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),medium:z$1.array(z$1.string()).optional(),source:z$1.array(z$1.string()).optional(),sourceGroup:z$1.array(z$1.string()).optional(),excludeSourceGroup:z$1.array(z$1.string()).optional(),excludeSource:z$1.array(z$1.string()).optional(),paywall:z$1.boolean().optional(),byline:z$1.array(z$1.string()).optional(),author:z$1.array(z$1.string()).optional(),excludeAuthor:z$1.array(z$1.string()).optional(),journalistId:z$1.array(z$1.string()).optional(),excludeJournalistId:z$1.array(z$1.string()).optional(),language:z$1.array(z$1.string()).optional(),excludeLanguage:z$1.array(z$1.string()).optional(),searchTranslation:z$1.boolean().optional(),label:z$1.array(z$1.string()).optional(),excludeLabel:z$1.array(z$1.string()).optional(),category:z$1.array(z$1.string()).optional(),excludeCategory:z$1.array(z$1.string()).optional(),topic:z$1.array(z$1.string()).optional(),excludeTopic:z$1.array(z$1.string()).optional(),linkTo:z$1.string().optional(),showReprints:z$1.boolean().optional(),reprintGroupId:z$1.string().optional(),city:z$1.array(z$1.string()).optional(),excludeCity:z$1.array(z$1.string()).optional(),area:z$1.array(z$1.string()).optional(),state:z$1.array(z$1.string()).optional(),excludeState:z$1.array(z$1.string()).optional(),county:z$1.array(z$1.string()).optional(),excludeCounty:z$1.array(z$1.string()).optional(),locationsCountry:z$1.array(z$1.string()).optional(),country:z$1.array(z$1.string()).optional(),excludeLocationsCountry:z$1.array(z$1.string()).optional(),location:z$1.array(z$1.string()).optional(),lat:z$1.any().optional(),lon:z$1.any().optional(),maxDistance:z$1.any().optional(),sourceCity:z$1.array(z$1.string()).optional(),sourceCounty:z$1.array(z$1.string()).optional(),sourceCountry:z$1.array(z$1.string()).optional(),sourceState:z$1.array(z$1.string()).optional(),sourceLat:z$1.any().optional(),sourceLon:z$1.any().optional(),sourceMaxDistance:z$1.any().optional(),personWikidataId:z$1.array(z$1.string()).optional(),excludePersonWikidataId:z$1.array(z$1.string()).optional(),personName:z$1.array(z$1.string()).optional(),excludePersonName:z$1.array(z$1.string()).optional(),companyId:z$1.array(z$1.string()).optional(),excludeCompanyId:z$1.array(z$1.string()).optional(),companyName:z$1.string().optional(),companyDomain:z$1.array(z$1.string()).optional(),excludeCompanyDomain:z$1.array(z$1.string()).optional(),companySymbol:z$1.array(z$1.string()).optional(),excludeCompanySymbol:z$1.array(z$1.string()).optional(),showNumResults:z$1.boolean().optional(),positiveSentimentFrom:z$1.any().optional(),positiveSentimentTo:z$1.any().optional(),neutralSentimentFrom:z$1.any().optional(),neutralSentimentTo:z$1.any().optional(),negativeSentimentFrom:z$1.any().optional(),negativeSentimentTo:z$1.any().optional(),taxonomy:z$1.array(z$1.string()).optional(),prefixTaxonomy:z$1.string().optional(),showHighlighting:z$1.boolean().optional(),highlightFragmentSize:z$1.any().optional(),highlightNumFragments:z$1.any().optional(),highlightPreTag:z$1.string().optional(),highlightPostTag:z$1.string().optional(),highlightQ:z$1.string().optional()}),oe=z$1.object({summaryBody:z$1.any()}),ae=z$1.object({...yt.shape,...oe.shape}),mt=z$1.object({name:z$1.string().optional(),category:z$1.string().optional(),subcategory:z$1.string().optional(),page:z$1.any().optional(),size:z$1.any().optional()}),ne=z$1.object({...mt.shape}),gt=z$1.object({q:z$1.string().optional(),title:z$1.string().optional(),summary:z$1.string().optional(),text:z$1.string().optional(),reference:z$1.string().optional(),id:z$1.array(z$1.string()).optional(),wikiPageId:z$1.array(z$1.number()).optional(),wikiRevisionId:z$1.array(z$1.number()).optional(),wikiCode:z$1.array(z$1.string()).optional(),wikiNamespace:z$1.array(z$1.number()).optional(),wikidataId:z$1.array(z$1.string()).optional(),wikidataInstanceOfId:z$1.array(z$1.string()).optional(),wikidataInstanceOfLabel:z$1.array(z$1.string()).optional(),category:z$1.array(z$1.string()).optional(),sectionId:z$1.array(z$1.string()).optional(),wikiRevisionFrom:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),wikiRevisionTo:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),scrapedAtFrom:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),scrapedAtTo:z$1.union([z$1.date(),z$1.string()]).transform(o=>o instanceof Date?o.toISOString():o).optional(),pageviewsFrom:z$1.any().optional(),pageviewsTo:z$1.any().optional(),withPageviews:z$1.boolean().optional(),showNumResults:z$1.boolean().optional(),page:z$1.any().optional(),size:z$1.any().optional(),sortBy:z$1.any().optional()}),re=z$1.object({...gt.shape}),ie=z$1.object({articleSearchParams:z$1.any()}),se=z$1.object({...ie.shape}),pe=z$1.object({wikipediaSearchParams:z$1.any()}),le=z$1.object({...pe.shape}),rt=class extends R{async getJournalistById(a,n){let r=Yt.parse(a),s={};if(this.configuration&&this.configuration.accessToken){let l=this.configuration.accessToken,p=await l("apiKeyAuth",[]);p&&(s.Authorization=`Bearer ${p}`);}let i=await this.request({path:"/v1/journalists/{id}".replace("{id}",encodeURIComponent(String(r.id))),method:"GET",headers:s},n);return await new m(i,l=>A.parse(y(l))).value()}async searchArticles(a={},n){let r=Kt.parse(a),s=it.parse(r),i={};if(this.configuration&&this.configuration.accessToken){let p=this.configuration.accessToken,c=await p("apiKeyAuth",[]);c&&(i.Authorization=`Bearer ${c}`);}let u=await this.request({path:"/v1/articles/all",method:"GET",headers:i,query:s},n);return await new m(u,p=>X.parse(y(p))).value()}async searchCompanies(a={},n){let r=$t.parse(a),s=st.parse(r),i={};if(this.configuration&&this.configuration.accessToken){let p=this.configuration.accessToken,c=await p("apiKeyAuth",[]);c&&(i.Authorization=`Bearer ${c}`);}let u=await this.request({path:"/v1/companies/all",method:"GET",headers:i,query:s},n);return await new m(u,p=>Y.parse(y(p))).value()}async searchJournalists(a={},n){let r=Xt.parse(a),s=pt.parse(r),i={};if(this.configuration&&this.configuration.accessToken){let p=this.configuration.accessToken,c=await p("apiKeyAuth",[]);c&&(i.Authorization=`Bearer ${c}`);}let u=await this.request({path:"/v1/journalists/all",method:"GET",headers:i,query:s},n);return await new m(u,p=>K.parse(y(p))).value()}async searchPeople(a={},n){let r=Zt.parse(a),s=lt.parse(r),i={};if(this.configuration&&this.configuration.accessToken){let p=this.configuration.accessToken,c=await p("apiKeyAuth",[]);c&&(i.Authorization=`Bearer ${c}`);}let u=await this.request({path:"/v1/people/all",method:"GET",headers:i,query:s},n);return await new m(u,p=>$.parse(y(p))).value()}async searchSources(a={},n){let r=te.parse(a),s=ct.parse(r),i={};if(this.configuration&&this.configuration.accessToken){let p=this.configuration.accessToken,c=await p("apiKeyAuth",[]);c&&(i.Authorization=`Bearer ${c}`);}let u=await this.request({path:"/v1/sources/all",method:"GET",headers:i,query:s},n);return await new m(u,p=>Z.parse(y(p))).value()}async searchStories(a={},n){let r=ee.parse(a),s=ut.parse(r),i={};if(this.configuration&&this.configuration.accessToken){let p=this.configuration.accessToken,c=await p("apiKeyAuth",[]);c&&(i.Authorization=`Bearer ${c}`);}let u=await this.request({path:"/v1/stories/all",method:"GET",headers:i,query:s},n);return await new m(u,p=>tt.parse(y(p))).value()}async searchSummarizer(a,n){let r=ae.parse(a),s=yt.parse(r),i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let p=this.configuration.accessToken,c=await p("apiKeyAuth",[]);c&&(i.Authorization=`Bearer ${c}`);}let u=await this.request({path:"/v1/summarize",method:"POST",headers:i,query:s,body:r.summaryBody},n);return await new m(u,p=>et.parse(y(p))).value()}async searchTopics(a={},n){let r=ne.parse(a),s=mt.parse(r),i={};if(this.configuration&&this.configuration.accessToken){let p=this.configuration.accessToken,c=await p("apiKeyAuth",[]);c&&(i.Authorization=`Bearer ${c}`);}let u=await this.request({path:"/v1/topics/all",method:"GET",headers:i,query:s},n);return await new m(u,p=>ot.parse(y(p))).value()}async searchWikipedia(a={},n){let r=re.parse(a),s=gt.parse(r),i={};if(this.configuration&&this.configuration.accessToken){let p=this.configuration.accessToken,c=await p("apiKeyAuth",[]);c&&(i.Authorization=`Bearer ${c}`);}let u=await this.request({path:"/v1/wikipedia/all",method:"GET",headers:i,query:s},n);return await new m(u,p=>at.parse(y(p))).value()}async vectorSearchArticles(a,n){let r=se.parse(a),s={};if(s["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let l=this.configuration.accessToken,p=await l("apiKeyAuth",[]);p&&(s.Authorization=`Bearer ${p}`);}let i=await this.request({path:"/v1/vector/news/all",method:"POST",headers:s,body:r.articleSearchParams},n);return await new m(i,l=>J.parse(y(l))).value()}async vectorSearchWikipedia(a,n){let r=le.parse(a),s={};if(s["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let l=this.configuration.accessToken,p=await l("apiKeyAuth",[]);p&&(s.Authorization=`Bearer ${p}`);}let i=await this.request({path:"/v1/vector/wikipedia/all",method:"POST",headers:s,body:r.wikipediaSearchParams},n);return await new m(i,l=>nt.parse(y(l))).value()}};
|
|
2
|
+
export{fe as AllEndpointSortBy,Se as AllEndpointSortBySchema,w as ArticleSchema,kt as ArticleSearchFilterSchema,Te as ArticleSearchParamsSchema,J as ArticlesVectorSearchResultSchema,f as AuthExceptionCauseSchema,g as AuthExceptionCauseStackTraceInnerSchema,Re as AuthExceptionSchema,T as AuthExceptionSuppressedInnerSchema,dt as BASE_PATH,R as BaseAPI,q as BlobApiResponse,ce as COLLECTION_FORMATS,C as CategoryHolderSchema,Rt as CategoryWithScoreHolderSchema,Pt as CompanyCountSchema,j as CompanyHolderSchema,zt as CompanySchema,Y as CompanySearchResultSchema,P as Configuration,F as CoordinateFilterSchema,B as CoordinateSchema,ht as DefaultConfig,Et as EntityHolderSchema,xt as EventTypeHolderSchema,N as FetchError,Jt as GetJournalistByIdPathSchema,Yt as GetJournalistByIdRequestSchema,bt as IdNameHolderSchema,Ee as IllegalParameterExceptionSchema,I as ImageHolderSchema,xe as InternalErrorExceptionSchema,m as JSONApiResponse,A as JournalistSchema,K as JournalistSearchResultSchema,Ot as KeyPointSchema,It as KeywordHolderSchema,At as LabelHolderSchema,Nt as LocationCountSchema,D as LocationHolderSchema,h as NameCountSchema,V as NewsClusterSchema,be as NotFoundExceptionSchema,$ as PeopleSearchResultSchema,Ct as PersonCountSchema,M as PersonHolderSchema,Ft as PersonSchema,wt as PlaceSchema,X as QuerySearchResultSchema,Dt as QuestionSchema,x as RecordStatHolderSchema,_ as RequiredError,O as ResponseError,_t as ScoredDataArticleSchema,Mt as ScoredDataWikiDataSchema,it as SearchArticlesQuerySchema,Kt as SearchArticlesRequestSchema,st as SearchCompaniesQuerySchema,$t as SearchCompaniesRequestSchema,pt as SearchJournalistsQuerySchema,Xt as SearchJournalistsRequestSchema,lt as SearchPeopleQuerySchema,Zt as SearchPeopleRequestSchema,ct as SearchSourcesQuerySchema,te as SearchSourcesRequestSchema,ut as SearchStoriesQuerySchema,ee as SearchStoriesRequestSchema,oe as SearchSummarizerBodySchema,yt as SearchSummarizerQuerySchema,ae as SearchSummarizerRequestSchema,mt as SearchTopicsQuerySchema,ne as SearchTopicsRequestSchema,gt as SearchWikipediaQuerySchema,re as SearchWikipediaRequestSchema,W as SentimentHolderSchema,he as SortBy,de as SortBySchema,G as SourceHolderSchema,v as SourceLocationSchema,Wt as SourceSchema,Z as SourceSearchResultSchema,b as SourceTopStatHolderSchema,tt as StorySearchResultSchema,Ie as SummaryBodySchema,et as SummarySearchResultSchema,Ht as SymbolHolderSchema,z as TextApiResponse,Ae as TooManyRequestsExceptionSchema,vt as TopicDtoSchema,Q as TopicHolderSchema,Bt as TopicLabelsSchema,ot as TopicSearchResultSchema,rt as V1Api,ie as VectorSearchArticlesBodySchema,se as VectorSearchArticlesRequestSchema,pe as VectorSearchWikipediaBodySchema,le as VectorSearchWikipediaRequestSchema,H as VoidApiResponse,qt as WebResourcesSchema,jt as WikiDataSchema,Qt as WikiPageSchema,Gt as WikiPageSectionHolderSchema,d as WikidataDateHolderSchema,S as WikidataLabelHolderSchema,Lt as WikidataPoliticalPartyHolderSchema,Ut as WikidataPositionHolderSchema,Vt as WikipediaSearchFilterSchema,Pe as WikipediaSearchParamsSchema,at as WikipediaSearchResultSchema,nt as WikipediaVectorSearchResultSchema,me as canConsumeForm,ue as exists,ye as mapValues,L as querystring,y as transformNullsToUndefined};//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goperigon/perigon-ts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Typescript client for Perigon API",
|
|
5
5
|
"author": "Perigon",
|
|
6
6
|
"repository": {
|
|
@@ -56,13 +56,18 @@
|
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": false,
|
|
58
58
|
"scripts": {
|
|
59
|
-
"build": "tsup",
|
|
60
|
-
"dev": "tsup --watch",
|
|
61
|
-
"test": "
|
|
59
|
+
"build": "bun run tsup",
|
|
60
|
+
"dev": "bun run tsup --watch",
|
|
61
|
+
"test": "bun test --coverage",
|
|
62
|
+
"typecheck": "tsc --noEmit",
|
|
63
|
+
"generate": "bash ./scripts/generate.sh"
|
|
62
64
|
},
|
|
63
65
|
"peerDependencies": {
|
|
64
66
|
"undici": ">=5"
|
|
65
67
|
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"zod": "^3.25.29"
|
|
70
|
+
},
|
|
66
71
|
"devDependencies": {
|
|
67
72
|
"tsup": "^8.0.0",
|
|
68
73
|
"typescript": "^5.4.0",
|