@sovity.de/edc-client 14.1.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(n,A){typeof exports=="object"&&typeof module<"u"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(n=typeof globalThis<"u"?globalThis:n||self,A(n["sovity-edc-client"]={}))})(this,function(n){"use strict";var Df=Object.defineProperty;var wf=(n,A,L)=>A in n?Df(n,A,{enumerable:!0,configurable:!0,writable:!0,value:L}):n[A]=L;var v=(n,A,L)=>wf(n,typeof A!="symbol"?A+"":A,L);const A="https://my-connector/api/management".replace(/\/+$/,"");class L{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:A}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||dt}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const qt=new L,ut=class ut{constructor(t=qt){v(this,"middleware");v(this,"fetchApi",async(t,r)=>{let i={url:t,init:r};for(const o of this.middleware)o.pre&&(i=await o.pre({fetch:this.fetchApi,...i})||i);let a;try{a=await(this.configuration.fetchApi||fetch)(i.url,i.init)}catch(o){for(const s of this.middleware)s.onError&&(a=await s.onError({fetch:this.fetchApi,url:i.url,init:i.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new Ht(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(a=await o.post({fetch:this.fetchApi,url:i.url,init:i.init,response:a.clone()})||a);return a});this.configuration=t,this.middleware=t.middleware}withMiddleware(...t){const r=this.clone();return r.middleware=r.middleware.concat(...t),r}withPreMiddleware(...t){const r=t.map(i=>({pre:i}));return this.withMiddleware(...r)}withPostMiddleware(...t){const r=t.map(i=>({post:i}));return this.withMiddleware(...r)}isJsonMime(t){return t?ut.jsonRegex.test(t):!1}async request(t,r){const{url:i,init:a}=await this.createFetchParams(t,r),o=await this.fetchApi(i,a);if(o&&o.status>=200&&o.status<300)return o;throw new Lt(o,"Response returned an error code")}async createFetchParams(t,r){let i=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(O=>a[O]===void 0?delete a[O]:{});const o=typeof r=="function"?r:async()=>r,s={method:t.method,headers:a,body:t.body,credentials:this.configuration.credentials},c={...s,...await o({init:s,context:t})};let p;Es(c.body)||c.body instanceof URLSearchParams||Rs(c.body)?p=c.body:this.isJsonMime(a["Content-Type"])?p=JSON.stringify(c.body):p=c.body;const d={...c,body:p};return{url:i,init:d}}clone(){const t=this.constructor,r=new t(this.configuration);return r.middleware=this.middleware.slice(),r}};v(ut,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let $=ut;function Rs(e){return typeof Blob<"u"&&e instanceof Blob}function Es(e){return typeof FormData<"u"&&e instanceof FormData}class Lt extends Error{constructor(r,i){super(i);v(this,"name","ResponseError");this.response=r}}class Ht extends Error{constructor(r,i){super(i);v(this,"name","FetchError");this.cause=r}}class C extends Error{constructor(r,i){super(i);v(this,"name","RequiredError");this.field=r}}const vs={csv:",",ssv:" ",tsv:" ",pipes:"|"};function dt(e,t=""){return Object.keys(e).map(r=>Vt(r,e[r],t)).filter(r=>r.length>0).join("&")}function Vt(e,t,r=""){const i=r+(r.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);return`${encodeURIComponent(i)}=${a}`}if(t instanceof Set){const a=Array.from(t);return Vt(e,a,r)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?dt(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}function ks(e,t){const r=e[t];return r!=null}function qs(e,t){return Object.keys(e).reduce((r,i)=>({...r,[i]:t(e[i])}),{})}function Ls(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class y{constructor(t,r=i=>i){this.raw=t,this.transformer=r}async value(){return this.transformer(await this.raw.json())}}class Bt{constructor(t){this.raw=t}async value(){}}class Hs{constructor(t){this.raw=t}async value(){return await this.raw.blob()}}class Mt{constructor(t){this.raw=t}async value(){return await this.raw.text()}}const Te={Like:"LIKE",Eq:"EQ",In:"IN"};function Vs(e){for(const t in Te)if(Object.prototype.hasOwnProperty.call(Te,t)&&Te[t]===e)return!0;return!1}function Zt(e){return Gt(e)}function Gt(e,t){return e}function Bs(e){return e}function Ms(e,t){return e}function Zs(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0||!("operator"in e)||e.operator===void 0)}function lt(e){return Qt(e)}function Qt(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:Zt(e.operator),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function ft(e){return zt(e,!1)}function zt(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:e.operator,value:e.value,valueList:e.valueList}}const Oe={Live:"LIVE",OnRequest:"ON_REQUEST"};function Gs(e){for(const t in Oe)if(Object.prototype.hasOwnProperty.call(Oe,t)&&Oe[t]===e)return!0;return!1}function $t(e){return Kt(e)}function Kt(e,t){return e}function Qs(e){return e}function zs(e,t){return e}function $s(e){return!(!("dataSourceAvailability"in e)||e.dataSourceAvailability===void 0||!("assetId"in e)||e.assetId===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("title"in e)||e.title===void 0||!("creatorOrganizationName"in e)||e.creatorOrganizationName===void 0||!("isOwnConnector"in e)||e.isOwnConnector===void 0)}function K(e){return Wt(e)}function Wt(e,t){return e==null?e:{dataSourceAvailability:$t(e.dataSourceAvailability),assetId:e.assetId,connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,title:e.title,creatorOrganizationName:e.creatorOrganizationName,onRequestContactEmail:e.onRequestContactEmail==null?void 0:e.onRequestContactEmail,onRequestContactEmailSubject:e.onRequestContactEmailSubject==null?void 0:e.onRequestContactEmailSubject,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,descriptionShortText:e.descriptionShortText==null?void 0:e.descriptionShortText,isOwnConnector:e.isOwnConnector,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,httpDatasourceHintsProxyMethod:e.httpDatasourceHintsProxyMethod==null?void 0:e.httpDatasourceHintsProxyMethod,httpDatasourceHintsProxyPath:e.httpDatasourceHintsProxyPath==null?void 0:e.httpDatasourceHintsProxyPath,httpDatasourceHintsProxyQueryParams:e.httpDatasourceHintsProxyQueryParams==null?void 0:e.httpDatasourceHintsProxyQueryParams,httpDatasourceHintsProxyBody:e.httpDatasourceHintsProxyBody==null?void 0:e.httpDatasourceHintsProxyBody,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),assetJsonLd:e.assetJsonLd==null?void 0:e.assetJsonLd,customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function j(e){return Yt(e,!1)}function Yt(e,t=!1){return e==null?e:{dataSourceAvailability:e.dataSourceAvailability,assetId:e.assetId,connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,title:e.title,creatorOrganizationName:e.creatorOrganizationName,onRequestContactEmail:e.onRequestContactEmail,onRequestContactEmailSubject:e.onRequestContactEmailSubject,language:e.language,description:e.description,descriptionShortText:e.descriptionShortText,isOwnConnector:e.isOwnConnector,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,httpDatasourceHintsProxyMethod:e.httpDatasourceHintsProxyMethod,httpDatasourceHintsProxyPath:e.httpDatasourceHintsProxyPath,httpDatasourceHintsProxyQueryParams:e.httpDatasourceHintsProxyQueryParams,httpDatasourceHintsProxyBody:e.httpDatasourceHintsProxyBody,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),assetJsonLd:e.assetJsonLd,customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function Ks(e){return!(!("assets"in e)||e.assets===void 0)}function Xt(e){return xt(e)}function xt(e,t){return e==null?e:{assets:e.assets.map(K)}}function Ws(e){return jt(e,!1)}function jt(e,t=!1){return e==null?e:{assets:e.assets.map(j)}}function Ys(e){return!(!("buildDate"in e)||e.buildDate===void 0||!("buildVersion"in e)||e.buildVersion===void 0)}function er(e){return tr(e)}function tr(e,t){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function Xs(e){return rr(e,!1)}function rr(e,t=!1){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function xs(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function js(e){return nr(e)}function nr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function ir(e){return ar(e,!1)}function ar(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function ec(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function or(e){return sr(e)}function sr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function tc(e){return cr(e,!1)}function cr(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function rc(e){return!(!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function nc(e){return ur(e)}function ur(e,t){return e==null?e:{businessPartnerNumbers:e.businessPartnerNumbers}}function dr(e){return lr(e,!1)}function lr(e,t=!1){return e==null?e:{businessPartnerNumbers:e.businessPartnerNumbers}}function ic(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function fr(e){return pr(e)}function pr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function ac(e){return mr(e,!1)}function mr(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function oc(e){return!0}function sc(e){return yr(e)}function yr(e,t){return e==null?e:{searchQuery:e.searchQuery==null?void 0:e.searchQuery,limit:e.limit==null?void 0:e.limit}}function gr(e){return hr(e,!1)}function hr(e,t=!1){return e==null?e:{searchQuery:e.searchQuery,limit:e.limit}}const Ne={ContractNegotiationFinalized:"CONTRACT_NEGOTIATION_FINALIZED",ContractNegotiationTerminated:"CONTRACT_NEGOTIATION_TERMINATED",TransferProcessStarted:"TRANSFER_PROCESS_STARTED",TransferProcessTerminated:"TRANSFER_PROCESS_TERMINATED",TransferProcessCompleted:"TRANSFER_PROCESS_COMPLETED"};function cc(e){for(const t in Ne)if(Object.prototype.hasOwnProperty.call(Ne,t)&&Ne[t]===e)return!0;return!1}function Sr(e){return Tr(e)}function Tr(e,t){return e}function Or(e){return e}function uc(e,t){return e}function dc(e){return!(!("url"in e)||e.url===void 0||!("events"in e)||e.events===void 0)}function Ce(e){return Nr(e)}function Nr(e,t){return e==null?e:{url:e.url,events:e.events.map(Sr),authHeaderName:e.authHeaderName==null?void 0:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName==null?void 0:e.authHeaderVaultSecretName}}function Pe(e){return Cr(e,!1)}function Cr(e,t=!1){return e==null?e:{url:e.url,events:e.events.map(Or),authHeaderName:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName}}const Je={Value:"VALUE",ValueList:"VALUE_LIST"};function lc(e){for(const t in Je)if(Object.prototype.hasOwnProperty.call(Je,t)&&Je[t]===e)return!0;return!1}function Pr(e){return Jr(e)}function Jr(e,t){return e}function fc(e){return e}function pc(e,t){return e}function mc(e){return!0}function Dr(e){return wr(e)}function wr(e,t){return e==null?e:{type:e.type==null?void 0:Pr(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Ar(e){return br(e,!1)}function br(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const De={Like:"LIKE",Eq:"EQ",In:"IN"};function yc(e){for(const t in De)if(Object.prototype.hasOwnProperty.call(De,t)&&De[t]===e)return!0;return!1}function Ir(e){return Ur(e)}function Ur(e,t){return e}function gc(e){return e}function hc(e,t){return e}function Sc(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function Fr(e){return _r(e)}function _r(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:Ir(e.operator),operandRight:Dr(e.operandRight)}}function Rr(e){return Er(e,!1)}function Er(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:Ar(e.operandRight)}}function Tc(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function Oc(e){return vr(e)}function vr(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId==null?void 0:e.participantId,limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,filterExpressions:e.filterExpressions==null?void 0:e.filterExpressions.map(Fr)}}function kr(e){return qr(e,!1)}function qr(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,limit:e.limit,offset:e.offset,filterExpressions:e.filterExpressions==null?void 0:e.filterExpressions.map(Rr)}}const we={Asc:"ASC",Desc:"DESC"};function Nc(e){for(const t in we)if(Object.prototype.hasOwnProperty.call(we,t)&&we[t]===e)return!0;return!1}function Lr(e){return Hr(e)}function Hr(e,t){return e}function Cc(e){return e}function Pc(e,t){return e}function Jc(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0)}function Vr(e){return Br(e)}function Br(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction==null?void 0:Lr(e.direction)}}function Mr(e){return Zr(e,!1)}function Zr(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction}}function Dc(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0)}function wc(e){return Gr(e)}function Gr(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(lt),limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,sortBy:e.sortBy==null?void 0:Vr(e.sortBy)}}function Qr(e){return zr(e,!1)}function zr(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(ft),limit:e.limit,offset:e.offset,sortBy:Mr(e.sortBy)}}function Ac(e){return!(!("numActiveConsumingContractAgreements"in e)||e.numActiveConsumingContractAgreements===void 0)}function $r(e){return Kr(e)}function Kr(e,t){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements==null?void 0:e.maxActiveConsumingContractAgreements}}function bc(e){return Wr(e,!1)}function Wr(e,t=!1){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements}}const Ae={Consuming:"CONSUMING",Providing:"PROVIDING"};function Ic(e){for(const t in Ae)if(Object.prototype.hasOwnProperty.call(Ae,t)&&Ae[t]===e)return!0;return!1}function pt(e){return Yr(e)}function Yr(e,t){return e}function Uc(e){return e}function Fc(e,t){return e}const be={Self:"SELF",Counterparty:"COUNTERPARTY"};function _c(e){for(const t in be)if(Object.prototype.hasOwnProperty.call(be,t)&&be[t]===e)return!0;return!1}function Xr(e){return xr(e)}function xr(e,t){return e}function Rc(e){return e}function Ec(e,t){return e}function vc(e){return!(!("terminatedAt"in e)||e.terminatedAt===void 0||!("reason"in e)||e.reason===void 0||!("detail"in e)||e.detail===void 0||!("terminatedBy"in e)||e.terminatedBy===void 0)}function mt(e){return jr(e)}function jr(e,t){return e==null?e:{terminatedAt:new Date(e.terminatedAt),reason:e.reason,detail:e.detail,terminatedBy:Xr(e.terminatedBy)}}function yt(e){return en(e,!1)}function en(e,t=!1){return e==null?e:{terminatedAt:e.terminatedAt.toISOString(),reason:e.reason,detail:e.detail,terminatedBy:e.terminatedBy}}const Ie={Running:"RUNNING",Ok:"OK",Error:"ERROR"};function kc(e){for(const t in Ie)if(Object.prototype.hasOwnProperty.call(Ie,t)&&Ie[t]===e)return!0;return!1}function tn(e){return rn(e)}function rn(e,t){return e}function qc(e){return e}function Lc(e,t){return e}function Hc(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function Ue(e){return nn(e)}function nn(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:tn(e.simplifiedState)}}function Fe(e){return an(e,!1)}function an(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function Vc(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("state"in e)||e.state===void 0)}function on(e){return sn(e)}function sn(e,t){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:new Date(e.lastUpdatedDate),state:Ue(e.state),errorMessage:e.errorMessage==null?void 0:e.errorMessage}}function cn(e){return un(e,!1)}function un(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:e.lastUpdatedDate.toISOString(),state:Fe(e.state),errorMessage:e.errorMessage}}const _e={Ongoing:"ONGOING",Terminated:"TERMINATED"};function Bc(e){for(const t in _e)if(Object.prototype.hasOwnProperty.call(_e,t)&&_e[t]===e)return!0;return!1}function gt(e){return dn(e)}function dn(e,t){return e}function Mc(e){return e}function Zc(e,t){return e}const Re={Eq:"EQ",Neq:"NEQ",Gt:"GT",Geq:"GEQ",Lt:"LT",Leq:"LEQ",In:"IN",HasPart:"HAS_PART",IsA:"IS_A",IsAllOf:"IS_ALL_OF",IsAnyOf:"IS_ANY_OF",IsNoneOf:"IS_NONE_OF"};function Gc(e){for(const t in Re)if(Object.prototype.hasOwnProperty.call(Re,t)&&Re[t]===e)return!0;return!1}function ln(e){return fn(e)}function fn(e,t){return e}function Qc(e){return e}function zc(e,t){return e}const Ee={String:"STRING",StringList:"STRING_LIST",Json:"JSON"};function $c(e){for(const t in Ee)if(Object.prototype.hasOwnProperty.call(Ee,t)&&Ee[t]===e)return!0;return!1}function pn(e){return mn(e)}function mn(e,t){return e}function Kc(e){return e}function Wc(e,t){return e}function Yc(e){return!(!("type"in e)||e.type===void 0)}function yn(e){return gn(e)}function gn(e,t){return e==null?e:{type:pn(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function hn(e){return Sn(e,!1)}function Sn(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}function Xc(e){return!(!("left"in e)||e.left===void 0||!("operator"in e)||e.operator===void 0||!("right"in e)||e.right===void 0)}function ht(e){return Tn(e)}function Tn(e,t){return e==null?e:{left:e.left,operator:ln(e.operator),right:yn(e.right)}}function St(e){return On(e,!1)}function On(e,t=!1){return e==null?e:{left:e.left,operator:e.operator,right:hn(e.right)}}const ve={Empty:"EMPTY",Constraint:"CONSTRAINT",And:"AND",Or:"OR",Xone:"XONE"};function xc(e){for(const t in ve)if(Object.prototype.hasOwnProperty.call(ve,t)&&ve[t]===e)return!0;return!1}function Nn(e){return Cn(e)}function Cn(e,t){return e}function jc(e){return e}function eu(e,t){return e}function tu(e){return!(!("type"in e)||e.type===void 0)}function ee(e){return Pn(e)}function Pn(e,t){return e==null?e:{type:Nn(e.type),expressions:e.expressions==null?void 0:e.expressions.map(ee),constraint:e.constraint==null?void 0:ht(e.constraint)}}function te(e){return Jn(e,!1)}function Jn(e,t=!1){return e==null?e:{type:e.type,expressions:e.expressions==null?void 0:e.expressions.map(te),constraint:St(e.constraint)}}function ru(e){return!(!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("errors"in e)||e.errors===void 0)}function re(e){return Dn(e)}function Dn(e,t){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:e.expression==null?void 0:ee(e.expression),errors:e.errors}}function ne(e){return wn(e,!1)}function wn(e,t=!1){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:te(e.expression),errors:e.errors}}function nu(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("direction"in e)||e.direction===void 0||!("counterPartyAddress"in e)||e.counterPartyAddress===void 0||!("counterPartyId"in e)||e.counterPartyId===void 0||!("contractSigningDate"in e)||e.contractSigningDate===void 0||!("asset"in e)||e.asset===void 0||!("contractPolicy"in e)||e.contractPolicy===void 0||!("transferProcesses"in e)||e.transferProcesses===void 0||!("terminationStatus"in e)||e.terminationStatus===void 0)}function Tt(e){return An(e)}function An(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:pt(e.direction),counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:new Date(e.contractSigningDate),asset:K(e.asset),contractPolicy:re(e.contractPolicy),transferProcesses:e.transferProcesses.map(on),terminationStatus:gt(e.terminationStatus),terminationInformation:e.terminationInformation==null?void 0:mt(e.terminationInformation)}}function bn(e){return In(e,!1)}function In(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:e.direction,counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:e.contractSigningDate.toISOString(),asset:j(e.asset),contractPolicy:ne(e.contractPolicy),transferProcesses:e.transferProcesses.map(cn),terminationStatus:e.terminationStatus,terminationInformation:yt(e.terminationInformation)}}function iu(e){return!(!("contractAgreements"in e)||e.contractAgreements===void 0)}function Un(e){return Fn(e)}function Fn(e,t){return e==null?e:{contractAgreements:e.contractAgreements.map(Tt)}}function au(e){return _n(e,!1)}function _n(e,t=!1){return e==null?e:{contractAgreements:e.contractAgreements.map(bn)}}function ou(e){return!0}function su(e){return Rn(e)}function Rn(e,t){return e==null?e:{terminationStatus:e.terminationStatus==null?void 0:gt(e.terminationStatus)}}function En(e){return vn(e,!1)}function vn(e,t=!1){return e==null?e:{terminationStatus:e.terminationStatus}}const ke={Value:"VALUE",ValueList:"VALUE_LIST"};function cu(e){for(const t in ke)if(Object.prototype.hasOwnProperty.call(ke,t)&&ke[t]===e)return!0;return!1}function kn(e){return qn(e)}function qn(e,t){return e}function uu(e){return e}function du(e,t){return e}function lu(e){return!0}function Ln(e){return Hn(e)}function Hn(e,t){return e==null?e:{type:e.type==null?void 0:kn(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Vn(e){return Bn(e,!1)}function Bn(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const qe={Eq:"EQ",In:"IN",Like:"LIKE"};function fu(e){for(const t in qe)if(Object.prototype.hasOwnProperty.call(qe,t)&&qe[t]===e)return!0;return!1}function Mn(e){return Zn(e)}function Zn(e,t){return e}function pu(e){return e}function mu(e,t){return e}function yu(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function Ot(e){return Gn(e)}function Gn(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:Mn(e.operator),operandRight:Ln(e.operandRight)}}function Nt(e){return Qn(e,!1)}function Qn(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:Vn(e.operandRight)}}function gu(e){return!(!("contractDefinitionId"in e)||e.contractDefinitionId===void 0||!("accessPolicyId"in e)||e.accessPolicyId===void 0||!("contractPolicyId"in e)||e.contractPolicyId===void 0||!("assetSelector"in e)||e.assetSelector===void 0)}function zn(e){return $n(e)}function $n(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(Ot)}}function Kn(e){return Wn(e,!1)}function Wn(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(Nt)}}function hu(e){return!(!("contractDefinitions"in e)||e.contractDefinitions===void 0)}function Yn(e){return Xn(e)}function Xn(e,t){return e==null?e:{contractDefinitions:e.contractDefinitions.map(zn)}}function Su(e){return xn(e,!1)}function xn(e,t=!1){return e==null?e:{contractDefinitions:e.contractDefinitions.map(Kn)}}function Tu(e){return!(!("contractDefinitionId"in e)||e.contractDefinitionId===void 0||!("contractPolicyId"in e)||e.contractPolicyId===void 0||!("accessPolicyId"in e)||e.accessPolicyId===void 0||!("assetSelector"in e)||e.assetSelector===void 0)}function Ou(e){return jn(e)}function jn(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(Ot)}}function ei(e){return ti(e,!1)}function ti(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(Nt)}}function Nu(e){return!(!("counterPartyId"in e)||e.counterPartyId===void 0||!("counterPartyAddress"in e)||e.counterPartyAddress===void 0||!("contractOfferId"in e)||e.contractOfferId===void 0||!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("assetId"in e)||e.assetId===void 0)}function Cu(e){return ri(e)}function ri(e,t){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce)}}function ni(e){return ii(e,!1)}function ii(e,t=!1){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Pe)}}const Le={InProgress:"IN_PROGRESS",Agreed:"AGREED",Terminated:"TERMINATED"};function Pu(e){for(const t in Le)if(Object.prototype.hasOwnProperty.call(Le,t)&&Le[t]===e)return!0;return!1}function ai(e){return oi(e)}function oi(e,t){return e}function Ju(e){return e}function Du(e,t){return e}function wu(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function He(e){return si(e)}function si(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:ai(e.simplifiedState)}}function Ve(e){return ci(e,!1)}function ci(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function Au(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0)}function ui(e){return di(e)}function di(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:He(e.state),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,contractAgreementTerminationInfo:e.contractAgreementTerminationInfo==null?void 0:mt(e.contractAgreementTerminationInfo),stateChangedAt:new Date(e.stateChangedAt)}}function bu(e){return li(e,!1)}function li(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:Ve(e.state),contractAgreementId:e.contractAgreementId,contractAgreementTerminationInfo:yt(e.contractAgreementTerminationInfo),stateChangedAt:e.stateChangedAt.toISOString()}}function Iu(e){return!(!("detail"in e)||e.detail===void 0||!("reason"in e)||e.reason===void 0)}function Uu(e){return fi(e)}function fi(e,t){return e==null?e:{detail:e.detail,reason:e.reason}}function pi(e){return mi(e,!1)}function mi(e,t=!1){return e==null?e:{detail:e.detail,reason:e.reason}}function Fu(e){return!(!("myDid"in e)||e.myDid===void 0||!("walletTokenUrl"in e)||e.walletTokenUrl===void 0||!("trustedVcIssuer"in e)||e.trustedVcIssuer===void 0||!("bdrsUrl"in e)||e.bdrsUrl===void 0||!("dimUrl"in e)||e.dimUrl===void 0)}function yi(e){return gi(e)}function gi(e,t){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function hi(e){return Si(e,!1)}function Si(e,t=!1){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function _u(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("jwksUrl"in e)||e.jwksUrl===void 0)}function Ti(e){return Oi(e)}function Oi(e,t){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function Ni(e){return Ci(e,!1)}function Ci(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function Ru(e){return!(!("numTotal"in e)||e.numTotal===void 0||!("numRunning"in e)||e.numRunning===void 0||!("numOk"in e)||e.numOk===void 0||!("numError"in e)||e.numError===void 0)}function Ct(e){return Pi(e)}function Pi(e,t){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function Pt(e){return Ji(e,!1)}function Ji(e,t=!1){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function Eu(e){return!(!("numAssets"in e)||e.numAssets===void 0||!("numPolicies"in e)||e.numPolicies===void 0||!("numContractDefinitions"in e)||e.numContractDefinitions===void 0||!("numContractAgreementsConsuming"in e)||e.numContractAgreementsConsuming===void 0||!("numContractAgreementsProviding"in e)||e.numContractAgreementsProviding===void 0||!("transferProcessesConsuming"in e)||e.transferProcessesConsuming===void 0||!("transferProcessesProviding"in e)||e.transferProcessesProviding===void 0||!("managementApiUrlShownInDashboard"in e)||e.managementApiUrlShownInDashboard===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("connectorParticipantId"in e)||e.connectorParticipantId===void 0||!("connectorTitle"in e)||e.connectorTitle===void 0||!("connectorDescription"in e)||e.connectorDescription===void 0||!("connectorCuratorUrl"in e)||e.connectorCuratorUrl===void 0||!("connectorCuratorName"in e)||e.connectorCuratorName===void 0||!("connectorMaintainerUrl"in e)||e.connectorMaintainerUrl===void 0||!("connectorMaintainerName"in e)||e.connectorMaintainerName===void 0)}function Di(e){return wi(e)}function wi(e,t){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:Ct(e.transferProcessesConsuming),transferProcessesProviding:Ct(e.transferProcessesProviding),managementApiUrlShownInDashboard:e.managementApiUrlShownInDashboard,connectorEndpoint:e.connectorEndpoint,connectorParticipantId:e.connectorParticipantId,connectorTitle:e.connectorTitle,connectorDescription:e.connectorDescription,connectorCuratorUrl:e.connectorCuratorUrl,connectorCuratorName:e.connectorCuratorName,connectorMaintainerUrl:e.connectorMaintainerUrl,connectorMaintainerName:e.connectorMaintainerName,connectorDapsConfig:e.connectorDapsConfig==null?void 0:Ti(e.connectorDapsConfig),connectorCxDidConfig:e.connectorCxDidConfig==null?void 0:yi(e.connectorCxDidConfig)}}function vu(e){return Ai(e,!1)}function Ai(e,t=!1){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:Pt(e.transferProcessesConsuming),transferProcessesProviding:Pt(e.transferProcessesProviding),managementApiUrlShownInDashboard:e.managementApiUrlShownInDashboard,connectorEndpoint:e.connectorEndpoint,connectorParticipantId:e.connectorParticipantId,connectorTitle:e.connectorTitle,connectorDescription:e.connectorDescription,connectorCuratorUrl:e.connectorCuratorUrl,connectorCuratorName:e.connectorCuratorName,connectorMaintainerUrl:e.connectorMaintainerUrl,connectorMaintainerName:e.connectorMaintainerName,connectorDapsConfig:Ni(e.connectorDapsConfig),connectorCxDidConfig:hi(e.connectorCxDidConfig)}}const Be={DontPublish:"DONT_PUBLISH",PublishUnrestricted:"PUBLISH_UNRESTRICTED",PublishRestricted:"PUBLISH_RESTRICTED"};function ku(e){for(const t in Be)if(Object.prototype.hasOwnProperty.call(Be,t)&&Be[t]===e)return!0;return!1}function bi(e){return Ii(e)}function Ii(e,t){return e}function qu(e){return e}function Lu(e,t){return e}const Me={HttpData:"HTTP_DATA",OnRequest:"ON_REQUEST",Custom:"CUSTOM"};function Hu(e){for(const t in Me)if(Object.prototype.hasOwnProperty.call(Me,t)&&Me[t]===e)return!0;return!1}function Ui(e){return Fi(e)}function Fi(e,t){return e}function Vu(e){return e}function Bu(e,t){return e}const Ze={Get:"GET",Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function Mu(e){for(const t in Ze)if(Object.prototype.hasOwnProperty.call(Ze,t)&&Ze[t]===e)return!0;return!1}function _i(e){return Ri(e)}function Ri(e,t){return e}function Zu(e){return e}function Gu(e,t){return e}function Qu(e){return!(!("headerName"in e)||e.headerName===void 0||!("vaultKey"in e)||e.vaultKey===void 0)}function Jt(e){return Ei(e)}function Ei(e,t){return e==null?e:{headerName:e.headerName,vaultKey:e.vaultKey}}function Dt(e){return vi(e,!1)}function vi(e,t=!1){return e==null?e:{headerName:e.headerName,vaultKey:e.vaultKey}}function zu(e){return!(!("username"in e)||e.username===void 0||!("password"in e)||e.password===void 0)}function wt(e){return ki(e)}function ki(e,t){return e==null?e:{username:e.username,password:e.password}}function At(e){return qi(e,!1)}function qi(e,t=!1){return e==null?e:{username:e.username,password:e.password}}const Ge={SharedSecret:"SHARED_SECRET",PrivateKey:"PRIVATE_KEY"};function $u(e){for(const t in Ge)if(Object.prototype.hasOwnProperty.call(Ge,t)&&Ge[t]===e)return!0;return!1}function Li(e){return Hi(e)}function Hi(e,t){return e}function Ku(e){return e}function Wu(e,t){return e}function Yu(e){return!(!("privateKeyName"in e)||e.privateKeyName===void 0||!("tokenValidityInSeconds"in e)||e.tokenValidityInSeconds===void 0)}function Vi(e){return Bi(e)}function Bi(e,t){return e==null?e:{privateKeyName:e.privateKeyName,tokenValidityInSeconds:e.tokenValidityInSeconds}}function Mi(e){return Zi(e,!1)}function Zi(e,t=!1){return e==null?e:{privateKeyName:e.privateKeyName,tokenValidityInSeconds:e.tokenValidityInSeconds}}function Xu(e){return!(!("clientId"in e)||e.clientId===void 0||!("clientSecretName"in e)||e.clientSecretName===void 0)}function Gi(e){return Qi(e)}function Qi(e,t){return e==null?e:{clientId:e.clientId,clientSecretName:e.clientSecretName}}function zi(e){return $i(e,!1)}function $i(e,t=!1){return e==null?e:{clientId:e.clientId,clientSecretName:e.clientSecretName}}function xu(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("type"in e)||e.type===void 0)}function Ki(e){return Wi(e)}function Wi(e,t){return e==null?e:{tokenUrl:e.tokenUrl,scope:e.scope==null?void 0:e.scope,type:Li(e.type),privateKey:e.privateKey==null?void 0:Vi(e.privateKey),sharedSecret:e.sharedSecret==null?void 0:Gi(e.sharedSecret)}}function Yi(e){return Xi(e,!1)}function Xi(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,scope:e.scope,type:e.type,privateKey:Mi(e.privateKey),sharedSecret:zi(e.sharedSecret)}}const Qe={Basic:"BASIC",Oauth2:"OAUTH2",ApiKey:"API_KEY"};function ju(e){for(const t in Qe)if(Object.prototype.hasOwnProperty.call(Qe,t)&&Qe[t]===e)return!0;return!1}function xi(e){return ji(e)}function ji(e,t){return e}function ed(e){return e}function td(e,t){return e}function rd(e){return!(!("type"in e)||e.type===void 0)}function ea(e){return ta(e)}function ta(e,t){return e==null?e:{type:xi(e.type),basic:e.basic==null?void 0:wt(e.basic),apiKey:e.apiKey==null?void 0:Jt(e.apiKey),oauth:e.oauth==null?void 0:Ki(e.oauth)}}function ra(e){return na(e,!1)}function na(e,t=!1){return e==null?e:{type:e.type,basic:At(e.basic),apiKey:Dt(e.apiKey),oauth:Yi(e.oauth)}}function nd(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function ia(e){return aa(e)}function aa(e,t){return e==null?e:{method:e.method==null?void 0:_i(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,auth:e.auth==null?void 0:ea(e.auth),headers:e.headers==null?void 0:e.headers,enableMethodParameterization:e.enableMethodParameterization==null?void 0:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization==null?void 0:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization==null?void 0:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization==null?void 0:e.enableBodyParameterization}}function oa(e){return sa(e,!1)}function sa(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,auth:ra(e.auth),headers:e.headers,enableMethodParameterization:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization}}function id(e){return!(!("contactEmail"in e)||e.contactEmail===void 0||!("contactPreferredEmailSubject"in e)||e.contactPreferredEmailSubject===void 0)}function ca(e){return ua(e)}function ua(e,t){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function da(e){return la(e,!1)}function la(e,t=!1){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function ad(e){return!(!("type"in e)||e.type===void 0)}function bt(e){return fa(e)}function fa(e,t){return e==null?e:{type:Ui(e.type),httpData:e.httpData==null?void 0:ia(e.httpData),onRequest:e.onRequest==null?void 0:ca(e.onRequest),customProperties:e.customProperties==null?void 0:e.customProperties}}function It(e){return pa(e,!1)}function pa(e,t=!1){return e==null?e:{type:e.type,httpData:oa(e.httpData),onRequest:da(e.onRequest),customProperties:e.customProperties}}function od(e){return!(!("dataSource"in e)||e.dataSource===void 0||!("id"in e)||e.id===void 0)}function ma(e){return ya(e)}function ya(e,t){return e==null?e:{dataSource:bt(e.dataSource),id:e.id,title:e.title==null?void 0:e.title,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function ze(e){return ga(e,!1)}function ga(e,t=!1){return e==null?e:{dataSource:It(e.dataSource),id:e.id,title:e.title,language:e.language,description:e.description,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function sd(e){return!(!("asset"in e)||e.asset===void 0||!("publishType"in e)||e.publishType===void 0)}function cd(e){return ha(e)}function ha(e,t){return e==null?e:{asset:ma(e.asset),publishType:bi(e.publishType),policyExpression:e.policyExpression==null?void 0:ee(e.policyExpression)}}function Sa(e){return Ta(e,!1)}function Ta(e,t=!1){return e==null?e:{asset:ze(e.asset),publishType:e.publishType,policyExpression:te(e.policyExpression)}}function ud(e){return!(!("baseUrl"in e)||e.baseUrl===void 0||!("authorizationHeaderValue"in e)||e.authorizationHeaderValue===void 0)}function Oa(e){return Na(e)}function Na(e,t){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:new Date(e.expiresAt)}}function dd(e){return Ca(e,!1)}function Ca(e,t=!1){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:e.expiresAt.toISOString()}}function ld(e){return!(!("id"in e)||e.id===void 0)}function $e(e){return Pa(e)}function Pa(e,t){return e==null?e:{id:e.id,available:e.available==null?void 0:e.available}}function fd(e){return Ja(e,!1)}function Ja(e,t=!1){return e==null?e:{id:e.id,available:e.available}}function pd(e){return!(!("id"in e)||e.id===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0)}function J(e){return Da(e)}function Da(e,t){return e==null?e:{id:e.id,lastUpdatedDate:new Date(e.lastUpdatedDate)}}function md(e){return wa(e,!1)}function wa(e,t=!1){return e==null?e:{id:e.id,lastUpdatedDate:e.lastUpdatedDate.toISOString()}}function yd(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferProcessRequestJsonLd"in e)||e.transferProcessRequestJsonLd===void 0)}function gd(e){return Aa(e)}function Aa(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function ba(e){return Ia(e,!1)}function Ia(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function hd(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferType"in e)||e.transferType===void 0||!("dataSinkProperties"in e)||e.dataSinkProperties===void 0||!("transferProcessProperties"in e)||e.transferProcessProperties===void 0)}function Sd(e){return Ua(e)}function Ua(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function Fa(e){return _a(e,!1)}function _a(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function Td(e){return!(!("incomingTransferProcessCounts"in e)||e.incomingTransferProcessCounts===void 0||!("outgoingTransferProcessCounts"in e)||e.outgoingTransferProcessCounts===void 0)}function Ra(e){return Ea(e)}function Ea(e,t){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function va(e){return ka(e,!1)}function ka(e,t=!1){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function Od(e){return!(!("assetsCount"in e)||e.assetsCount===void 0||!("policiesCount"in e)||e.policiesCount===void 0||!("contractDefinitionsCount"in e)||e.contractDefinitionsCount===void 0||!("contractAgreementsCount"in e)||e.contractAgreementsCount===void 0||!("transferProcessDto"in e)||e.transferProcessDto===void 0)}function qa(e){return La(e)}function La(e,t){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:Ra(e.transferProcessDto)}}function Nd(e){return Ha(e,!1)}function Ha(e,t=!1){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:va(e.transferProcessDto)}}function Cd(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("filter"in e)||e.filter===void 0)}function Pd(e){return Va(e)}function Va(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(lt),limit:e.limit==null?void 0:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce)}}function Ba(e){return Ma(e,!1)}function Ma(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(ft),limit:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Pe)}}function Jd(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0||!("asset"in e)||e.asset===void 0||!("policy"in e)||e.policy===void 0)}function Za(e){return Ga(e)}function Ga(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:He(e.state),stateChangedAt:new Date(e.stateChangedAt),asset:K(e.asset),policy:re(e.policy)}}function Dd(e){return Qa(e,!1)}function Qa(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId,state:Ve(e.state),stateChangedAt:e.stateChangedAt.toISOString(),asset:j(e.asset),policy:ne(e.policy)}}function wd(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("expression"in e)||e.expression===void 0)}function Ad(e){return za(e)}function za(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:ee(e.expression)}}function $a(e){return Ka(e,!1)}function Ka(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:te(e.expression)}}function bd(e){return!0}function Wa(e){return Ya(e)}function Ya(e,t){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(ht)}}function Xa(e){return xa(e,!1)}function xa(e,t=!1){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(St)}}function Id(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function Ud(e){return ja(e)}function ja(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:Wa(e.policy)}}function eo(e){return to(e,!1)}function to(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:Xa(e.policy)}}function Fd(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function ro(e){return no(e)}function no(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:re(e.policy)}}function io(e){return ao(e,!1)}function ao(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:ne(e.policy)}}function _d(e){return!(!("policies"in e)||e.policies===void 0)}function oo(e){return so(e)}function so(e,t){return e==null?e:{policies:e.policies.map(ro)}}function Rd(e){return co(e,!1)}function co(e,t=!1){return e==null?e:{policies:e.policies.map(io)}}function Ed(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("createdDate"in e)||e.createdDate===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("transferType"in e)||e.transferType===void 0||!("state"in e)||e.state===void 0||!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("direction"in e)||e.direction===void 0||!("counterPartyConnectorEndpoint"in e)||e.counterPartyConnectorEndpoint===void 0||!("counterPartyParticipantId"in e)||e.counterPartyParticipantId===void 0||!("assetName"in e)||e.assetName===void 0||!("assetId"in e)||e.assetId===void 0||!("isEdrConsumable"in e)||e.isEdrConsumable===void 0)}function uo(e){return lo(e)}function lo(e,t){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:new Date(e.createdDate),lastUpdatedDate:new Date(e.lastUpdatedDate),transferType:e.transferType,state:Ue(e.state),contractAgreementId:e.contractAgreementId,direction:pt(e.direction),counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage==null?void 0:e.errorMessage,isEdrConsumable:e.isEdrConsumable}}function fo(e){return po(e,!1)}function po(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:e.createdDate.toISOString(),lastUpdatedDate:e.lastUpdatedDate.toISOString(),transferType:e.transferType,state:Fe(e.state),contractAgreementId:e.contractAgreementId,direction:e.direction,counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage,isEdrConsumable:e.isEdrConsumable}}function vd(e){return!(!("transferEntries"in e)||e.transferEntries===void 0)}function mo(e){return yo(e)}function yo(e,t){return e==null?e:{transferEntries:e.transferEntries.map(uo)}}function kd(e){return go(e,!1)}function go(e,t=!1){return e==null?e:{transferEntries:e.transferEntries.map(fo)}}function qd(e){return!(!("transferId"in e)||e.transferId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0||!("isEdrConsumable"in e)||e.isEdrConsumable===void 0)}function ho(e){return So(e)}function So(e,t){return e==null?e:{transferId:e.transferId,state:Ue(e.state),stateChangedAt:new Date(e.stateChangedAt),isEdrConsumable:e.isEdrConsumable}}function Ld(e){return To(e,!1)}function To(e,t=!1){return e==null?e:{transferId:e.transferId,state:Fe(e.state),stateChangedAt:e.stateChangedAt.toISOString(),isEdrConsumable:e.isEdrConsumable}}function Hd(e){return!0}function Vd(e){return Oo(e)}function Oo(e,t){return e==null?e:{dataSourceOverrideOrNull:e.dataSourceOverrideOrNull==null?void 0:bt(e.dataSourceOverrideOrNull),title:e.title==null?void 0:e.title,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function No(e){return Co(e,!1)}function Co(e,t=!1){return e==null?e:{dataSourceOverrideOrNull:It(e.dataSourceOverrideOrNull),title:e.title,language:e.language,description:e.description,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}const Ke={ConnectorLimits:"CONNECTOR_LIMITS",OpenSourceMarketing:"OPEN_SOURCE_MARKETING",EeBasicMarketing:"EE_BASIC_MARKETING",CatenaPolicies:"CATENA_POLICIES",SovityPolicies:"SOVITY_POLICIES",BusinessPartnerGroupManagement:"BUSINESS_PARTNER_GROUP_MANAGEMENT"};function Bd(e){for(const t in Ke)if(Object.prototype.hasOwnProperty.call(Ke,t)&&Ke[t]===e)return!0;return!1}function Po(e){return Jo(e)}function Jo(e,t){return e}function Do(e){return e}function Md(e,t){return e}function Zd(e){return!(!("participantId"in e)||e.participantId===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function wo(e){return Ao(e)}function Ao(e,t){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function bo(e){return Io(e,!1)}function Io(e,t=!1){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function Gd(e){return!(!("features"in e)||e.features===void 0||!("preconfiguredCounterparties"in e)||e.preconfiguredCounterparties===void 0)}function Uo(e){return Fo(e)}function Fo(e,t){return e==null?e:{features:e.features.map(Po),preconfiguredCounterparties:e.preconfiguredCounterparties.map(wo),logoutUrl:e.logoutUrl==null?void 0:e.logoutUrl,documentationUrl:e.documentationUrl==null?void 0:e.documentationUrl,supportUrl:e.supportUrl==null?void 0:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl==null?void 0:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl==null?void 0:e.legalNoticeUrl}}function Qd(e){return _o(e,!1)}function _o(e,t=!1){return e==null?e:{features:e.features.map(Do),preconfiguredCounterparties:e.preconfiguredCounterparties.map(bo),logoutUrl:e.logoutUrl,documentationUrl:e.documentationUrl,supportUrl:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl}}function zd(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("createdAt"in e)||e.createdAt===void 0||!("state"in e)||e.state===void 0)}function Ut(e){return Ro(e)}function Ro(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:new Date(e.createdAt),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:He(e.state)}}function $d(e){return Eo(e,!1)}function Eo(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:e.createdAt.toISOString(),contractAgreementId:e.contractAgreementId,state:Ve(e.state)}}function Kd(e){return!(!("contractOfferId"in e)||e.contractOfferId===void 0||!("policy"in e)||e.policy===void 0)}function vo(e){return ko(e)}function ko(e,t){return e==null?e:{contractOfferId:e.contractOfferId,policy:re(e.policy)}}function qo(e){return Lo(e,!1)}function Lo(e,t=!1){return e==null?e:{contractOfferId:e.contractOfferId,policy:ne(e.policy)}}function Wd(e){return!(!("endpoint"in e)||e.endpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("asset"in e)||e.asset===void 0||!("contractOffers"in e)||e.contractOffers===void 0)}function ie(e){return Ho(e)}function Ho(e,t){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:K(e.asset),contractOffers:e.contractOffers.map(vo)}}function Yd(e){return Vo(e,!1)}function Vo(e,t=!1){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:j(e.asset),contractOffers:e.contractOffers.map(qo)}}const We={Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function Xd(e){for(const t in We)if(Object.prototype.hasOwnProperty.call(We,t)&&We[t]===e)return!0;return!1}function Bo(e){return Mo(e)}function Mo(e,t){return e}function xd(e){return e}function jd(e,t){return e}const Ye={Basic:"BASIC",ApiKey:"API_KEY"};function el(e){for(const t in Ye)if(Object.prototype.hasOwnProperty.call(Ye,t)&&Ye[t]===e)return!0;return!1}function Zo(e){return Go(e)}function Go(e,t){return e}function tl(e){return e}function rl(e,t){return e}function nl(e){return!(!("type"in e)||e.type===void 0)}function Qo(e){return zo(e)}function zo(e,t){return e==null?e:{type:Zo(e.type),basic:e.basic==null?void 0:wt(e.basic),apiKey:e.apiKey==null?void 0:Jt(e.apiKey)}}function $o(e){return Ko(e,!1)}function Ko(e,t=!1){return e==null?e:{type:e.type,basic:At(e.basic),apiKey:Dt(e.apiKey)}}function il(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function Wo(e){return Yo(e)}function Yo(e,t){return e==null?e:{method:e.method==null?void 0:Bo(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,auth:e.auth==null?void 0:Qo(e.auth),headers:e.headers==null?void 0:e.headers}}function Xo(e){return xo(e,!1)}function xo(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,auth:$o(e.auth),headers:e.headers}}const Xe={HttpDataPush:"HTTP_DATA_PUSH",HttpDataProxy:"HTTP_DATA_PROXY",Custom:"CUSTOM"};function al(e){for(const t in Xe)if(Object.prototype.hasOwnProperty.call(Xe,t)&&Xe[t]===e)return!0;return!1}function jo(e){return es(e)}function es(e,t){return e}function ol(e){return e}function sl(e,t){return e}function cl(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("type"in e)||e.type===void 0)}function ul(e){return ts(e)}function ts(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,type:jo(e.type),httpDataPush:e.httpDataPush==null?void 0:Wo(e.httpDataPush),callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce),customDataSinkProperties:e.customDataSinkProperties==null?void 0:e.customDataSinkProperties,customTransferPrivateProperties:e.customTransferPrivateProperties==null?void 0:e.customTransferPrivateProperties,customTransferType:e.customTransferType==null?void 0:e.customTransferType}}function rs(e){return ns(e,!1)}function ns(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,type:e.type,httpDataPush:Xo(e.httpDataPush),callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Pe),customDataSinkProperties:e.customDataSinkProperties,customTransferPrivateProperties:e.customTransferPrivateProperties,customTransferType:e.customTransferType}}function dl(e){return!(!("key"in e)||e.key===void 0||!("value"in e)||e.value===void 0||!("description"in e)||e.description===void 0)}function ll(e){return is(e)}function is(e,t){return e==null?e:{key:e.key,value:e.value,description:e.description}}function as(e){return os(e,!1)}function os(e,t=!1){return e==null?e:{key:e.key,value:e.value,description:e.description}}function fl(e){return!(!("key"in e)||e.key===void 0||!("description"in e)||e.description===void 0)}function ss(e){return cs(e)}function cs(e,t){return e==null?e:{key:e.key,description:e.description}}function pl(e){return us(e,!1)}function us(e,t=!1){return e==null?e:{key:e.key,description:e.description}}function ml(e){return!(!("description"in e)||e.description===void 0)}function yl(e){return ds(e)}function ds(e,t){return e==null?e:{value:e.value==null?void 0:e.value,description:e.description}}function ls(e){return fs(e,!1)}function fs(e,t=!1){return e==null?e:{value:e.value,description:e.description}}function gl(e){return!(!("key"in e)||e.key===void 0||!("description"in e)||e.description===void 0||!("updatedAt"in e)||e.updatedAt===void 0)}function ps(e){return ms(e)}function ms(e,t){return e==null?e:{key:e.key,description:e.description,updatedAt:new Date(e.updatedAt)}}function hl(e){return ys(e,!1)}function ys(e,t=!1){return e==null?e:{key:e.key,description:e.description,updatedAt:e.updatedAt.toISOString()}}function Sl(e){return!0}function Tl(e){return gs(e)}function gs(e,t){return e==null?e:{searchQuery:e.searchQuery==null?void 0:e.searchQuery,limit:e.limit==null?void 0:e.limit}}function hs(e){return Ss(e,!1)}function Ss(e,t=!1){return e==null?e:{searchQuery:e.searchQuery,limit:e.limit}}class Ts extends ${async connectorLimitsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ee/connector-limits",method:"GET",headers:i,query:r},t);return new y(a,o=>$r(o))}async connectorLimits(t){return await(await this.connectorLimitsRaw(t)).value()}async fileUploadCreateAssetRaw(t,r){if(t.blobId==null)throw new C("blobId",'Required parameter "blobId" was null or undefined when calling fileUploadCreateAsset().');if(t.uiAssetCreateRequest==null)throw new C("uiAssetCreateRequest",'Required parameter "uiAssetCreateRequest" was null or undefined when calling fileUploadCreateAsset().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ee/file-upload/blobs/{blobId}/asset".replace("{blobId}",encodeURIComponent(String(t.blobId))),method:"POST",headers:a,query:i,body:ze(t.uiAssetCreateRequest)},r);return new Bt(o)}async fileUploadCreateAsset(t,r){await this.fileUploadCreateAssetRaw(t,r)}async fileUploadRequestSasTokenRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ee/file-upload/blobs",method:"POST",headers:i,query:r},t);return this.isJsonMime(a.headers.get("content-type"))?new y(a):new Mt(a)}async fileUploadRequestSasToken(t){return await(await this.fileUploadRequestSasTokenRaw(t)).value()}}class Os extends ${async buildInfoRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/build-info",method:"GET",headers:i,query:r},t);return new y(a,o=>er(o))}async buildInfo(t){return await(await this.buildInfoRaw(t)).value()}async businessPartnerGroupCreateSubmitRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/create",method:"POST",headers:a,query:i,body:ir(t.businessPartnerGroupCreateSubmit)},r);return new y(o,s=>J(s))}async businessPartnerGroupCreateSubmit(t={},r){return await(await this.businessPartnerGroupCreateSubmitRaw(t,r)).value()}async businessPartnerGroupEditPageRaw(t,r){if(t.id==null)throw new C("id",'Required parameter "id" was null or undefined when calling businessPartnerGroupEditPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}/edit-page".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:i},r);return new y(o,s=>or(s))}async businessPartnerGroupEditPage(t,r){return await(await this.businessPartnerGroupEditPageRaw(t,r)).value()}async businessPartnerGroupEditSubmitRaw(t,r){if(t.id==null)throw new C("id",'Required parameter "id" was null or undefined when calling businessPartnerGroupEditSubmit().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}/edit-group".replace("{id}",encodeURIComponent(String(t.id))),method:"PUT",headers:a,query:i,body:dr(t.businessPartnerGroupEditSubmit)},r);return new y(o,s=>J(s))}async businessPartnerGroupEditSubmit(t,r){return await(await this.businessPartnerGroupEditSubmitRaw(t,r)).value()}async businessPartnerGroupListPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/list-page",method:"GET",headers:a,query:i,body:gr(t.businessPartnerGroupQuery)},r);return new y(o,s=>s.map(fr))}async businessPartnerGroupListPage(t={},r){return await(await this.businessPartnerGroupListPageRaw(t,r)).value()}async createAssetRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/asset-page/assets",method:"POST",headers:a,query:i,body:ze(t.uiAssetCreateRequest)},r);return new y(o,s=>J(s))}async createAsset(t={},r){return await(await this.createAssetRaw(t,r)).value()}async createContractDefinitionRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-definition-page/contract-definitions",method:"POST",headers:a,query:i,body:ei(t.contractDefinitionRequest)},r);return new y(o,s=>J(s))}async createContractDefinition(t={},r){return await(await this.createContractDefinitionRaw(t,r)).value()}async createDataOfferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/create-data-offer",method:"POST",headers:a,query:i,body:Sa(t.dataOfferCreateRequest)},r);return new y(o,s=>J(s))}async createDataOffer(t={},r){return await(await this.createDataOfferRaw(t,r)).value()}async createPolicyDefinitionRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/policy-page/policy-definitions",method:"POST",headers:a,query:i,body:eo(t.policyDefinitionCreateRequest)},r);return new y(o,s=>J(s))}async createPolicyDefinition(t={},r){return await(await this.createPolicyDefinitionRaw(t,r)).value()}async createPolicyDefinitionV2Raw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/v2/pages/policy-page/policy-definitions",method:"POST",headers:a,query:i,body:$a(t.policyDefinitionCreateDto)},r);return new y(o,s=>J(s))}async createPolicyDefinitionV2(t={},r){return await(await this.createPolicyDefinitionV2Raw(t,r)).value()}async createVaultSecretRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/vault-secrets/create-secret",method:"POST",headers:a,query:i,body:as(t.vaultSecretCreateSubmit)},r);return new y(o,s=>J(s))}async createVaultSecret(t={},r){return await(await this.createVaultSecretRaw(t,r)).value()}async deleteAssetRaw(t,r){if(t.assetId==null)throw new C("assetId",'Required parameter "assetId" was null or undefined when calling deleteAsset().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/asset-page/assets/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"DELETE",headers:a,query:i},r);return new y(o,s=>J(s))}async deleteAsset(t,r){return await(await this.deleteAssetRaw(t,r)).value()}async deleteBusinessPartnerGroupRaw(t,r){if(t.id==null)throw new C("id",'Required parameter "id" was null or undefined when calling deleteBusinessPartnerGroup().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}".replace("{id}",encodeURIComponent(String(t.id))),method:"DELETE",headers:a,query:i},r);return new y(o,s=>J(s))}async deleteBusinessPartnerGroup(t,r){return await(await this.deleteBusinessPartnerGroupRaw(t,r)).value()}async deleteContractDefinitionRaw(t,r){if(t.contractDefinitionId==null)throw new C("contractDefinitionId",'Required parameter "contractDefinitionId" was null or undefined when calling deleteContractDefinition().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-definition-page/contract-definitions/{contractDefinitionId}".replace("{contractDefinitionId}",encodeURIComponent(String(t.contractDefinitionId))),method:"DELETE",headers:a,query:i},r);return new y(o,s=>J(s))}async deleteContractDefinition(t,r){return await(await this.deleteContractDefinitionRaw(t,r)).value()}async deletePolicyDefinitionRaw(t,r){if(t.policyId==null)throw new C("policyId",'Required parameter "policyId" was null or undefined when calling deletePolicyDefinition().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/policy-page/policy-definitions/{policyId}".replace("{policyId}",encodeURIComponent(String(t.policyId))),method:"DELETE",headers:a,query:i},r);return new y(o,s=>J(s))}async deletePolicyDefinition(t,r){return await(await this.deletePolicyDefinitionRaw(t,r)).value()}async deleteVaultSecretRaw(t,r){if(t.key==null)throw new C("key",'Required parameter "key" was null or undefined when calling deleteVaultSecret().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/vault-secrets/{key}".replace("{key}",encodeURIComponent(String(t.key))),method:"DELETE",headers:a,query:i},r);return new y(o,s=>J(s))}async deleteVaultSecret(t,r){return await(await this.deleteVaultSecretRaw(t,r)).value()}async editAssetRaw(t,r){if(t.assetId==null)throw new C("assetId",'Required parameter "assetId" was null or undefined when calling editAsset().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/asset-page/assets/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"PUT",headers:a,query:i,body:No(t.uiAssetEditRequest)},r);return new y(o,s=>J(s))}async editAsset(t,r){return await(await this.editAssetRaw(t,r)).value()}async editVaultSecretRaw(t,r){if(t.key==null)throw new C("key",'Required parameter "key" was null or undefined when calling editVaultSecret().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/vault-secrets/{key}/edit-secret".replace("{key}",encodeURIComponent(String(t.key))),method:"PUT",headers:a,query:i,body:ls(t.vaultSecretEditSubmit)},r);return new y(o,s=>J(s))}async editVaultSecret(t,r){return await(await this.editVaultSecretRaw(t,r)).value()}async editVaultSecretPageRaw(t,r){if(t.key==null)throw new C("key",'Required parameter "key" was null or undefined when calling editVaultSecretPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/vault-secrets/{key}/edit-secret".replace("{key}",encodeURIComponent(String(t.key))),method:"GET",headers:a,query:i},r);return new y(o,s=>ss(s))}async editVaultSecretPage(t,r){return await(await this.editVaultSecretPageRaw(t,r)).value()}async getAssetPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/asset-page",method:"GET",headers:i,query:r},t);return new y(a,o=>Xt(o))}async getAssetPage(t){return await(await this.getAssetPageRaw(t)).value()}async getCatalogPageDataOfferRaw(t,r){if(t.participantId==null)throw new C("participantId",'Required parameter "participantId" was null or undefined when calling getCatalogPageDataOffer().');if(t.connectorEndpoint==null)throw new C("connectorEndpoint",'Required parameter "connectorEndpoint" was null or undefined when calling getCatalogPageDataOffer().');if(t.dataOfferId==null)throw new C("dataOfferId",'Required parameter "dataOfferId" was null or undefined when calling getCatalogPageDataOffer().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/{connectorEndpoint}/{participantId}/data-offers/{dataOfferId}".replace("{participantId}",encodeURIComponent(String(t.participantId))).replace("{connectorEndpoint}",encodeURIComponent(String(t.connectorEndpoint))).replace("{dataOfferId}",encodeURIComponent(String(t.dataOfferId))),method:"GET",headers:a,query:i},r);return new y(o,s=>ie(s))}async getCatalogPageDataOffer(t,r){return await(await this.getCatalogPageDataOfferRaw(t,r)).value()}async getCatalogPageDataOffersRaw(t,r){const i={};t.participantId!=null&&(i.participantId=t.participantId),t.connectorEndpoint!=null&&(i.connectorEndpoint=t.connectorEndpoint);const a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/data-offers",method:"GET",headers:a,query:i},r);return new y(o,s=>s.map(ie))}async getCatalogPageDataOffers(t={},r){return await(await this.getCatalogPageDataOffersRaw(t,r)).value()}async getContractAgreementCardRaw(t,r){if(t.contractAgreementId==null)throw new C("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling getContractAgreementCard().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/{contractAgreementId}".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"GET",headers:a,query:i},r);return new y(o,s=>Tt(s))}async getContractAgreementCard(t,r){return await(await this.getContractAgreementCardRaw(t,r)).value()}async getContractAgreementPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page",method:"POST",headers:a,query:i,body:En(t.contractAgreementPageQuery)},r);return new y(o,s=>Un(s))}async getContractAgreementPage(t={},r){return await(await this.getContractAgreementPageRaw(t,r)).value()}async getContractDefinitionPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/contract-definition-page",method:"GET",headers:i,query:r},t);return new y(a,o=>Yn(o))}async getContractDefinitionPage(t){return await(await this.getContractDefinitionPageRaw(t)).value()}async getContractNegotiationRaw(t,r){if(t.contractNegotiationId==null)throw new C("contractNegotiationId",'Required parameter "contractNegotiationId" was null or undefined when calling getContractNegotiation().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/contract-negotiations/{contractNegotiationId}".replace("{contractNegotiationId}",encodeURIComponent(String(t.contractNegotiationId))),method:"GET",headers:a,query:i},r);return new y(o,s=>Ut(s))}async getContractNegotiation(t,r){return await(await this.getContractNegotiationRaw(t,r)).value()}async getDashboardPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/dashboard-page",method:"GET",headers:i,query:r},t);return new y(a,o=>Di(o))}async getDashboardPage(t){return await(await this.getDashboardPageRaw(t)).value()}async getPolicyDefinitionPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/policy-page",method:"GET",headers:i,query:r},t);return new y(a,o=>oo(o))}async getPolicyDefinitionPage(t){return await(await this.getPolicyDefinitionPageRaw(t)).value()}async getTransferHistoryPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/transfer-history-page",method:"GET",headers:i,query:r},t);return new y(a,o=>mo(o))}async getTransferHistoryPage(t){return await(await this.getTransferHistoryPageRaw(t)).value()}async getTransferProcessAssetRaw(t,r){if(t.transferProcessId==null)throw new C("transferProcessId",'Required parameter "transferProcessId" was null or undefined when calling getTransferProcessAsset().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/transfer-history-page/transfer-processes/{transferProcessId}/asset".replace("{transferProcessId}",encodeURIComponent(String(t.transferProcessId))),method:"GET",headers:a,query:i},r);return new y(o,s=>K(s))}async getTransferProcessAsset(t,r){return await(await this.getTransferProcessAssetRaw(t,r)).value()}async initiateContractNegotiationRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/catalog-page/contract-negotiations",method:"POST",headers:a,query:i,body:ni(t.contractNegotiationRequest)},r);return new y(o,s=>Ut(s))}async initiateContractNegotiation(t={},r){return await(await this.initiateContractNegotiationRaw(t,r)).value()}async initiateCustomTransferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/transfers/custom",method:"POST",headers:a,query:i,body:ba(t.initiateCustomTransferRequest)},r);return new y(o,s=>J(s))}async initiateCustomTransfer(t={},r){return await(await this.initiateCustomTransferRaw(t,r)).value()}async initiateTransferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/transfers",method:"POST",headers:a,query:i,body:Fa(t.initiateTransferRequest)},r);return new y(o,s=>J(s))}async initiateTransfer(t={},r){return await(await this.initiateTransferRaw(t,r)).value()}async initiateTransferV2Raw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/initiate-transfer-v2",method:"POST",headers:a,query:i,body:rs(t.uiInitiateTransferRequest)},r);return new y(o,s=>J(s))}async initiateTransferV2(t={},r){return await(await this.initiateTransferV2Raw(t,r)).value()}async isAssetIdAvailableRaw(t,r){if(t.assetId==null)throw new C("assetId",'Required parameter "assetId" was null or undefined when calling isAssetIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-asset-id/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"GET",headers:a,query:i},r);return new y(o,s=>$e(s))}async isAssetIdAvailable(t,r){return await(await this.isAssetIdAvailableRaw(t,r)).value()}async isContractDefinitionIdAvailableRaw(t,r){if(t.contractDefinitionId==null)throw new C("contractDefinitionId",'Required parameter "contractDefinitionId" was null or undefined when calling isContractDefinitionIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-contract-definition-id/{contractDefinitionId}".replace("{contractDefinitionId}",encodeURIComponent(String(t.contractDefinitionId))),method:"GET",headers:a,query:i},r);return new y(o,s=>$e(s))}async isContractDefinitionIdAvailable(t,r){return await(await this.isContractDefinitionIdAvailableRaw(t,r)).value()}async isPolicyIdAvailableRaw(t,r){if(t.policyId==null)throw new C("policyId",'Required parameter "policyId" was null or undefined when calling isPolicyIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-policy-id/{policyId}".replace("{policyId}",encodeURIComponent(String(t.policyId))),method:"GET",headers:a,query:i},r);return new y(o,s=>$e(s))}async isPolicyIdAvailable(t,r){return await(await this.isPolicyIdAvailableRaw(t,r)).value()}async listVaultSecretsPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/vault-secrets/list-page",method:"GET",headers:a,query:i,body:hs(t.vaultSecretQuery)},r);return new y(o,s=>s.map(ps))}async listVaultSecretsPage(t={},r){return await(await this.listVaultSecretsPageRaw(t,r)).value()}async terminateContractAgreementRaw(t,r){if(t.contractAgreementId==null)throw new C("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling terminateContractAgreement().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/content-agreement-page/{contractAgreementId}/terminate".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"POST",headers:a,query:i,body:pi(t.contractTerminationRequest)},r);return new y(o,s=>J(s))}async terminateContractAgreement(t,r){return await(await this.terminateContractAgreementRaw(t,r)).value()}async uiConfigRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/config",method:"GET",headers:i,query:r},t);return new y(a,o=>Uo(o))}async uiConfig(t){return await(await this.uiConfigRaw(t)).value()}}class Ns extends ${async getContractNegotiationStatesRaw(t,r){if(t.requestBody==null)throw new C("requestBody",'Required parameter "requestBody" was null or undefined when calling getContractNegotiationStates().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/contract-negotiations/states",method:"POST",headers:a,query:i,body:t.requestBody},r);return new y(o,s=>s.map(ui))}async getContractNegotiationStates(t,r){return await(await this.getContractNegotiationStatesRaw(t,r)).value()}async getKpisRaw(t){const r={},i={},a=await this.request({path:"/wrapper/use-case-api/kpis",method:"GET",headers:i,query:r},t);return new y(a,o=>qa(o))}async getKpis(t){return await(await this.getKpisRaw(t)).value()}async getSupportedFunctionsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/use-case-api/supported-policy-functions",method:"GET",headers:i,query:r},t);return new y(a)}async getSupportedFunctions(t){return await(await this.getSupportedFunctionsRaw(t)).value()}async getTransferProcessEdrRaw(t,r){if(t.transferId==null)throw new C("transferId",'Required parameter "transferId" was null or undefined when calling getTransferProcessEdr().');const i={},a={},o=await this.request({path:"/wrapper/use-case-api/transfers/{transferId}/edr".replace("{transferId}",encodeURIComponent(String(t.transferId))),method:"POST",headers:a,query:i},r);return new y(o,s=>Oa(s))}async getTransferProcessEdr(t,r){return await(await this.getTransferProcessEdrRaw(t,r)).value()}async getTransferProcessStatesRaw(t,r){if(t.requestBody==null)throw new C("requestBody",'Required parameter "requestBody" was null or undefined when calling getTransferProcessStates().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/transfers/states",method:"POST",headers:a,query:i,body:t.requestBody},r);return new y(o,s=>s.map(ho))}async getTransferProcessStates(t,r){return await(await this.getTransferProcessStatesRaw(t,r)).value()}async negotiateAllRaw(t,r){if(t.negotiateAllQuery==null)throw new C("negotiateAllQuery",'Required parameter "negotiateAllQuery" was null or undefined when calling negotiateAll().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/negotiations/quick-initiate",method:"POST",headers:a,query:i,body:Ba(t.negotiateAllQuery)},r);return new y(o,s=>s.map(Za))}async negotiateAll(t,r){return await(await this.negotiateAllRaw(t,r)).value()}async queryCatalogRaw(t,r){if(t.catalogQuery==null)throw new C("catalogQuery",'Required parameter "catalogQuery" was null or undefined when calling queryCatalog().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/catalog",method:"POST",headers:a,query:i,body:kr(t.catalogQuery)},r);return new y(o,s=>s.map(ie))}async queryCatalog(t,r){return await(await this.queryCatalogRaw(t,r)).value()}async queryCatalogV2Raw(t,r){if(t.catalogQueryV2==null)throw new C("catalogQueryV2",'Required parameter "catalogQueryV2" was null or undefined when calling queryCatalogV2().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/catalog-v2",method:"POST",headers:a,query:i,body:Qr(t.catalogQueryV2)},r);return new y(o,s=>s.map(ie))}async queryCatalogV2(t,r){return await(await this.queryCatalogV2Raw(t,r)).value()}async terminateTransferProcessRaw(t,r){if(t.transferId==null)throw new C("transferId",'Required parameter "transferId" was null or undefined when calling terminateTransferProcess().');const i={},a={},o=await this.request({path:"/wrapper/use-case-api/transfers/{transferId}/terminate".replace("{transferId}",encodeURIComponent(String(t.transferId))),method:"POST",headers:a,query:i},r);return new y(o,s=>J(s))}async terminateTransferProcess(t,r){return await(await this.terminateTransferProcessRaw(t,r)).value()}}var N;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function r(a){throw new Error}e.assertNever=r,e.arrayToEnum=a=>{const o={};for(const s of a)o[s]=s;return o},e.getValidEnumValues=a=>{const o=e.objectKeys(a).filter(c=>typeof a[a[c]]!="number"),s={};for(const c of o)s[c]=a[c];return e.objectValues(s)},e.objectValues=a=>e.objectKeys(a).map(function(o){return a[o]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const o=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&o.push(s);return o},e.find=(a,o)=>{for(const s of a)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function i(a,o=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(N||(N={}));var Ft;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Ft||(Ft={}));const l=N.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),H=e=>{switch(typeof e){case"undefined":return l.undefined;case"string":return l.string;case"number":return isNaN(e)?l.nan:l.number;case"boolean":return l.boolean;case"function":return l.function;case"bigint":return l.bigint;case"symbol":return l.symbol;case"object":return Array.isArray(e)?l.array:e===null?l.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?l.promise:typeof Map<"u"&&e instanceof Map?l.map:typeof Set<"u"&&e instanceof Set?l.set:typeof Date<"u"&&e instanceof Date?l.date:l.object;default:return l.unknown}},u=N.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Ol=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class I extends Error{constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(o){return o.message},i={_errors:[]},a=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)i._errors.push(r(s));else{let c=i,p=0;for(;p<s.path.length;){const d=s.path[p];p===s.path.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(r(s))):c[d]=c[d]||{_errors:[]},c=c[d],p++}}};return a(this),i}toString(){return this.message}get message(){return JSON.stringify(this.issues,N.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},i=[];for(const a of this.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):i.push(t(a));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}}I.create=e=>new I(e);const ae=(e,t)=>{let r;switch(e.code){case u.invalid_type:e.received===l.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case u.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,N.jsonStringifyReplacer)}`;break;case u.unrecognized_keys:r=`Unrecognized key(s) in object: ${N.joinValues(e.keys,", ")}`;break;case u.invalid_union:r="Invalid input";break;case u.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${N.joinValues(e.options)}`;break;case u.invalid_enum_value:r=`Invalid enum value. Expected ${N.joinValues(e.options)}, received '${e.received}'`;break;case u.invalid_arguments:r="Invalid function arguments";break;case u.invalid_return_type:r="Invalid function return type";break;case u.invalid_date:r="Invalid date";break;case u.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:N.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case u.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case u.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case u.custom:r="Invalid input";break;case u.invalid_intersection_types:r="Intersection results could not be merged";break;case u.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case u.not_finite:r="Number must be finite";break;default:r=t.defaultError,N.assertNever(e)}return{message:r}};let Cs=ae;function Nl(e){Cs=e}function xe(){return Cs}const je=e=>{const{data:t,path:r,errorMaps:i,issueData:a}=e,o=[...r,...a.path||[]],s={...a,path:o};let c="";const p=i.filter(d=>!!d).slice().reverse();for(const d of p)c=d(s,{data:t,defaultError:c}).message;return{...a,path:o,message:a.message||c}},Cl=[];function f(e,t){const r=je({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,xe(),ae].filter(i=>!!i)});e.common.issues.push(r)}class D{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const i=[];for(const a of r){if(a.status==="aborted")return h;a.status==="dirty"&&t.dirty(),i.push(a.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){const i=[];for(const a of r)i.push({key:await a.key,value:await a.value});return D.mergeObjectSync(t,i)}static mergeObjectSync(t,r){const i={};for(const a of r){const{key:o,value:s}=a;if(o.status==="aborted"||s.status==="aborted")return h;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(i[o.value]=s.value)}return{status:t.value,value:i}}}const h=Object.freeze({status:"aborted"}),Ps=e=>({status:"dirty",value:e}),w=e=>({status:"valid",value:e}),_t=e=>e.status==="aborted",Rt=e=>e.status==="dirty",oe=e=>e.status==="valid",et=e=>typeof Promise<"u"&&e instanceof Promise;var m;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(m||(m={}));class R{constructor(t,r,i,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Js=(e,t)=>{if(oe(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new I(e.common.issues);return this._error=r,this._error}}};function S(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:i,description:a}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(s,c)=>s.code!=="invalid_type"?{message:c.defaultError}:typeof c.data>"u"?{message:i??c.defaultError}:{message:r??c.defaultError},description:a}}class T{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return H(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:H(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new D,ctx:{common:t.parent.common,data:t.data,parsedType:H(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(et(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){var i;const a={common:{issues:[],async:(i=r==null?void 0:r.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:H(t)},o=this._parseSync({data:t,path:a.path,parent:a});return Js(a,o)}async parseAsync(t,r){const i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){const i={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:H(t)},a=this._parse({data:t,path:i.path,parent:i}),o=await(et(a)?a:Promise.resolve(a));return Js(i,o)}refine(t,r){const i=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,o)=>{const s=t(a),c=()=>o.addIssue({code:u.custom,...i(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(p=>p?!0:(c(),!1)):s?!0:(c(),!1)})}refinement(t,r){return this._refinement((i,a)=>t(i)?!0:(a.addIssue(typeof r=="function"?r(i,a):r),!1))}_refinement(t){return new _({schema:this,typeName:g.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return q.create(this,this._def)}nullable(){return z.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return F.create(this,this._def)}promise(){return x.create(this,this._def)}or(t){return de.create([this,t],this._def)}and(t){return le.create(this,t,this._def)}transform(t){return new _({...S(this._def),schema:this,typeName:g.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new ge({...S(this._def),innerType:this,defaultValue:r,typeName:g.ZodDefault})}brand(){return new ws({typeName:g.ZodBranded,type:this,...S(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new ot({...S(this._def),innerType:this,catchValue:r,typeName:g.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return he.create(this,t)}readonly(){return ct.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Pl=/^c[^\s-]{8,}$/i,Jl=/^[a-z][a-z0-9]*$/,Dl=/^[0-9A-HJKMNP-TV-Z]{26}$/,wl=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Al=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,bl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Et;const Il=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Ul=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Fl=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function _l(e,t){return!!((t==="v4"||!t)&&Il.test(e)||(t==="v6"||!t)&&Ul.test(e))}class U extends T{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==l.string){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.string,received:o.parsedType}),h}const i=new D;let a;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,c=t.data.length<o.value;(s||c)&&(a=this._getOrReturnCtx(t,a),s?f(a,{code:u.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):c&&f(a,{code:u.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")Al.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"email",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")Et||(Et=new RegExp(bl,"u")),Et.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"emoji",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")wl.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"uuid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")Pl.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")Jl.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid2",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")Dl.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ulid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),f(a,{validation:"url",code:u.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"regex",code:u.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?Fl(o).test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="ip"?_l(t.data,o.version)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ip",code:u.invalid_string,message:o.message}),i.dirty()):N.assertNever(o);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(a=>t.test(a),{validation:r,code:u.invalid_string,...m.errToObj(i)})}_addCheck(t){return new U({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...m.errToObj(t)})}url(t){return this._addCheck({kind:"url",...m.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...m.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...m.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...m.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...m.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...m.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...m.errToObj(t)})}datetime(t){var r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,...m.errToObj(t==null?void 0:t.message)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...m.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...m.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...m.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...m.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...m.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...m.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...m.errToObj(r)})}nonempty(t){return this.min(1,m.errToObj(t))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}U.create=e=>{var t;return new U({checks:[],typeName:g.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...S(e)})};function Rl(e,t){const r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=r>i?r:i,o=parseInt(e.toFixed(a).replace(".","")),s=parseInt(t.toFixed(a).replace(".",""));return o%s/Math.pow(10,a)}class V extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==l.number){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.number,received:o.parsedType}),h}let i;const a=new D;for(const o of this._def.checks)o.kind==="int"?N.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),f(i,{code:u.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?Rl(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_finite,message:o.message}),a.dirty()):N.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,m.toString(r))}gt(t,r){return this.setLimit("min",t,!1,m.toString(r))}lte(t,r){return this.setLimit("max",t,!0,m.toString(r))}lt(t,r){return this.setLimit("max",t,!1,m.toString(r))}setLimit(t,r,i,a){return new V({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:m.toString(a)}]})}_addCheck(t){return new V({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:m.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:m.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:m.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&N.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}}V.create=e=>new V({checks:[],typeName:g.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...S(e)});class B extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==l.bigint){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.bigint,received:o.parsedType}),h}let i;const a=new D;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):N.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,m.toString(r))}gt(t,r){return this.setLimit("min",t,!1,m.toString(r))}lte(t,r){return this.setLimit("max",t,!0,m.toString(r))}lt(t,r){return this.setLimit("max",t,!1,m.toString(r))}setLimit(t,r,i,a){return new B({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:m.toString(a)}]})}_addCheck(t){return new B({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:m.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}B.create=e=>{var t;return new B({checks:[],typeName:g.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...S(e)})};class se extends T{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==l.boolean){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.boolean,received:i.parsedType}),h}return w(t.data)}}se.create=e=>new se({typeName:g.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...S(e)});class Z extends T{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==l.date){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.date,received:o.parsedType}),h}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_date}),h}const i=new D;let a;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):N.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Z({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:m.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:m.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Z.create=e=>new Z({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:g.ZodDate,...S(e)});class tt extends T{_parse(t){if(this._getType(t)!==l.symbol){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.symbol,received:i.parsedType}),h}return w(t.data)}}tt.create=e=>new tt({typeName:g.ZodSymbol,...S(e)});class ce extends T{_parse(t){if(this._getType(t)!==l.undefined){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.undefined,received:i.parsedType}),h}return w(t.data)}}ce.create=e=>new ce({typeName:g.ZodUndefined,...S(e)});class ue extends T{_parse(t){if(this._getType(t)!==l.null){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.null,received:i.parsedType}),h}return w(t.data)}}ue.create=e=>new ue({typeName:g.ZodNull,...S(e)});class W extends T{constructor(){super(...arguments),this._any=!0}_parse(t){return w(t.data)}}W.create=e=>new W({typeName:g.ZodAny,...S(e)});class G extends T{constructor(){super(...arguments),this._unknown=!0}_parse(t){return w(t.data)}}G.create=e=>new G({typeName:g.ZodUnknown,...S(e)});class k extends T{_parse(t){const r=this._getOrReturnCtx(t);return f(r,{code:u.invalid_type,expected:l.never,received:r.parsedType}),h}}k.create=e=>new k({typeName:g.ZodNever,...S(e)});class rt extends T{_parse(t){if(this._getType(t)!==l.undefined){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.void,received:i.parsedType}),h}return w(t.data)}}rt.create=e=>new rt({typeName:g.ZodVoid,...S(e)});class F extends T{_parse(t){const{ctx:r,status:i}=this._processInputParams(t),a=this._def;if(r.parsedType!==l.array)return f(r,{code:u.invalid_type,expected:l.array,received:r.parsedType}),h;if(a.exactLength!==null){const s=r.data.length>a.exactLength.value,c=r.data.length<a.exactLength.value;(s||c)&&(f(r,{code:s?u.too_big:u.too_small,minimum:c?a.exactLength.value:void 0,maximum:s?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(f(r,{code:u.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(f(r,{code:u.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((s,c)=>a.type._parseAsync(new R(r,s,r.path,c)))).then(s=>D.mergeArray(i,s));const o=[...r.data].map((s,c)=>a.type._parseSync(new R(r,s,r.path,c)));return D.mergeArray(i,o)}get element(){return this._def.type}min(t,r){return new F({...this._def,minLength:{value:t,message:m.toString(r)}})}max(t,r){return new F({...this._def,maxLength:{value:t,message:m.toString(r)}})}length(t,r){return new F({...this._def,exactLength:{value:t,message:m.toString(r)}})}nonempty(t){return this.min(1,t)}}F.create=(e,t)=>new F({type:e,minLength:null,maxLength:null,exactLength:null,typeName:g.ZodArray,...S(t)});function Y(e){if(e instanceof P){const t={};for(const r in e.shape){const i=e.shape[r];t[r]=q.create(Y(i))}return new P({...e._def,shape:()=>t})}else return e instanceof F?new F({...e._def,type:Y(e.element)}):e instanceof q?q.create(Y(e.unwrap())):e instanceof z?z.create(Y(e.unwrap())):e instanceof E?E.create(e.items.map(t=>Y(t))):e}class P extends T{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=N.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==l.object){const d=this._getOrReturnCtx(t);return f(d,{code:u.invalid_type,expected:l.object,received:d.parsedType}),h}const{status:i,ctx:a}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),c=[];if(!(this._def.catchall instanceof k&&this._def.unknownKeys==="strip"))for(const d in a.data)s.includes(d)||c.push(d);const p=[];for(const d of s){const O=o[d],b=a.data[d];p.push({key:{status:"valid",value:d},value:O._parse(new R(a,b,a.path,d)),alwaysSet:d in a.data})}if(this._def.catchall instanceof k){const d=this._def.unknownKeys;if(d==="passthrough")for(const O of c)p.push({key:{status:"valid",value:O},value:{status:"valid",value:a.data[O]}});else if(d==="strict")c.length>0&&(f(a,{code:u.unrecognized_keys,keys:c}),i.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const O of c){const b=a.data[O];p.push({key:{status:"valid",value:O},value:d._parse(new R(a,b,a.path,O)),alwaysSet:O in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const d=[];for(const O of p){const b=await O.key;d.push({key:b,value:await O.value,alwaysSet:O.alwaysSet})}return d}).then(d=>D.mergeObjectSync(i,d)):D.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(t){return m.errToObj,new P({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{var a,o,s,c;const p=(s=(o=(a=this._def).errorMap)===null||o===void 0?void 0:o.call(a,r,i).message)!==null&&s!==void 0?s:i.defaultError;return r.code==="unrecognized_keys"?{message:(c=m.errToObj(t).message)!==null&&c!==void 0?c:p}:{message:p}}}:{}})}strip(){return new P({...this._def,unknownKeys:"strip"})}passthrough(){return new P({...this._def,unknownKeys:"passthrough"})}extend(t){return new P({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new P({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:g.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new P({...this._def,catchall:t})}pick(t){const r={};return N.objectKeys(t).forEach(i=>{t[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new P({...this._def,shape:()=>r})}omit(t){const r={};return N.objectKeys(this.shape).forEach(i=>{t[i]||(r[i]=this.shape[i])}),new P({...this._def,shape:()=>r})}deepPartial(){return Y(this)}partial(t){const r={};return N.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];t&&!t[i]?r[i]=a:r[i]=a.optional()}),new P({...this._def,shape:()=>r})}required(t){const r={};return N.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])r[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof q;)o=o._def.innerType;r[i]=o}}),new P({...this._def,shape:()=>r})}keyof(){return Ds(N.objectKeys(this.shape))}}P.create=(e,t)=>new P({shape:()=>e,unknownKeys:"strip",catchall:k.create(),typeName:g.ZodObject,...S(t)}),P.strictCreate=(e,t)=>new P({shape:()=>e,unknownKeys:"strict",catchall:k.create(),typeName:g.ZodObject,...S(t)}),P.lazycreate=(e,t)=>new P({shape:e,unknownKeys:"strip",catchall:k.create(),typeName:g.ZodObject,...S(t)});class de extends T{_parse(t){const{ctx:r}=this._processInputParams(t),i=this._def.options;function a(o){for(const c of o)if(c.result.status==="valid")return c.result;for(const c of o)if(c.result.status==="dirty")return r.common.issues.push(...c.ctx.common.issues),c.result;const s=o.map(c=>new I(c.ctx.common.issues));return f(r,{code:u.invalid_union,unionErrors:s}),h}if(r.common.async)return Promise.all(i.map(async o=>{const s={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(a);{let o;const s=[];for(const p of i){const d={...r,common:{...r.common,issues:[]},parent:null},O=p._parseSync({data:r.data,path:r.path,parent:d});if(O.status==="valid")return O;O.status==="dirty"&&!o&&(o={result:O,ctx:d}),d.common.issues.length&&s.push(d.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const c=s.map(p=>new I(p));return f(r,{code:u.invalid_union,unionErrors:c}),h}}get options(){return this._def.options}}de.create=(e,t)=>new de({options:e,typeName:g.ZodUnion,...S(t)});const nt=e=>e instanceof pe?nt(e.schema):e instanceof _?nt(e.innerType()):e instanceof me?[e.value]:e instanceof M?e.options:e instanceof ye?Object.keys(e.enum):e instanceof ge?nt(e._def.innerType):e instanceof ce?[void 0]:e instanceof ue?[null]:null;class it extends T{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.object)return f(r,{code:u.invalid_type,expected:l.object,received:r.parsedType}),h;const i=this.discriminator,a=r.data[i],o=this.optionsMap.get(a);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(f(r,{code:u.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){const a=new Map;for(const o of r){const s=nt(o.shape[t]);if(!s)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const c of s){if(a.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);a.set(c,o)}}return new it({typeName:g.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...S(i)})}}function vt(e,t){const r=H(e),i=H(t);if(e===t)return{valid:!0,data:e};if(r===l.object&&i===l.object){const a=N.objectKeys(t),o=N.objectKeys(e).filter(c=>a.indexOf(c)!==-1),s={...e,...t};for(const c of o){const p=vt(e[c],t[c]);if(!p.valid)return{valid:!1};s[c]=p.data}return{valid:!0,data:s}}else if(r===l.array&&i===l.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let o=0;o<e.length;o++){const s=e[o],c=t[o],p=vt(s,c);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return r===l.date&&i===l.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class le extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t),a=(o,s)=>{if(_t(o)||_t(s))return h;const c=vt(o.value,s.value);return c.valid?((Rt(o)||Rt(s))&&r.dirty(),{status:r.value,value:c.data}):(f(i,{code:u.invalid_intersection_types}),h)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,s])=>a(o,s)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}le.create=(e,t,r)=>new le({left:e,right:t,typeName:g.ZodIntersection,...S(r)});class E extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.array)return f(i,{code:u.invalid_type,expected:l.array,received:i.parsedType}),h;if(i.data.length<this._def.items.length)return f(i,{code:u.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&i.data.length>this._def.items.length&&(f(i,{code:u.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...i.data].map((s,c)=>{const p=this._def.items[c]||this._def.rest;return p?p._parse(new R(i,s,i.path,c)):null}).filter(s=>!!s);return i.common.async?Promise.all(o).then(s=>D.mergeArray(r,s)):D.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new E({...this._def,rest:t})}}E.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new E({items:e,typeName:g.ZodTuple,rest:null,...S(t)})};class fe extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.object)return f(i,{code:u.invalid_type,expected:l.object,received:i.parsedType}),h;const a=[],o=this._def.keyType,s=this._def.valueType;for(const c in i.data)a.push({key:o._parse(new R(i,c,i.path,c)),value:s._parse(new R(i,i.data[c],i.path,c))});return i.common.async?D.mergeObjectAsync(r,a):D.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof T?new fe({keyType:t,valueType:r,typeName:g.ZodRecord,...S(i)}):new fe({keyType:U.create(),valueType:t,typeName:g.ZodRecord,...S(r)})}}class at extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.map)return f(i,{code:u.invalid_type,expected:l.map,received:i.parsedType}),h;const a=this._def.keyType,o=this._def.valueType,s=[...i.data.entries()].map(([c,p],d)=>({key:a._parse(new R(i,c,i.path,[d,"key"])),value:o._parse(new R(i,p,i.path,[d,"value"]))}));if(i.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const p of s){const d=await p.key,O=await p.value;if(d.status==="aborted"||O.status==="aborted")return h;(d.status==="dirty"||O.status==="dirty")&&r.dirty(),c.set(d.value,O.value)}return{status:r.value,value:c}})}else{const c=new Map;for(const p of s){const d=p.key,O=p.value;if(d.status==="aborted"||O.status==="aborted")return h;(d.status==="dirty"||O.status==="dirty")&&r.dirty(),c.set(d.value,O.value)}return{status:r.value,value:c}}}}at.create=(e,t,r)=>new at({valueType:t,keyType:e,typeName:g.ZodMap,...S(r)});class Q extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.set)return f(i,{code:u.invalid_type,expected:l.set,received:i.parsedType}),h;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(f(i,{code:u.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(f(i,{code:u.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const o=this._def.valueType;function s(p){const d=new Set;for(const O of p){if(O.status==="aborted")return h;O.status==="dirty"&&r.dirty(),d.add(O.value)}return{status:r.value,value:d}}const c=[...i.data.values()].map((p,d)=>o._parse(new R(i,p,i.path,d)));return i.common.async?Promise.all(c).then(p=>s(p)):s(c)}min(t,r){return new Q({...this._def,minSize:{value:t,message:m.toString(r)}})}max(t,r){return new Q({...this._def,maxSize:{value:t,message:m.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Q.create=(e,t)=>new Q({valueType:e,minSize:null,maxSize:null,typeName:g.ZodSet,...S(t)});class X extends T{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.function)return f(r,{code:u.invalid_type,expected:l.function,received:r.parsedType}),h;function i(c,p){return je({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,xe(),ae].filter(d=>!!d),issueData:{code:u.invalid_arguments,argumentsError:p}})}function a(c,p){return je({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,xe(),ae].filter(d=>!!d),issueData:{code:u.invalid_return_type,returnTypeError:p}})}const o={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof x){const c=this;return w(async function(...p){const d=new I([]),O=await c._def.args.parseAsync(p,o).catch(kt=>{throw d.addIssue(i(p,kt)),d}),b=await Reflect.apply(s,this,O);return await c._def.returns._def.type.parseAsync(b,o).catch(kt=>{throw d.addIssue(a(b,kt)),d})})}else{const c=this;return w(function(...p){const d=c._def.args.safeParse(p,o);if(!d.success)throw new I([i(p,d.error)]);const O=Reflect.apply(s,this,d.data),b=c._def.returns.safeParse(O,o);if(!b.success)throw new I([a(O,b.error)]);return b.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new X({...this._def,args:E.create(t).rest(G.create())})}returns(t){return new X({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new X({args:t||E.create([]).rest(G.create()),returns:r||G.create(),typeName:g.ZodFunction,...S(i)})}}class pe extends T{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}pe.create=(e,t)=>new pe({getter:e,typeName:g.ZodLazy,...S(t)});class me extends T{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return f(r,{received:r.data,code:u.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:t.data}}get value(){return this._def.value}}me.create=(e,t)=>new me({value:e,typeName:g.ZodLiteral,...S(t)});function Ds(e,t){return new M({values:e,typeName:g.ZodEnum,...S(t)})}class M extends T{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),i=this._def.values;return f(r,{expected:N.joinValues(i),received:r.parsedType,code:u.invalid_type}),h}if(this._def.values.indexOf(t.data)===-1){const r=this._getOrReturnCtx(t),i=this._def.values;return f(r,{received:r.data,code:u.invalid_enum_value,options:i}),h}return w(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t){return M.create(t)}exclude(t){return M.create(this.options.filter(r=>!t.includes(r)))}}M.create=Ds;class ye extends T{_parse(t){const r=N.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==l.string&&i.parsedType!==l.number){const a=N.objectValues(r);return f(i,{expected:N.joinValues(a),received:i.parsedType,code:u.invalid_type}),h}if(r.indexOf(t.data)===-1){const a=N.objectValues(r);return f(i,{received:i.data,code:u.invalid_enum_value,options:a}),h}return w(t.data)}get enum(){return this._def.values}}ye.create=(e,t)=>new ye({values:e,typeName:g.ZodNativeEnum,...S(t)});class x extends T{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.promise&&r.common.async===!1)return f(r,{code:u.invalid_type,expected:l.promise,received:r.parsedType}),h;const i=r.parsedType===l.promise?r.data:Promise.resolve(r.data);return w(i.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}x.create=(e,t)=>new x({type:e,typeName:g.ZodPromise,...S(t)});class _ extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===g.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:i}=this._processInputParams(t),a=this._def.effect||null,o={addIssue:s=>{f(i,s),s.fatal?r.abort():r.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){const s=a.transform(i.data,o);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(s).then(c=>this._def.schema._parseAsync({data:c,path:i.path,parent:i})):this._def.schema._parseSync({data:s,path:i.path,parent:i})}if(a.type==="refinement"){const s=c=>{const p=a.refinement(c,o);if(i.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(i.common.async===!1){const c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?h:(c.status==="dirty"&&r.dirty(),s(c.value),{status:r.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?h:(c.status==="dirty"&&r.dirty(),s(c.value).then(()=>({status:r.value,value:c.value}))))}if(a.type==="transform")if(i.common.async===!1){const s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!oe(s))return s;const c=a.transform(s.value,o);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>oe(s)?Promise.resolve(a.transform(s.value,o)).then(c=>({status:r.value,value:c})):s);N.assertNever(a)}}_.create=(e,t,r)=>new _({schema:e,typeName:g.ZodEffects,effect:t,...S(r)}),_.createWithPreprocess=(e,t,r)=>new _({schema:t,effect:{type:"preprocess",transform:e},typeName:g.ZodEffects,...S(r)});class q extends T{_parse(t){return this._getType(t)===l.undefined?w(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}q.create=(e,t)=>new q({innerType:e,typeName:g.ZodOptional,...S(t)});class z extends T{_parse(t){return this._getType(t)===l.null?w(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}z.create=(e,t)=>new z({innerType:e,typeName:g.ZodNullable,...S(t)});class ge extends T{_parse(t){const{ctx:r}=this._processInputParams(t);let i=r.data;return r.parsedType===l.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}ge.create=(e,t)=>new ge({innerType:e,typeName:g.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...S(t)});class ot extends T{_parse(t){const{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return et(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new I(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new I(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}ot.create=(e,t)=>new ot({innerType:e,typeName:g.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...S(t)});class st extends T{_parse(t){if(this._getType(t)!==l.nan){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.nan,received:i.parsedType}),h}return{status:"valid",value:t.data}}}st.create=e=>new st({typeName:g.ZodNaN,...S(e)});const El=Symbol("zod_brand");class ws extends T{_parse(t){const{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}}class he extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?h:o.status==="dirty"?(r.dirty(),Ps(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?h:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(t,r){return new he({in:t,out:r,typeName:g.ZodPipeline})}}class ct extends T{_parse(t){const r=this._def.innerType._parse(t);return oe(r)&&(r.value=Object.freeze(r.value)),r}}ct.create=(e,t)=>new ct({innerType:e,typeName:g.ZodReadonly,...S(t)});const As=(e,t={},r)=>e?W.create().superRefine((i,a)=>{var o,s;if(!e(i)){const c=typeof t=="function"?t(i):typeof t=="string"?{message:t}:t,p=(s=(o=c.fatal)!==null&&o!==void 0?o:r)!==null&&s!==void 0?s:!0,d=typeof c=="string"?{message:c}:c;a.addIssue({code:"custom",...d,fatal:p})}}):W.create(),vl={object:P.lazycreate};var g;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(g||(g={}));const kl=(e,t={message:`Input not instance of ${e.name}`})=>As(r=>r instanceof e,t),bs=U.create,Is=V.create,ql=st.create,Ll=B.create,Us=se.create,Hl=Z.create,Vl=tt.create,Bl=ce.create,Ml=ue.create,Zl=W.create,Gl=G.create,Ql=k.create,zl=rt.create,$l=F.create,Kl=P.create,Wl=P.strictCreate,Yl=de.create,Xl=it.create,xl=le.create,jl=E.create,ef=fe.create,tf=at.create,rf=Q.create,nf=X.create,af=pe.create,of=me.create,sf=M.create,cf=ye.create,uf=x.create,Fs=_.create,df=q.create,lf=z.create,ff=_.createWithPreprocess,pf=he.create;var Se=Object.freeze({__proto__:null,defaultErrorMap:ae,setErrorMap:Nl,getErrorMap:xe,makeIssue:je,EMPTY_PATH:Cl,addIssueToContext:f,ParseStatus:D,INVALID:h,DIRTY:Ps,OK:w,isAborted:_t,isDirty:Rt,isValid:oe,isAsync:et,get util(){return N},get objectUtil(){return Ft},ZodParsedType:l,getParsedType:H,ZodType:T,ZodString:U,ZodNumber:V,ZodBigInt:B,ZodBoolean:se,ZodDate:Z,ZodSymbol:tt,ZodUndefined:ce,ZodNull:ue,ZodAny:W,ZodUnknown:G,ZodNever:k,ZodVoid:rt,ZodArray:F,ZodObject:P,ZodUnion:de,ZodDiscriminatedUnion:it,ZodIntersection:le,ZodTuple:E,ZodRecord:fe,ZodMap:at,ZodSet:Q,ZodFunction:X,ZodLazy:pe,ZodLiteral:me,ZodEnum:M,ZodNativeEnum:ye,ZodPromise:x,ZodEffects:_,ZodTransformer:_,ZodOptional:q,ZodNullable:z,ZodDefault:ge,ZodCatch:ot,ZodNaN:st,BRAND:El,ZodBranded:ws,ZodPipeline:he,ZodReadonly:ct,custom:As,Schema:T,ZodSchema:T,late:vl,get ZodFirstPartyTypeKind(){return g},coerce:{string:e=>U.create({...e,coerce:!0}),number:e=>V.create({...e,coerce:!0}),boolean:e=>se.create({...e,coerce:!0}),bigint:e=>B.create({...e,coerce:!0}),date:e=>Z.create({...e,coerce:!0})},any:Zl,array:$l,bigint:Ll,boolean:Us,date:Hl,discriminatedUnion:Xl,effect:Fs,enum:sf,function:nf,instanceof:kl,intersection:xl,lazy:af,literal:of,map:tf,nan:ql,nativeEnum:cf,never:Ql,null:Ml,nullable:lf,number:Is,object:Kl,oboolean:()=>Us().optional(),onumber:()=>Is().optional(),optional:df,ostring:()=>bs().optional(),pipeline:pf,preprocess:ff,promise:uf,record:ef,set:rf,strictObject:Wl,string:bs,symbol:Vl,transformer:Fs,tuple:jl,undefined:Bl,union:Yl,unknown:Gl,void:zl,NEVER:h,ZodIssueCode:u,quotelessJson:Ol,ZodError:I});function mf(e){return e===401||e===403}function yf(e){return Object.entries(e).map(([t,r])=>`${encodeURIComponent(t)}=${encodeURIComponent(r)}`).join("&")}const gf=Se.object({access_token:Se.string().min(1),token_type:Se.string(),expires_in:Se.number(),scope:Se.string()});async function hf(e){const r=await(await fetch(e.tokenUrl,{method:"POST",body:yf({grant_type:"client_credentials",client_id:e.clientId,client_secret:e.clientSecret}),headers:{"Content-Type":"application/x-www-form-urlencoded"}})).json();return Sf(r)}function Sf(e){const t=gf.safeParse(e);if(!t.success)throw new Error("Bad access token response");return t.data}class Tf{constructor(t){v(this,"activeRequest",null);v(this,"refreshTimeout");v(this,"accessToken",null);this.clientCredentials=t}async getAccessToken(){return this.accessToken?this.accessToken:await this.refreshAccessToken()}async refreshAccessToken(){if(this.activeRequest)return await this.activeRequest,this.accessToken;this.accessToken=null,this.activeRequest=hf(this.clientCredentials);const t=await this.activeRequest;return this.scheduleNextRefresh(t),this.accessToken=t.access_token,this.activeRequest=null,this.accessToken}scheduleNextRefresh(t){clearTimeout(this.refreshTimeout);const r=(t.expires_in-2)*1e3;this.refreshTimeout=setTimeout(()=>{this.accessToken=null},r)}}function _s(e,t){e.headers=Of("Authorization",`Bearer ${t}`,e.headers)}function Of(e,t,r){return r?Array.isArray(r)?r.map(([i,a])=>i!==e?[i,a]:[e,t]):Nf(r)?(r.has(e)?r.set(e,t):r.append(e,t),r):(r[e]=t,r):(r={},r[e]=t,r)}function Nf(e){return"append"in e&&"delete"in e&&"get"in e&&"has"in e&&"set"in e&&"forEach"in e}function Cf(e){const t=new Tf(e);return{pre:async r=>{const i=await t.getAccessToken();return _s(r.init,i),Promise.resolve({url:r.url,init:r.init})},post:async r=>{if(mf(r.response.status)){const i=await t.refreshAccessToken();return _s(r.init,i),await fetch(r.url,r.init)}return Promise.resolve(r.response)}}}function Pf(e){const t=[];let r={};e.clientCredentials&&t.push(Cf(e.clientCredentials)),e.managementApiKey&&(r=Jf(e.managementApiKey));const i=new L({basePath:e.managementApiUrl,headers:r,credentials:"same-origin",middleware:t,...e.configOverrides});return{uiApi:new Os(i),useCaseApi:new Ns(i),enterpriseEditionApi:new Ts(i)}}function Jf(e){return{"X-Api-Key":e}}n.AssetFilterConstraintFromJSON=lt,n.AssetFilterConstraintFromJSONTyped=Qt,n.AssetFilterConstraintOperator=Te,n.AssetFilterConstraintOperatorFromJSON=Zt,n.AssetFilterConstraintOperatorFromJSONTyped=Gt,n.AssetFilterConstraintOperatorToJSON=Bs,n.AssetFilterConstraintOperatorToJSONTyped=Ms,n.AssetFilterConstraintToJSON=ft,n.AssetFilterConstraintToJSONTyped=zt,n.AssetPageFromJSON=Xt,n.AssetPageFromJSONTyped=xt,n.AssetPageToJSON=Ws,n.AssetPageToJSONTyped=jt,n.BASE_PATH=A,n.BaseAPI=$,n.BlobApiResponse=Hs,n.BuildInfoFromJSON=er,n.BuildInfoFromJSONTyped=tr,n.BuildInfoToJSON=Xs,n.BuildInfoToJSONTyped=rr,n.BusinessPartnerGroupCreateSubmitFromJSON=js,n.BusinessPartnerGroupCreateSubmitFromJSONTyped=nr,n.BusinessPartnerGroupCreateSubmitToJSON=ir,n.BusinessPartnerGroupCreateSubmitToJSONTyped=ar,n.BusinessPartnerGroupEditPageFromJSON=or,n.BusinessPartnerGroupEditPageFromJSONTyped=sr,n.BusinessPartnerGroupEditPageToJSON=tc,n.BusinessPartnerGroupEditPageToJSONTyped=cr,n.BusinessPartnerGroupEditSubmitFromJSON=nc,n.BusinessPartnerGroupEditSubmitFromJSONTyped=ur,n.BusinessPartnerGroupEditSubmitToJSON=dr,n.BusinessPartnerGroupEditSubmitToJSONTyped=lr,n.BusinessPartnerGroupListPageEntryFromJSON=fr,n.BusinessPartnerGroupListPageEntryFromJSONTyped=pr,n.BusinessPartnerGroupListPageEntryToJSON=ac,n.BusinessPartnerGroupListPageEntryToJSONTyped=mr,n.BusinessPartnerGroupQueryFromJSON=sc,n.BusinessPartnerGroupQueryFromJSONTyped=yr,n.BusinessPartnerGroupQueryToJSON=gr,n.BusinessPartnerGroupQueryToJSONTyped=hr,n.COLLECTION_FORMATS=vs,n.CallbackAddressDtoFromJSON=Ce,n.CallbackAddressDtoFromJSONTyped=Nr,n.CallbackAddressDtoToJSON=Pe,n.CallbackAddressDtoToJSONTyped=Cr,n.CallbackAddressEventType=Ne,n.CallbackAddressEventTypeFromJSON=Sr,n.CallbackAddressEventTypeFromJSONTyped=Tr,n.CallbackAddressEventTypeToJSON=Or,n.CallbackAddressEventTypeToJSONTyped=uc,n.CatalogFilterExpressionFromJSON=Fr,n.CatalogFilterExpressionFromJSONTyped=_r,n.CatalogFilterExpressionLiteralFromJSON=Dr,n.CatalogFilterExpressionLiteralFromJSONTyped=wr,n.CatalogFilterExpressionLiteralToJSON=Ar,n.CatalogFilterExpressionLiteralToJSONTyped=br,n.CatalogFilterExpressionLiteralType=Je,n.CatalogFilterExpressionLiteralTypeFromJSON=Pr,n.CatalogFilterExpressionLiteralTypeFromJSONTyped=Jr,n.CatalogFilterExpressionLiteralTypeToJSON=fc,n.CatalogFilterExpressionLiteralTypeToJSONTyped=pc,n.CatalogFilterExpressionOperator=De,n.CatalogFilterExpressionOperatorFromJSON=Ir,n.CatalogFilterExpressionOperatorFromJSONTyped=Ur,n.CatalogFilterExpressionOperatorToJSON=gc,n.CatalogFilterExpressionOperatorToJSONTyped=hc,n.CatalogFilterExpressionToJSON=Rr,n.CatalogFilterExpressionToJSONTyped=Er,n.CatalogQueryFromJSON=Oc,n.CatalogQueryFromJSONTyped=vr,n.CatalogQueryToJSON=kr,n.CatalogQueryToJSONTyped=qr,n.CatalogQueryV2FromJSON=wc,n.CatalogQueryV2FromJSONTyped=Gr,n.CatalogQueryV2ToJSON=Qr,n.CatalogQueryV2ToJSONTyped=zr,n.CatalogSortByDirection=we,n.CatalogSortByDirectionFromJSON=Lr,n.CatalogSortByDirectionFromJSONTyped=Hr,n.CatalogSortByDirectionToJSON=Cc,n.CatalogSortByDirectionToJSONTyped=Pc,n.CatalogSortByFromJSON=Vr,n.CatalogSortByFromJSONTyped=Br,n.CatalogSortByToJSON=Mr,n.CatalogSortByToJSONTyped=Zr,n.Configuration=L,n.ConnectorLimitsFromJSON=$r,n.ConnectorLimitsFromJSONTyped=Kr,n.ConnectorLimitsToJSON=bc,n.ConnectorLimitsToJSONTyped=Wr,n.ContractAgreementCardFromJSON=Tt,n.ContractAgreementCardFromJSONTyped=An,n.ContractAgreementCardToJSON=bn,n.ContractAgreementCardToJSONTyped=In,n.ContractAgreementDirection=Ae,n.ContractAgreementDirectionFromJSON=pt,n.ContractAgreementDirectionFromJSONTyped=Yr,n.ContractAgreementDirectionToJSON=Uc,n.ContractAgreementDirectionToJSONTyped=Fc,n.ContractAgreementPageFromJSON=Un,n.ContractAgreementPageFromJSONTyped=Fn,n.ContractAgreementPageQueryFromJSON=su,n.ContractAgreementPageQueryFromJSONTyped=Rn,n.ContractAgreementPageQueryToJSON=En,n.ContractAgreementPageQueryToJSONTyped=vn,n.ContractAgreementPageToJSON=au,n.ContractAgreementPageToJSONTyped=_n,n.ContractAgreementTerminationInfoFromJSON=mt,n.ContractAgreementTerminationInfoFromJSONTyped=jr,n.ContractAgreementTerminationInfoToJSON=yt,n.ContractAgreementTerminationInfoToJSONTyped=en,n.ContractAgreementTransferProcessFromJSON=on,n.ContractAgreementTransferProcessFromJSONTyped=sn,n.ContractAgreementTransferProcessToJSON=cn,n.ContractAgreementTransferProcessToJSONTyped=un,n.ContractDefinitionEntryFromJSON=zn,n.ContractDefinitionEntryFromJSONTyped=$n,n.ContractDefinitionEntryToJSON=Kn,n.ContractDefinitionEntryToJSONTyped=Wn,n.ContractDefinitionPageFromJSON=Yn,n.ContractDefinitionPageFromJSONTyped=Xn,n.ContractDefinitionPageToJSON=Su,n.ContractDefinitionPageToJSONTyped=xn,n.ContractDefinitionRequestFromJSON=Ou,n.ContractDefinitionRequestFromJSONTyped=jn,n.ContractDefinitionRequestToJSON=ei,n.ContractDefinitionRequestToJSONTyped=ti,n.ContractNegotiationRequestFromJSON=Cu,n.ContractNegotiationRequestFromJSONTyped=ri,n.ContractNegotiationRequestToJSON=ni,n.ContractNegotiationRequestToJSONTyped=ii,n.ContractNegotiationSimplifiedState=Le,n.ContractNegotiationSimplifiedStateFromJSON=ai,n.ContractNegotiationSimplifiedStateFromJSONTyped=oi,n.ContractNegotiationSimplifiedStateToJSON=Ju,n.ContractNegotiationSimplifiedStateToJSONTyped=Du,n.ContractNegotiationStateFromJSON=He,n.ContractNegotiationStateFromJSONTyped=si,n.ContractNegotiationStateResultFromJSON=ui,n.ContractNegotiationStateResultFromJSONTyped=di,n.ContractNegotiationStateResultToJSON=bu,n.ContractNegotiationStateResultToJSONTyped=li,n.ContractNegotiationStateToJSON=Ve,n.ContractNegotiationStateToJSONTyped=ci,n.ContractTerminatedBy=be,n.ContractTerminatedByFromJSON=Xr,n.ContractTerminatedByFromJSONTyped=xr,n.ContractTerminatedByToJSON=Rc,n.ContractTerminatedByToJSONTyped=Ec,n.ContractTerminationRequestFromJSON=Uu,n.ContractTerminationRequestFromJSONTyped=fi,n.ContractTerminationRequestToJSON=pi,n.ContractTerminationRequestToJSONTyped=mi,n.ContractTerminationStatus=_e,n.ContractTerminationStatusFromJSON=gt,n.ContractTerminationStatusFromJSONTyped=dn,n.ContractTerminationStatusToJSON=Mc,n.ContractTerminationStatusToJSONTyped=Zc,n.DashboardCxDidConfigFromJSON=yi,n.DashboardCxDidConfigFromJSONTyped=gi,n.DashboardCxDidConfigToJSON=hi,n.DashboardCxDidConfigToJSONTyped=Si,n.DashboardDapsConfigFromJSON=Ti,n.DashboardDapsConfigFromJSONTyped=Oi,n.DashboardDapsConfigToJSON=Ni,n.DashboardDapsConfigToJSONTyped=Ci,n.DashboardPageFromJSON=Di,n.DashboardPageFromJSONTyped=wi,n.DashboardPageToJSON=vu,n.DashboardPageToJSONTyped=Ai,n.DashboardTransferAmountsFromJSON=Ct,n.DashboardTransferAmountsFromJSONTyped=Pi,n.DashboardTransferAmountsToJSON=Pt,n.DashboardTransferAmountsToJSONTyped=Ji,n.DataOfferCreateRequestFromJSON=cd,n.DataOfferCreateRequestFromJSONTyped=ha,n.DataOfferCreateRequestToJSON=Sa,n.DataOfferCreateRequestToJSONTyped=Ta,n.DataOfferPublishType=Be,n.DataOfferPublishTypeFromJSON=bi,n.DataOfferPublishTypeFromJSONTyped=Ii,n.DataOfferPublishTypeToJSON=qu,n.DataOfferPublishTypeToJSONTyped=Lu,n.DataSourceAvailability=Oe,n.DataSourceAvailabilityFromJSON=$t,n.DataSourceAvailabilityFromJSONTyped=Kt,n.DataSourceAvailabilityToJSON=Qs,n.DataSourceAvailabilityToJSONTyped=zs,n.DataSourceType=Me,n.DataSourceTypeFromJSON=Ui,n.DataSourceTypeFromJSONTyped=Fi,n.DataSourceTypeToJSON=Vu,n.DataSourceTypeToJSONTyped=Bu,n.DefaultConfig=qt,n.EdrDtoFromJSON=Oa,n.EdrDtoFromJSONTyped=Na,n.EdrDtoToJSON=dd,n.EdrDtoToJSONTyped=Ca,n.EnterpriseEditionApi=Ts,n.FetchError=Ht,n.IdAvailabilityResponseFromJSON=$e,n.IdAvailabilityResponseFromJSONTyped=Pa,n.IdAvailabilityResponseToJSON=fd,n.IdAvailabilityResponseToJSONTyped=Ja,n.IdResponseDtoFromJSON=J,n.IdResponseDtoFromJSONTyped=Da,n.IdResponseDtoToJSON=md,n.IdResponseDtoToJSONTyped=wa,n.InitiateCustomTransferRequestFromJSON=gd,n.InitiateCustomTransferRequestFromJSONTyped=Aa,n.InitiateCustomTransferRequestToJSON=ba,n.InitiateCustomTransferRequestToJSONTyped=Ia,n.InitiateTransferRequestFromJSON=Sd,n.InitiateTransferRequestFromJSONTyped=Ua,n.InitiateTransferRequestToJSON=Fa,n.InitiateTransferRequestToJSONTyped=_a,n.JSONApiResponse=y,n.KpiResultFromJSON=qa,n.KpiResultFromJSONTyped=La,n.KpiResultToJSON=Nd,n.KpiResultToJSONTyped=Ha,n.NegotiateAllQueryFromJSON=Pd,n.NegotiateAllQueryFromJSONTyped=Va,n.NegotiateAllQueryToJSON=Ba,n.NegotiateAllQueryToJSONTyped=Ma,n.NegotiateAllResultFromJSON=Za,n.NegotiateAllResultFromJSONTyped=Ga,n.NegotiateAllResultToJSON=Dd,n.NegotiateAllResultToJSONTyped=Qa,n.OperatorDto=Re,n.OperatorDtoFromJSON=ln,n.OperatorDtoFromJSONTyped=fn,n.OperatorDtoToJSON=Qc,n.OperatorDtoToJSONTyped=zc,n.PolicyDefinitionCreateDtoFromJSON=Ad,n.PolicyDefinitionCreateDtoFromJSONTyped=za,n.PolicyDefinitionCreateDtoToJSON=$a,n.PolicyDefinitionCreateDtoToJSONTyped=Ka,n.PolicyDefinitionCreateRequestFromJSON=Ud,n.PolicyDefinitionCreateRequestFromJSONTyped=ja,n.PolicyDefinitionCreateRequestToJSON=eo,n.PolicyDefinitionCreateRequestToJSONTyped=to,n.PolicyDefinitionDtoFromJSON=ro,n.PolicyDefinitionDtoFromJSONTyped=no,n.PolicyDefinitionDtoToJSON=io,n.PolicyDefinitionDtoToJSONTyped=ao,n.PolicyDefinitionPageFromJSON=oo,n.PolicyDefinitionPageFromJSONTyped=so,n.PolicyDefinitionPageToJSON=Rd,n.PolicyDefinitionPageToJSONTyped=co,n.RequiredError=C,n.ResponseError=Lt,n.TextApiResponse=Mt,n.TransferHistoryEntryFromJSON=uo,n.TransferHistoryEntryFromJSONTyped=lo,n.TransferHistoryEntryToJSON=fo,n.TransferHistoryEntryToJSONTyped=po,n.TransferHistoryPageFromJSON=mo,n.TransferHistoryPageFromJSONTyped=yo,n.TransferHistoryPageToJSON=kd,n.TransferHistoryPageToJSONTyped=go,n.TransferProcessSimplifiedState=Ie,n.TransferProcessSimplifiedStateFromJSON=tn,n.TransferProcessSimplifiedStateFromJSONTyped=rn,n.TransferProcessSimplifiedStateToJSON=qc,n.TransferProcessSimplifiedStateToJSONTyped=Lc,n.TransferProcessStateFromJSON=Ue,n.TransferProcessStateFromJSONTyped=nn,n.TransferProcessStateResultFromJSON=ho,n.TransferProcessStateResultFromJSONTyped=So,n.TransferProcessStateResultToJSON=Ld,n.TransferProcessStateResultToJSONTyped=To,n.TransferProcessStateToJSON=Fe,n.TransferProcessStateToJSONTyped=an,n.TransferProcessStatesDtoFromJSON=Ra,n.TransferProcessStatesDtoFromJSONTyped=Ea,n.TransferProcessStatesDtoToJSON=va,n.TransferProcessStatesDtoToJSONTyped=ka,n.UIApi=Os,n.UiAssetCreateRequestFromJSON=ma,n.UiAssetCreateRequestFromJSONTyped=ya,n.UiAssetCreateRequestToJSON=ze,n.UiAssetCreateRequestToJSONTyped=ga,n.UiAssetEditRequestFromJSON=Vd,n.UiAssetEditRequestFromJSONTyped=Oo,n.UiAssetEditRequestToJSON=No,n.UiAssetEditRequestToJSONTyped=Co,n.UiAssetFromJSON=K,n.UiAssetFromJSONTyped=Wt,n.UiAssetToJSON=j,n.UiAssetToJSONTyped=Yt,n.UiConfigFeature=Ke,n.UiConfigFeatureFromJSON=Po,n.UiConfigFeatureFromJSONTyped=Jo,n.UiConfigFeatureToJSON=Do,n.UiConfigFeatureToJSONTyped=Md,n.UiConfigFromJSON=Uo,n.UiConfigFromJSONTyped=Fo,n.UiConfigPreconfiguredCounterpartyFromJSON=wo,n.UiConfigPreconfiguredCounterpartyFromJSONTyped=Ao,n.UiConfigPreconfiguredCounterpartyToJSON=bo,n.UiConfigPreconfiguredCounterpartyToJSONTyped=Io,n.UiConfigToJSON=Qd,n.UiConfigToJSONTyped=_o,n.UiContractNegotiationFromJSON=Ut,n.UiContractNegotiationFromJSONTyped=Ro,n.UiContractNegotiationToJSON=$d,n.UiContractNegotiationToJSONTyped=Eo,n.UiContractOfferFromJSON=vo,n.UiContractOfferFromJSONTyped=ko,n.UiContractOfferToJSON=qo,n.UiContractOfferToJSONTyped=Lo,n.UiCriterionFromJSON=Ot,n.UiCriterionFromJSONTyped=Gn,n.UiCriterionLiteralFromJSON=Ln,n.UiCriterionLiteralFromJSONTyped=Hn,n.UiCriterionLiteralToJSON=Vn,n.UiCriterionLiteralToJSONTyped=Bn,n.UiCriterionLiteralType=ke,n.UiCriterionLiteralTypeFromJSON=kn,n.UiCriterionLiteralTypeFromJSONTyped=qn,n.UiCriterionLiteralTypeToJSON=uu,n.UiCriterionLiteralTypeToJSONTyped=du,n.UiCriterionOperator=qe,n.UiCriterionOperatorFromJSON=Mn,n.UiCriterionOperatorFromJSONTyped=Zn,n.UiCriterionOperatorToJSON=pu,n.UiCriterionOperatorToJSONTyped=mu,n.UiCriterionToJSON=Nt,n.UiCriterionToJSONTyped=Qn,n.UiDataOfferFromJSON=ie,n.UiDataOfferFromJSONTyped=Ho,n.UiDataOfferToJSON=Yd,n.UiDataOfferToJSONTyped=Vo,n.UiDataSinkHttpDataPushFromJSON=Wo,n.UiDataSinkHttpDataPushFromJSONTyped=Yo,n.UiDataSinkHttpDataPushMethod=We,n.UiDataSinkHttpDataPushMethodFromJSON=Bo,n.UiDataSinkHttpDataPushMethodFromJSONTyped=Mo,n.UiDataSinkHttpDataPushMethodToJSON=xd,n.UiDataSinkHttpDataPushMethodToJSONTyped=jd,n.UiDataSinkHttpDataPushToJSON=Xo,n.UiDataSinkHttpDataPushToJSONTyped=xo,n.UiDataSourceFromJSON=bt,n.UiDataSourceFromJSONTyped=fa,n.UiDataSourceHttpDataFromJSON=ia,n.UiDataSourceHttpDataFromJSONTyped=aa,n.UiDataSourceHttpDataMethod=Ze,n.UiDataSourceHttpDataMethodFromJSON=_i,n.UiDataSourceHttpDataMethodFromJSONTyped=Ri,n.UiDataSourceHttpDataMethodToJSON=Zu,n.UiDataSourceHttpDataMethodToJSONTyped=Gu,n.UiDataSourceHttpDataToJSON=oa,n.UiDataSourceHttpDataToJSONTyped=sa,n.UiDataSourceOnRequestFromJSON=ca,n.UiDataSourceOnRequestFromJSONTyped=ua,n.UiDataSourceOnRequestToJSON=da,n.UiDataSourceOnRequestToJSONTyped=la,n.UiDataSourceToJSON=It,n.UiDataSourceToJSONTyped=pa,n.UiHttpAuthApiKeyFromJSON=Jt,n.UiHttpAuthApiKeyFromJSONTyped=Ei,n.UiHttpAuthApiKeyToJSON=Dt,n.UiHttpAuthApiKeyToJSONTyped=vi,n.UiHttpAuthBasicFromJSON=wt,n.UiHttpAuthBasicFromJSONTyped=ki,n.UiHttpAuthBasicToJSON=At,n.UiHttpAuthBasicToJSONTyped=qi,n.UiHttpAuthFromJSON=ea,n.UiHttpAuthFromJSONTyped=ta,n.UiHttpAuthOauth2FromJSON=Ki,n.UiHttpAuthOauth2FromJSONTyped=Wi,n.UiHttpAuthOauth2ToJSON=Yi,n.UiHttpAuthOauth2ToJSONTyped=Xi,n.UiHttpAuthToJSON=ra,n.UiHttpAuthToJSONTyped=na,n.UiHttpAuthType=Qe,n.UiHttpAuthTypeFromJSON=xi,n.UiHttpAuthTypeFromJSONTyped=ji,n.UiHttpAuthTypeToJSON=ed,n.UiHttpAuthTypeToJSONTyped=td,n.UiHttpOauth2AuthType=Ge,n.UiHttpOauth2AuthTypeFromJSON=Li,n.UiHttpOauth2AuthTypeFromJSONTyped=Hi,n.UiHttpOauth2AuthTypeToJSON=Ku,n.UiHttpOauth2AuthTypeToJSONTyped=Wu,n.UiHttpOauth2PrivateKeyAuthorizationFromJSON=Vi,n.UiHttpOauth2PrivateKeyAuthorizationFromJSONTyped=Bi,n.UiHttpOauth2PrivateKeyAuthorizationToJSON=Mi,n.UiHttpOauth2PrivateKeyAuthorizationToJSONTyped=Zi,n.UiHttpOauth2SharedSecretAuthorizationFromJSON=Gi,n.UiHttpOauth2SharedSecretAuthorizationFromJSONTyped=Qi,n.UiHttpOauth2SharedSecretAuthorizationToJSON=zi,n.UiHttpOauth2SharedSecretAuthorizationToJSONTyped=$i,n.UiHttpPushAuthFromJSON=Qo,n.UiHttpPushAuthFromJSONTyped=zo,n.UiHttpPushAuthToJSON=$o,n.UiHttpPushAuthToJSONTyped=Ko,n.UiHttpPushAuthType=Ye,n.UiHttpPushAuthTypeFromJSON=Zo,n.UiHttpPushAuthTypeFromJSONTyped=Go,n.UiHttpPushAuthTypeToJSON=tl,n.UiHttpPushAuthTypeToJSONTyped=rl,n.UiInitiateTransferRequestFromJSON=ul,n.UiInitiateTransferRequestFromJSONTyped=ts,n.UiInitiateTransferRequestToJSON=rs,n.UiInitiateTransferRequestToJSONTyped=ns,n.UiInitiateTransferType=Xe,n.UiInitiateTransferTypeFromJSON=jo,n.UiInitiateTransferTypeFromJSONTyped=es,n.UiInitiateTransferTypeToJSON=ol,n.UiInitiateTransferTypeToJSONTyped=sl,n.UiPolicyConstraintFromJSON=ht,n.UiPolicyConstraintFromJSONTyped=Tn,n.UiPolicyConstraintToJSON=St,n.UiPolicyConstraintToJSONTyped=On,n.UiPolicyCreateRequestFromJSON=Wa,n.UiPolicyCreateRequestFromJSONTyped=Ya,n.UiPolicyCreateRequestToJSON=Xa,n.UiPolicyCreateRequestToJSONTyped=xa,n.UiPolicyExpressionFromJSON=ee,n.UiPolicyExpressionFromJSONTyped=Pn,n.UiPolicyExpressionToJSON=te,n.UiPolicyExpressionToJSONTyped=Jn,n.UiPolicyExpressionType=ve,n.UiPolicyExpressionTypeFromJSON=Nn,n.UiPolicyExpressionTypeFromJSONTyped=Cn,n.UiPolicyExpressionTypeToJSON=jc,n.UiPolicyExpressionTypeToJSONTyped=eu,n.UiPolicyFromJSON=re,n.UiPolicyFromJSONTyped=Dn,n.UiPolicyLiteralFromJSON=yn,n.UiPolicyLiteralFromJSONTyped=gn,n.UiPolicyLiteralToJSON=hn,n.UiPolicyLiteralToJSONTyped=Sn,n.UiPolicyLiteralType=Ee,n.UiPolicyLiteralTypeFromJSON=pn,n.UiPolicyLiteralTypeFromJSONTyped=mn,n.UiPolicyLiteralTypeToJSON=Kc,n.UiPolicyLiteralTypeToJSONTyped=Wc,n.UiPolicyToJSON=ne,n.UiPolicyToJSONTyped=wn,n.UseCaseApi=Ns,n.VaultSecretCreateSubmitFromJSON=ll,n.VaultSecretCreateSubmitFromJSONTyped=is,n.VaultSecretCreateSubmitToJSON=as,n.VaultSecretCreateSubmitToJSONTyped=os,n.VaultSecretEditPageFromJSON=ss,n.VaultSecretEditPageFromJSONTyped=cs,n.VaultSecretEditPageToJSON=pl,n.VaultSecretEditPageToJSONTyped=us,n.VaultSecretEditSubmitFromJSON=yl,n.VaultSecretEditSubmitFromJSONTyped=ds,n.VaultSecretEditSubmitToJSON=ls,n.VaultSecretEditSubmitToJSONTyped=fs,n.VaultSecretListPageEntryFromJSON=ps,n.VaultSecretListPageEntryFromJSONTyped=ms,n.VaultSecretListPageEntryToJSON=hl,n.VaultSecretListPageEntryToJSONTyped=ys,n.VaultSecretQueryFromJSON=Tl,n.VaultSecretQueryFromJSONTyped=gs,n.VaultSecretQueryToJSON=hs,n.VaultSecretQueryToJSONTyped=Ss,n.VoidApiResponse=Bt,n.buildEdcClient=Pf,n.canConsumeForm=Ls,n.exists=ks,n.instanceOfAssetFilterConstraint=Zs,n.instanceOfAssetFilterConstraintOperator=Vs,n.instanceOfAssetPage=Ks,n.instanceOfBuildInfo=Ys,n.instanceOfBusinessPartnerGroupCreateSubmit=xs,n.instanceOfBusinessPartnerGroupEditPage=ec,n.instanceOfBusinessPartnerGroupEditSubmit=rc,n.instanceOfBusinessPartnerGroupListPageEntry=ic,n.instanceOfBusinessPartnerGroupQuery=oc,n.instanceOfCallbackAddressDto=dc,n.instanceOfCallbackAddressEventType=cc,n.instanceOfCatalogFilterExpression=Sc,n.instanceOfCatalogFilterExpressionLiteral=mc,n.instanceOfCatalogFilterExpressionLiteralType=lc,n.instanceOfCatalogFilterExpressionOperator=yc,n.instanceOfCatalogQuery=Tc,n.instanceOfCatalogQueryV2=Dc,n.instanceOfCatalogSortBy=Jc,n.instanceOfCatalogSortByDirection=Nc,n.instanceOfConnectorLimits=Ac,n.instanceOfContractAgreementCard=nu,n.instanceOfContractAgreementDirection=Ic,n.instanceOfContractAgreementPage=iu,n.instanceOfContractAgreementPageQuery=ou,n.instanceOfContractAgreementTerminationInfo=vc,n.instanceOfContractAgreementTransferProcess=Vc,n.instanceOfContractDefinitionEntry=gu,n.instanceOfContractDefinitionPage=hu,n.instanceOfContractDefinitionRequest=Tu,n.instanceOfContractNegotiationRequest=Nu,n.instanceOfContractNegotiationSimplifiedState=Pu,n.instanceOfContractNegotiationState=wu,n.instanceOfContractNegotiationStateResult=Au,n.instanceOfContractTerminatedBy=_c,n.instanceOfContractTerminationRequest=Iu,n.instanceOfContractTerminationStatus=Bc,n.instanceOfDashboardCxDidConfig=Fu,n.instanceOfDashboardDapsConfig=_u,n.instanceOfDashboardPage=Eu,n.instanceOfDashboardTransferAmounts=Ru,n.instanceOfDataOfferCreateRequest=sd,n.instanceOfDataOfferPublishType=ku,n.instanceOfDataSourceAvailability=Gs,n.instanceOfDataSourceType=Hu,n.instanceOfEdrDto=ud,n.instanceOfIdAvailabilityResponse=ld,n.instanceOfIdResponseDto=pd,n.instanceOfInitiateCustomTransferRequest=yd,n.instanceOfInitiateTransferRequest=hd,n.instanceOfKpiResult=Od,n.instanceOfNegotiateAllQuery=Cd,n.instanceOfNegotiateAllResult=Jd,n.instanceOfOperatorDto=Gc,n.instanceOfPolicyDefinitionCreateDto=wd,n.instanceOfPolicyDefinitionCreateRequest=Id,n.instanceOfPolicyDefinitionDto=Fd,n.instanceOfPolicyDefinitionPage=_d,n.instanceOfTransferHistoryEntry=Ed,n.instanceOfTransferHistoryPage=vd,n.instanceOfTransferProcessSimplifiedState=kc,n.instanceOfTransferProcessState=Hc,n.instanceOfTransferProcessStateResult=qd,n.instanceOfTransferProcessStatesDto=Td,n.instanceOfUiAsset=$s,n.instanceOfUiAssetCreateRequest=od,n.instanceOfUiAssetEditRequest=Hd,n.instanceOfUiConfig=Gd,n.instanceOfUiConfigFeature=Bd,n.instanceOfUiConfigPreconfiguredCounterparty=Zd,n.instanceOfUiContractNegotiation=zd,n.instanceOfUiContractOffer=Kd,n.instanceOfUiCriterion=yu,n.instanceOfUiCriterionLiteral=lu,n.instanceOfUiCriterionLiteralType=cu,n.instanceOfUiCriterionOperator=fu,n.instanceOfUiDataOffer=Wd,n.instanceOfUiDataSinkHttpDataPush=il,n.instanceOfUiDataSinkHttpDataPushMethod=Xd,n.instanceOfUiDataSource=ad,n.instanceOfUiDataSourceHttpData=nd,n.instanceOfUiDataSourceHttpDataMethod=Mu,n.instanceOfUiDataSourceOnRequest=id,n.instanceOfUiHttpAuth=rd,n.instanceOfUiHttpAuthApiKey=Qu,n.instanceOfUiHttpAuthBasic=zu,n.instanceOfUiHttpAuthOauth2=xu,n.instanceOfUiHttpAuthType=ju,n.instanceOfUiHttpOauth2AuthType=$u,n.instanceOfUiHttpOauth2PrivateKeyAuthorization=Yu,n.instanceOfUiHttpOauth2SharedSecretAuthorization=Xu,n.instanceOfUiHttpPushAuth=nl,n.instanceOfUiHttpPushAuthType=el,n.instanceOfUiInitiateTransferRequest=cl,n.instanceOfUiInitiateTransferType=al,n.instanceOfUiPolicy=ru,n.instanceOfUiPolicyConstraint=Xc,n.instanceOfUiPolicyCreateRequest=bd,n.instanceOfUiPolicyExpression=tu,n.instanceOfUiPolicyExpressionType=xc,n.instanceOfUiPolicyLiteral=Yc,n.instanceOfUiPolicyLiteralType=$c,n.instanceOfVaultSecretCreateSubmit=dl,n.instanceOfVaultSecretEditPage=fl,n.instanceOfVaultSecretEditSubmit=ml,n.instanceOfVaultSecretListPageEntry=gl,n.instanceOfVaultSecretQuery=Sl,n.mapValues=qs,n.querystring=dt,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(n,A){typeof exports=="object"&&typeof module<"u"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(n=typeof globalThis<"u"?globalThis:n||self,A(n["sovity-edc-client"]={}))})(this,function(n){"use strict";var Bf=Object.defineProperty;var Mf=(n,A,L)=>A in n?Bf(n,A,{enumerable:!0,configurable:!0,writable:!0,value:L}):n[A]=L;var v=(n,A,L)=>Mf(n,typeof A!="symbol"?A+"":A,L);const A="https://my-connector/api/management".replace(/\/+$/,"");class L{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:A}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||lt}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const Lt=new L,dt=class dt{constructor(t=Lt){v(this,"middleware");v(this,"fetchApi",async(t,r)=>{let i={url:t,init:r};for(const o of this.middleware)o.pre&&(i=await o.pre({fetch:this.fetchApi,...i})||i);let a;try{a=await(this.configuration.fetchApi||fetch)(i.url,i.init)}catch(o){for(const s of this.middleware)s.onError&&(a=await s.onError({fetch:this.fetchApi,url:i.url,init:i.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new Vt(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(a=await o.post({fetch:this.fetchApi,url:i.url,init:i.init,response:a.clone()})||a);return a});this.configuration=t,this.middleware=t.middleware}withMiddleware(...t){const r=this.clone();return r.middleware=r.middleware.concat(...t),r}withPreMiddleware(...t){const r=t.map(i=>({pre:i}));return this.withMiddleware(...r)}withPostMiddleware(...t){const r=t.map(i=>({post:i}));return this.withMiddleware(...r)}isJsonMime(t){return t?dt.jsonRegex.test(t):!1}async request(t,r){const{url:i,init:a}=await this.createFetchParams(t,r),o=await this.fetchApi(i,a);if(o&&o.status>=200&&o.status<300)return o;throw new Ht(o,"Response returned an error code")}async createFetchParams(t,r){let i=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(O=>a[O]===void 0?delete a[O]:{});const o=typeof r=="function"?r:async()=>r,s={method:t.method,headers:a,body:t.body,credentials:this.configuration.credentials},c={...s,...await o({init:s,context:t})};let p;Gs(c.body)||c.body instanceof URLSearchParams||Zs(c.body)?p=c.body:this.isJsonMime(a["Content-Type"])?p=JSON.stringify(c.body):p=c.body;const d={...c,body:p};return{url:i,init:d}}clone(){const t=this.constructor,r=new t(this.configuration);return r.middleware=this.middleware.slice(),r}};v(dt,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let K=dt;function Zs(e){return typeof Blob<"u"&&e instanceof Blob}function Gs(e){return typeof FormData<"u"&&e instanceof FormData}class Ht extends Error{constructor(r,i){super(i);v(this,"name","ResponseError");this.response=r}}class Vt extends Error{constructor(r,i){super(i);v(this,"name","FetchError");this.cause=r}}class P extends Error{constructor(r,i){super(i);v(this,"name","RequiredError");this.field=r}}const zs={csv:",",ssv:" ",tsv:" ",pipes:"|"};function lt(e,t=""){return Object.keys(e).map(r=>Bt(r,e[r],t)).filter(r=>r.length>0).join("&")}function Bt(e,t,r=""){const i=r+(r.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);return`${encodeURIComponent(i)}=${a}`}if(t instanceof Set){const a=Array.from(t);return Bt(e,a,r)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?lt(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}function Qs(e,t){const r=e[t];return r!=null}function $s(e,t){return Object.keys(e).reduce((r,i)=>({...r,[i]:t(e[i])}),{})}function Ks(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class m{constructor(t,r=i=>i){this.raw=t,this.transformer=r}async value(){return this.transformer(await this.raw.json())}}class Mt{constructor(t){this.raw=t}async value(){}}class Ws{constructor(t){this.raw=t}async value(){return await this.raw.blob()}}class Zt{constructor(t){this.raw=t}async value(){return await this.raw.text()}}const Te={Like:"LIKE",Eq:"EQ",In:"IN"};function Ys(e){for(const t in Te)if(Object.prototype.hasOwnProperty.call(Te,t)&&Te[t]===e)return!0;return!1}function Gt(e){return zt(e)}function zt(e,t){return e}function Xs(e){return e}function xs(e,t){return e}function js(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0||!("operator"in e)||e.operator===void 0)}function ft(e){return Qt(e)}function Qt(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:Gt(e.operator),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function pt(e){return $t(e,!1)}function $t(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,operator:e.operator,value:e.value,valueList:e.valueList}}const Oe={Live:"LIVE",OnRequest:"ON_REQUEST"};function ec(e){for(const t in Oe)if(Object.prototype.hasOwnProperty.call(Oe,t)&&Oe[t]===e)return!0;return!1}function Kt(e){return Wt(e)}function Wt(e,t){return e}function tc(e){return e}function rc(e,t){return e}function nc(e){return!(!("dataSourceAvailability"in e)||e.dataSourceAvailability===void 0||!("assetId"in e)||e.assetId===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("title"in e)||e.title===void 0||!("creatorOrganizationName"in e)||e.creatorOrganizationName===void 0||!("isOwnConnector"in e)||e.isOwnConnector===void 0)}function Z(e){return Yt(e)}function Yt(e,t){return e==null?e:{dataSourceAvailability:Kt(e.dataSourceAvailability),assetId:e.assetId,connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,title:e.title,creatorOrganizationName:e.creatorOrganizationName,onRequestContactEmail:e.onRequestContactEmail==null?void 0:e.onRequestContactEmail,onRequestContactEmailSubject:e.onRequestContactEmailSubject==null?void 0:e.onRequestContactEmailSubject,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,descriptionShortText:e.descriptionShortText==null?void 0:e.descriptionShortText,isOwnConnector:e.isOwnConnector,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,httpDatasourceHintsProxyMethod:e.httpDatasourceHintsProxyMethod==null?void 0:e.httpDatasourceHintsProxyMethod,httpDatasourceHintsProxyPath:e.httpDatasourceHintsProxyPath==null?void 0:e.httpDatasourceHintsProxyPath,httpDatasourceHintsProxyQueryParams:e.httpDatasourceHintsProxyQueryParams==null?void 0:e.httpDatasourceHintsProxyQueryParams,httpDatasourceHintsProxyBody:e.httpDatasourceHintsProxyBody==null?void 0:e.httpDatasourceHintsProxyBody,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),assetJsonLd:e.assetJsonLd==null?void 0:e.assetJsonLd,customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function j(e){return Xt(e,!1)}function Xt(e,t=!1){return e==null?e:{dataSourceAvailability:e.dataSourceAvailability,assetId:e.assetId,connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,title:e.title,creatorOrganizationName:e.creatorOrganizationName,onRequestContactEmail:e.onRequestContactEmail,onRequestContactEmailSubject:e.onRequestContactEmailSubject,language:e.language,description:e.description,descriptionShortText:e.descriptionShortText,isOwnConnector:e.isOwnConnector,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,httpDatasourceHintsProxyMethod:e.httpDatasourceHintsProxyMethod,httpDatasourceHintsProxyPath:e.httpDatasourceHintsProxyPath,httpDatasourceHintsProxyQueryParams:e.httpDatasourceHintsProxyQueryParams,httpDatasourceHintsProxyBody:e.httpDatasourceHintsProxyBody,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),assetJsonLd:e.assetJsonLd,customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function ic(e){return!(!("content"in e)||e.content===void 0||!("totalItems"in e)||e.totalItems===void 0||!("lastPage"in e)||e.lastPage===void 0||!("currentPage"in e)||e.currentPage===void 0||!("pageStart"in e)||e.pageStart===void 0||!("pageEnd"in e)||e.pageEnd===void 0||!("pageSize"in e)||e.pageSize===void 0)}function xt(e){return jt(e)}function jt(e,t){return e==null?e:{content:e.content.map(Z),totalItems:e.totalItems,lastPage:e.lastPage,previousPage:e.previousPage==null?void 0:e.previousPage,currentPage:e.currentPage,nextPage:e.nextPage==null?void 0:e.nextPage,pageStart:e.pageStart,pageEnd:e.pageEnd,pageSize:e.pageSize}}function ac(e){return er(e,!1)}function er(e,t=!1){return e==null?e:{content:e.content.map(j),totalItems:e.totalItems,lastPage:e.lastPage,previousPage:e.previousPage,currentPage:e.currentPage,nextPage:e.nextPage,pageStart:e.pageStart,pageEnd:e.pageEnd,pageSize:e.pageSize}}const Ne={Title:"TITLE",DescriptionShortText:"DESCRIPTION_SHORT_TEXT"};function oc(e){for(const t in Ne)if(Object.prototype.hasOwnProperty.call(Ne,t)&&Ne[t]===e)return!0;return!1}function tr(e){return rr(e)}function rr(e,t){return e}function sc(e){return e}function cc(e,t){return e}function uc(e){return!(!("columnName"in e)||e.columnName===void 0)}function nr(e){return ir(e)}function ir(e,t){return e==null?e:{columnName:tr(e.columnName),descending:e.descending==null?void 0:e.descending}}function ar(e){return or(e,!1)}function or(e,t=!1){return e==null?e:{columnName:e.columnName,descending:e.descending}}function dc(e){return!0}function lc(e){return sr(e)}function sr(e,t){return e==null?e:{query:e.query==null?void 0:e.query,page:e.page==null?void 0:e.page,pageSize:e.pageSize==null?void 0:e.pageSize,sort:e.sort==null?void 0:e.sort.map(nr)}}function cr(e){return ur(e,!1)}function ur(e,t=!1){return e==null?e:{query:e.query,page:e.page,pageSize:e.pageSize,sort:e.sort==null?void 0:e.sort.map(ar)}}function fc(e){return!(!("buildDate"in e)||e.buildDate===void 0||!("buildVersion"in e)||e.buildVersion===void 0)}function dr(e){return lr(e)}function lr(e,t){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function pc(e){return fr(e,!1)}function fr(e,t=!1){return e==null?e:{buildDate:e.buildDate,buildVersion:e.buildVersion}}function mc(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function yc(e){return pr(e)}function pr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function mr(e){return yr(e,!1)}function yr(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function gc(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function gr(e){return hr(e)}function hr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function hc(e){return Sr(e,!1)}function Sr(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function Sc(e){return!(!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function Tc(e){return Tr(e)}function Tr(e,t){return e==null?e:{businessPartnerNumbers:e.businessPartnerNumbers}}function Or(e){return Nr(e,!1)}function Nr(e,t=!1){return e==null?e:{businessPartnerNumbers:e.businessPartnerNumbers}}function Oc(e){return!(!("groupId"in e)||e.groupId===void 0||!("businessPartnerNumbers"in e)||e.businessPartnerNumbers===void 0)}function Pr(e){return Cr(e)}function Cr(e,t){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function Nc(e){return Jr(e,!1)}function Jr(e,t=!1){return e==null?e:{groupId:e.groupId,businessPartnerNumbers:e.businessPartnerNumbers}}function Pc(e){return!0}function Cc(e){return Dr(e)}function Dr(e,t){return e==null?e:{searchQuery:e.searchQuery==null?void 0:e.searchQuery,limit:e.limit==null?void 0:e.limit}}function wr(e){return Ar(e,!1)}function Ar(e,t=!1){return e==null?e:{searchQuery:e.searchQuery,limit:e.limit}}const Pe={ContractNegotiationFinalized:"CONTRACT_NEGOTIATION_FINALIZED",ContractNegotiationTerminated:"CONTRACT_NEGOTIATION_TERMINATED",TransferProcessStarted:"TRANSFER_PROCESS_STARTED",TransferProcessTerminated:"TRANSFER_PROCESS_TERMINATED",TransferProcessCompleted:"TRANSFER_PROCESS_COMPLETED"};function Jc(e){for(const t in Pe)if(Object.prototype.hasOwnProperty.call(Pe,t)&&Pe[t]===e)return!0;return!1}function br(e){return Ir(e)}function Ir(e,t){return e}function Ur(e){return e}function Dc(e,t){return e}function wc(e){return!(!("url"in e)||e.url===void 0||!("events"in e)||e.events===void 0)}function Ce(e){return Fr(e)}function Fr(e,t){return e==null?e:{url:e.url,events:e.events.map(br),authHeaderName:e.authHeaderName==null?void 0:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName==null?void 0:e.authHeaderVaultSecretName}}function Je(e){return _r(e,!1)}function _r(e,t=!1){return e==null?e:{url:e.url,events:e.events.map(Ur),authHeaderName:e.authHeaderName,authHeaderVaultSecretName:e.authHeaderVaultSecretName}}const De={Value:"VALUE",ValueList:"VALUE_LIST"};function Ac(e){for(const t in De)if(Object.prototype.hasOwnProperty.call(De,t)&&De[t]===e)return!0;return!1}function Rr(e){return Er(e)}function Er(e,t){return e}function bc(e){return e}function Ic(e,t){return e}function Uc(e){return!0}function vr(e){return kr(e)}function kr(e,t){return e==null?e:{type:e.type==null?void 0:Rr(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function qr(e){return Lr(e,!1)}function Lr(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const we={Like:"LIKE",Eq:"EQ",In:"IN"};function Fc(e){for(const t in we)if(Object.prototype.hasOwnProperty.call(we,t)&&we[t]===e)return!0;return!1}function Hr(e){return Vr(e)}function Vr(e,t){return e}function _c(e){return e}function Rc(e,t){return e}function Ec(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function Br(e){return Mr(e)}function Mr(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:Hr(e.operator),operandRight:vr(e.operandRight)}}function Zr(e){return Gr(e,!1)}function Gr(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:qr(e.operandRight)}}function vc(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function kc(e){return zr(e)}function zr(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId==null?void 0:e.participantId,limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,filterExpressions:e.filterExpressions==null?void 0:e.filterExpressions.map(Br)}}function Qr(e){return $r(e,!1)}function $r(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,limit:e.limit,offset:e.offset,filterExpressions:e.filterExpressions==null?void 0:e.filterExpressions.map(Zr)}}const Ae={Asc:"ASC",Desc:"DESC"};function qc(e){for(const t in Ae)if(Object.prototype.hasOwnProperty.call(Ae,t)&&Ae[t]===e)return!0;return!1}function Kr(e){return Wr(e)}function Wr(e,t){return e}function Lc(e){return e}function Hc(e,t){return e}function Vc(e){return!(!("assetPropertyPath"in e)||e.assetPropertyPath===void 0)}function Yr(e){return Xr(e)}function Xr(e,t){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction==null?void 0:Kr(e.direction)}}function xr(e){return jr(e,!1)}function jr(e,t=!1){return e==null?e:{assetPropertyPath:e.assetPropertyPath,direction:e.direction}}function Bc(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0)}function Mc(e){return en(e)}function en(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(ft),limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,sortBy:e.sortBy==null?void 0:Yr(e.sortBy)}}function tn(e){return rn(e,!1)}function rn(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter==null?void 0:e.filter.map(pt),limit:e.limit,offset:e.offset,sortBy:xr(e.sortBy)}}function Zc(e){return!(!("numActiveConsumingContractAgreements"in e)||e.numActiveConsumingContractAgreements===void 0)}function nn(e){return an(e)}function an(e,t){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements==null?void 0:e.maxActiveConsumingContractAgreements}}function Gc(e){return on(e,!1)}function on(e,t=!1){return e==null?e:{numActiveConsumingContractAgreements:e.numActiveConsumingContractAgreements,maxActiveConsumingContractAgreements:e.maxActiveConsumingContractAgreements}}const be={Consuming:"CONSUMING",Providing:"PROVIDING"};function zc(e){for(const t in be)if(Object.prototype.hasOwnProperty.call(be,t)&&be[t]===e)return!0;return!1}function mt(e){return sn(e)}function sn(e,t){return e}function Qc(e){return e}function $c(e,t){return e}const Ie={Self:"SELF",Counterparty:"COUNTERPARTY"};function Kc(e){for(const t in Ie)if(Object.prototype.hasOwnProperty.call(Ie,t)&&Ie[t]===e)return!0;return!1}function cn(e){return un(e)}function un(e,t){return e}function Wc(e){return e}function Yc(e,t){return e}function Xc(e){return!(!("terminatedAt"in e)||e.terminatedAt===void 0||!("reason"in e)||e.reason===void 0||!("detail"in e)||e.detail===void 0||!("terminatedBy"in e)||e.terminatedBy===void 0)}function yt(e){return dn(e)}function dn(e,t){return e==null?e:{terminatedAt:new Date(e.terminatedAt),reason:e.reason,detail:e.detail,terminatedBy:cn(e.terminatedBy)}}function gt(e){return ln(e,!1)}function ln(e,t=!1){return e==null?e:{terminatedAt:e.terminatedAt.toISOString(),reason:e.reason,detail:e.detail,terminatedBy:e.terminatedBy}}const Ue={Running:"RUNNING",Ok:"OK",Error:"ERROR"};function xc(e){for(const t in Ue)if(Object.prototype.hasOwnProperty.call(Ue,t)&&Ue[t]===e)return!0;return!1}function fn(e){return pn(e)}function pn(e,t){return e}function jc(e){return e}function eu(e,t){return e}function tu(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function Fe(e){return mn(e)}function mn(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:fn(e.simplifiedState)}}function _e(e){return yn(e,!1)}function yn(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function ru(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("state"in e)||e.state===void 0)}function gn(e){return hn(e)}function hn(e,t){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:new Date(e.lastUpdatedDate),state:Fe(e.state),errorMessage:e.errorMessage==null?void 0:e.errorMessage}}function Sn(e){return Tn(e,!1)}function Tn(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,lastUpdatedDate:e.lastUpdatedDate.toISOString(),state:_e(e.state),errorMessage:e.errorMessage}}const Re={Ongoing:"ONGOING",Terminated:"TERMINATED"};function nu(e){for(const t in Re)if(Object.prototype.hasOwnProperty.call(Re,t)&&Re[t]===e)return!0;return!1}function ht(e){return On(e)}function On(e,t){return e}function iu(e){return e}function au(e,t){return e}const Ee={Eq:"EQ",Neq:"NEQ",Gt:"GT",Geq:"GEQ",Lt:"LT",Leq:"LEQ",In:"IN",HasPart:"HAS_PART",IsA:"IS_A",IsAllOf:"IS_ALL_OF",IsAnyOf:"IS_ANY_OF",IsNoneOf:"IS_NONE_OF"};function ou(e){for(const t in Ee)if(Object.prototype.hasOwnProperty.call(Ee,t)&&Ee[t]===e)return!0;return!1}function Nn(e){return Pn(e)}function Pn(e,t){return e}function su(e){return e}function cu(e,t){return e}const ve={String:"STRING",StringList:"STRING_LIST",Json:"JSON"};function uu(e){for(const t in ve)if(Object.prototype.hasOwnProperty.call(ve,t)&&ve[t]===e)return!0;return!1}function Cn(e){return Jn(e)}function Jn(e,t){return e}function du(e){return e}function lu(e,t){return e}function fu(e){return!(!("type"in e)||e.type===void 0)}function Dn(e){return wn(e)}function wn(e,t){return e==null?e:{type:Cn(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function An(e){return bn(e,!1)}function bn(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}function pu(e){return!(!("left"in e)||e.left===void 0||!("operator"in e)||e.operator===void 0||!("right"in e)||e.right===void 0)}function St(e){return In(e)}function In(e,t){return e==null?e:{left:e.left,operator:Nn(e.operator),right:Dn(e.right)}}function Tt(e){return Un(e,!1)}function Un(e,t=!1){return e==null?e:{left:e.left,operator:e.operator,right:An(e.right)}}const ke={Empty:"EMPTY",Constraint:"CONSTRAINT",And:"AND",Or:"OR",Xone:"XONE"};function mu(e){for(const t in ke)if(Object.prototype.hasOwnProperty.call(ke,t)&&ke[t]===e)return!0;return!1}function Fn(e){return _n(e)}function _n(e,t){return e}function yu(e){return e}function gu(e,t){return e}function hu(e){return!(!("type"in e)||e.type===void 0)}function ee(e){return Rn(e)}function Rn(e,t){return e==null?e:{type:Fn(e.type),expressions:e.expressions==null?void 0:e.expressions.map(ee),constraint:e.constraint==null?void 0:St(e.constraint)}}function te(e){return En(e,!1)}function En(e,t=!1){return e==null?e:{type:e.type,expressions:e.expressions==null?void 0:e.expressions.map(te),constraint:Tt(e.constraint)}}function Su(e){return!(!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("errors"in e)||e.errors===void 0)}function re(e){return vn(e)}function vn(e,t){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:e.expression==null?void 0:ee(e.expression),errors:e.errors}}function ne(e){return kn(e,!1)}function kn(e,t=!1){return e==null?e:{policyJsonLd:e.policyJsonLd,expression:te(e.expression),errors:e.errors}}function Tu(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("direction"in e)||e.direction===void 0||!("counterPartyAddress"in e)||e.counterPartyAddress===void 0||!("counterPartyId"in e)||e.counterPartyId===void 0||!("contractSigningDate"in e)||e.contractSigningDate===void 0||!("asset"in e)||e.asset===void 0||!("contractPolicy"in e)||e.contractPolicy===void 0||!("transferProcesses"in e)||e.transferProcesses===void 0||!("terminationStatus"in e)||e.terminationStatus===void 0)}function Ot(e){return qn(e)}function qn(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:mt(e.direction),counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:new Date(e.contractSigningDate),asset:Z(e.asset),contractPolicy:re(e.contractPolicy),transferProcesses:e.transferProcesses.map(gn),terminationStatus:ht(e.terminationStatus),terminationInformation:e.terminationInformation==null?void 0:yt(e.terminationInformation)}}function Ln(e){return Hn(e,!1)}function Hn(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,contractNegotiationId:e.contractNegotiationId,direction:e.direction,counterPartyAddress:e.counterPartyAddress,counterPartyId:e.counterPartyId,contractSigningDate:e.contractSigningDate.toISOString(),asset:j(e.asset),contractPolicy:ne(e.contractPolicy),transferProcesses:e.transferProcesses.map(Sn),terminationStatus:e.terminationStatus,terminationInformation:gt(e.terminationInformation)}}function Ou(e){return!(!("contractAgreements"in e)||e.contractAgreements===void 0)}function Vn(e){return Bn(e)}function Bn(e,t){return e==null?e:{contractAgreements:e.contractAgreements.map(Ot)}}function Nu(e){return Mn(e,!1)}function Mn(e,t=!1){return e==null?e:{contractAgreements:e.contractAgreements.map(Ln)}}function Pu(e){return!0}function Cu(e){return Zn(e)}function Zn(e,t){return e==null?e:{terminationStatus:e.terminationStatus==null?void 0:ht(e.terminationStatus)}}function Gn(e){return zn(e,!1)}function zn(e,t=!1){return e==null?e:{terminationStatus:e.terminationStatus}}const qe={Value:"VALUE",ValueList:"VALUE_LIST"};function Ju(e){for(const t in qe)if(Object.prototype.hasOwnProperty.call(qe,t)&&qe[t]===e)return!0;return!1}function Qn(e){return $n(e)}function $n(e,t){return e}function Du(e){return e}function wu(e,t){return e}function Au(e){return!0}function Kn(e){return Wn(e)}function Wn(e,t){return e==null?e:{type:e.type==null?void 0:Qn(e.type),value:e.value==null?void 0:e.value,valueList:e.valueList==null?void 0:e.valueList}}function Yn(e){return Xn(e,!1)}function Xn(e,t=!1){return e==null?e:{type:e.type,value:e.value,valueList:e.valueList}}const Le={Eq:"EQ",In:"IN",Like:"LIKE"};function bu(e){for(const t in Le)if(Object.prototype.hasOwnProperty.call(Le,t)&&Le[t]===e)return!0;return!1}function xn(e){return jn(e)}function jn(e,t){return e}function Iu(e){return e}function Uu(e,t){return e}function Fu(e){return!(!("operandLeft"in e)||e.operandLeft===void 0||!("operator"in e)||e.operator===void 0||!("operandRight"in e)||e.operandRight===void 0)}function Nt(e){return ei(e)}function ei(e,t){return e==null?e:{operandLeft:e.operandLeft,operator:xn(e.operator),operandRight:Kn(e.operandRight)}}function Pt(e){return ti(e,!1)}function ti(e,t=!1){return e==null?e:{operandLeft:e.operandLeft,operator:e.operator,operandRight:Yn(e.operandRight)}}function _u(e){return!(!("contractDefinitionId"in e)||e.contractDefinitionId===void 0||!("accessPolicyId"in e)||e.accessPolicyId===void 0||!("contractPolicyId"in e)||e.contractPolicyId===void 0||!("assetSelector"in e)||e.assetSelector===void 0)}function ri(e){return ni(e)}function ni(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(Nt)}}function ii(e){return ai(e,!1)}function ai(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,accessPolicyId:e.accessPolicyId,contractPolicyId:e.contractPolicyId,assetSelector:e.assetSelector.map(Pt)}}function Ru(e){return!(!("contractDefinitions"in e)||e.contractDefinitions===void 0)}function oi(e){return si(e)}function si(e,t){return e==null?e:{contractDefinitions:e.contractDefinitions.map(ri)}}function Eu(e){return ci(e,!1)}function ci(e,t=!1){return e==null?e:{contractDefinitions:e.contractDefinitions.map(ii)}}function vu(e){return!(!("contractDefinitionId"in e)||e.contractDefinitionId===void 0||!("contractPolicyId"in e)||e.contractPolicyId===void 0||!("accessPolicyId"in e)||e.accessPolicyId===void 0||!("assetSelector"in e)||e.assetSelector===void 0)}function ku(e){return ui(e)}function ui(e,t){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(Nt)}}function di(e){return li(e,!1)}function li(e,t=!1){return e==null?e:{contractDefinitionId:e.contractDefinitionId,contractPolicyId:e.contractPolicyId,accessPolicyId:e.accessPolicyId,assetSelector:e.assetSelector.map(Pt)}}function qu(e){return!(!("counterPartyId"in e)||e.counterPartyId===void 0||!("counterPartyAddress"in e)||e.counterPartyAddress===void 0||!("contractOfferId"in e)||e.contractOfferId===void 0||!("policyJsonLd"in e)||e.policyJsonLd===void 0||!("assetId"in e)||e.assetId===void 0)}function Lu(e){return fi(e)}function fi(e,t){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce)}}function pi(e){return mi(e,!1)}function mi(e,t=!1){return e==null?e:{counterPartyId:e.counterPartyId,counterPartyAddress:e.counterPartyAddress,contractOfferId:e.contractOfferId,policyJsonLd:e.policyJsonLd,assetId:e.assetId,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Je)}}const He={InProgress:"IN_PROGRESS",Agreed:"AGREED",Terminated:"TERMINATED"};function Hu(e){for(const t in He)if(Object.prototype.hasOwnProperty.call(He,t)&&He[t]===e)return!0;return!1}function yi(e){return gi(e)}function gi(e,t){return e}function Vu(e){return e}function Bu(e,t){return e}function Mu(e){return!(!("name"in e)||e.name===void 0||!("code"in e)||e.code===void 0||!("simplifiedState"in e)||e.simplifiedState===void 0)}function Ve(e){return hi(e)}function hi(e,t){return e==null?e:{name:e.name,code:e.code,simplifiedState:yi(e.simplifiedState)}}function Be(e){return Si(e,!1)}function Si(e,t=!1){return e==null?e:{name:e.name,code:e.code,simplifiedState:e.simplifiedState}}function Zu(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0)}function Ti(e){return Oi(e)}function Oi(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:Ve(e.state),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,contractAgreementTerminationInfo:e.contractAgreementTerminationInfo==null?void 0:yt(e.contractAgreementTerminationInfo),stateChangedAt:new Date(e.stateChangedAt)}}function Gu(e){return Ni(e,!1)}function Ni(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,state:Be(e.state),contractAgreementId:e.contractAgreementId,contractAgreementTerminationInfo:gt(e.contractAgreementTerminationInfo),stateChangedAt:e.stateChangedAt.toISOString()}}function zu(e){return!(!("detail"in e)||e.detail===void 0||!("reason"in e)||e.reason===void 0)}function Qu(e){return Pi(e)}function Pi(e,t){return e==null?e:{detail:e.detail,reason:e.reason}}function Ci(e){return Ji(e,!1)}function Ji(e,t=!1){return e==null?e:{detail:e.detail,reason:e.reason}}function $u(e){return!(!("myDid"in e)||e.myDid===void 0||!("walletTokenUrl"in e)||e.walletTokenUrl===void 0||!("trustedVcIssuer"in e)||e.trustedVcIssuer===void 0||!("bdrsUrl"in e)||e.bdrsUrl===void 0||!("dimUrl"in e)||e.dimUrl===void 0)}function Di(e){return wi(e)}function wi(e,t){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function Ai(e){return bi(e,!1)}function bi(e,t=!1){return e==null?e:{myDid:e.myDid,walletTokenUrl:e.walletTokenUrl,trustedVcIssuer:e.trustedVcIssuer,bdrsUrl:e.bdrsUrl,dimUrl:e.dimUrl}}function Ku(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("jwksUrl"in e)||e.jwksUrl===void 0)}function Ii(e){return Ui(e)}function Ui(e,t){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function Fi(e){return _i(e,!1)}function _i(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,jwksUrl:e.jwksUrl}}function Wu(e){return!(!("numTotal"in e)||e.numTotal===void 0||!("numRunning"in e)||e.numRunning===void 0||!("numOk"in e)||e.numOk===void 0||!("numError"in e)||e.numError===void 0)}function Ct(e){return Ri(e)}function Ri(e,t){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function Jt(e){return Ei(e,!1)}function Ei(e,t=!1){return e==null?e:{numTotal:e.numTotal,numRunning:e.numRunning,numOk:e.numOk,numError:e.numError}}function Yu(e){return!(!("numAssets"in e)||e.numAssets===void 0||!("numPolicies"in e)||e.numPolicies===void 0||!("numContractDefinitions"in e)||e.numContractDefinitions===void 0||!("numContractAgreementsConsuming"in e)||e.numContractAgreementsConsuming===void 0||!("numContractAgreementsProviding"in e)||e.numContractAgreementsProviding===void 0||!("transferProcessesConsuming"in e)||e.transferProcessesConsuming===void 0||!("transferProcessesProviding"in e)||e.transferProcessesProviding===void 0||!("managementApiUrlShownInDashboard"in e)||e.managementApiUrlShownInDashboard===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("connectorParticipantId"in e)||e.connectorParticipantId===void 0||!("connectorTitle"in e)||e.connectorTitle===void 0||!("connectorDescription"in e)||e.connectorDescription===void 0||!("connectorCuratorUrl"in e)||e.connectorCuratorUrl===void 0||!("connectorCuratorName"in e)||e.connectorCuratorName===void 0||!("connectorMaintainerUrl"in e)||e.connectorMaintainerUrl===void 0||!("connectorMaintainerName"in e)||e.connectorMaintainerName===void 0)}function vi(e){return ki(e)}function ki(e,t){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:Ct(e.transferProcessesConsuming),transferProcessesProviding:Ct(e.transferProcessesProviding),managementApiUrlShownInDashboard:e.managementApiUrlShownInDashboard,connectorEndpoint:e.connectorEndpoint,connectorParticipantId:e.connectorParticipantId,connectorTitle:e.connectorTitle,connectorDescription:e.connectorDescription,connectorCuratorUrl:e.connectorCuratorUrl,connectorCuratorName:e.connectorCuratorName,connectorMaintainerUrl:e.connectorMaintainerUrl,connectorMaintainerName:e.connectorMaintainerName,connectorDapsConfig:e.connectorDapsConfig==null?void 0:Ii(e.connectorDapsConfig),connectorCxDidConfig:e.connectorCxDidConfig==null?void 0:Di(e.connectorCxDidConfig)}}function Xu(e){return qi(e,!1)}function qi(e,t=!1){return e==null?e:{numAssets:e.numAssets,numPolicies:e.numPolicies,numContractDefinitions:e.numContractDefinitions,numContractAgreementsConsuming:e.numContractAgreementsConsuming,numContractAgreementsProviding:e.numContractAgreementsProviding,transferProcessesConsuming:Jt(e.transferProcessesConsuming),transferProcessesProviding:Jt(e.transferProcessesProviding),managementApiUrlShownInDashboard:e.managementApiUrlShownInDashboard,connectorEndpoint:e.connectorEndpoint,connectorParticipantId:e.connectorParticipantId,connectorTitle:e.connectorTitle,connectorDescription:e.connectorDescription,connectorCuratorUrl:e.connectorCuratorUrl,connectorCuratorName:e.connectorCuratorName,connectorMaintainerUrl:e.connectorMaintainerUrl,connectorMaintainerName:e.connectorMaintainerName,connectorDapsConfig:Fi(e.connectorDapsConfig),connectorCxDidConfig:Ai(e.connectorCxDidConfig)}}const Me={DontPublish:"DONT_PUBLISH",PublishUnrestricted:"PUBLISH_UNRESTRICTED",PublishRestricted:"PUBLISH_RESTRICTED"};function xu(e){for(const t in Me)if(Object.prototype.hasOwnProperty.call(Me,t)&&Me[t]===e)return!0;return!1}function Li(e){return Hi(e)}function Hi(e,t){return e}function ju(e){return e}function ed(e,t){return e}const Ze={HttpData:"HTTP_DATA",OnRequest:"ON_REQUEST",Custom:"CUSTOM"};function td(e){for(const t in Ze)if(Object.prototype.hasOwnProperty.call(Ze,t)&&Ze[t]===e)return!0;return!1}function Vi(e){return Bi(e)}function Bi(e,t){return e}function rd(e){return e}function nd(e,t){return e}const Ge={Get:"GET",Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function id(e){for(const t in Ge)if(Object.prototype.hasOwnProperty.call(Ge,t)&&Ge[t]===e)return!0;return!1}function Mi(e){return Zi(e)}function Zi(e,t){return e}function ad(e){return e}function od(e,t){return e}function sd(e){return!(!("headerName"in e)||e.headerName===void 0||!("vaultKey"in e)||e.vaultKey===void 0)}function Dt(e){return Gi(e)}function Gi(e,t){return e==null?e:{headerName:e.headerName,vaultKey:e.vaultKey}}function wt(e){return zi(e,!1)}function zi(e,t=!1){return e==null?e:{headerName:e.headerName,vaultKey:e.vaultKey}}function cd(e){return!(!("username"in e)||e.username===void 0||!("password"in e)||e.password===void 0)}function At(e){return Qi(e)}function Qi(e,t){return e==null?e:{username:e.username,password:e.password}}function bt(e){return $i(e,!1)}function $i(e,t=!1){return e==null?e:{username:e.username,password:e.password}}const ze={SharedSecret:"SHARED_SECRET",PrivateKey:"PRIVATE_KEY"};function ud(e){for(const t in ze)if(Object.prototype.hasOwnProperty.call(ze,t)&&ze[t]===e)return!0;return!1}function Ki(e){return Wi(e)}function Wi(e,t){return e}function dd(e){return e}function ld(e,t){return e}function fd(e){return!(!("privateKeyName"in e)||e.privateKeyName===void 0||!("tokenValidityInSeconds"in e)||e.tokenValidityInSeconds===void 0)}function Yi(e){return Xi(e)}function Xi(e,t){return e==null?e:{privateKeyName:e.privateKeyName,tokenValidityInSeconds:e.tokenValidityInSeconds}}function xi(e){return ji(e,!1)}function ji(e,t=!1){return e==null?e:{privateKeyName:e.privateKeyName,tokenValidityInSeconds:e.tokenValidityInSeconds}}function pd(e){return!(!("clientId"in e)||e.clientId===void 0||!("clientSecretName"in e)||e.clientSecretName===void 0)}function ea(e){return ta(e)}function ta(e,t){return e==null?e:{clientId:e.clientId,clientSecretName:e.clientSecretName}}function ra(e){return na(e,!1)}function na(e,t=!1){return e==null?e:{clientId:e.clientId,clientSecretName:e.clientSecretName}}function md(e){return!(!("tokenUrl"in e)||e.tokenUrl===void 0||!("type"in e)||e.type===void 0)}function ia(e){return aa(e)}function aa(e,t){return e==null?e:{tokenUrl:e.tokenUrl,scope:e.scope==null?void 0:e.scope,type:Ki(e.type),privateKey:e.privateKey==null?void 0:Yi(e.privateKey),sharedSecret:e.sharedSecret==null?void 0:ea(e.sharedSecret)}}function oa(e){return sa(e,!1)}function sa(e,t=!1){return e==null?e:{tokenUrl:e.tokenUrl,scope:e.scope,type:e.type,privateKey:xi(e.privateKey),sharedSecret:ra(e.sharedSecret)}}const Qe={Basic:"BASIC",Oauth2:"OAUTH2",ApiKey:"API_KEY"};function yd(e){for(const t in Qe)if(Object.prototype.hasOwnProperty.call(Qe,t)&&Qe[t]===e)return!0;return!1}function ca(e){return ua(e)}function ua(e,t){return e}function gd(e){return e}function hd(e,t){return e}function Sd(e){return!(!("type"in e)||e.type===void 0)}function da(e){return la(e)}function la(e,t){return e==null?e:{type:ca(e.type),basic:e.basic==null?void 0:At(e.basic),apiKey:e.apiKey==null?void 0:Dt(e.apiKey),oauth:e.oauth==null?void 0:ia(e.oauth)}}function fa(e){return pa(e,!1)}function pa(e,t=!1){return e==null?e:{type:e.type,basic:bt(e.basic),apiKey:wt(e.apiKey),oauth:oa(e.oauth)}}function Td(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function ma(e){return ya(e)}function ya(e,t){return e==null?e:{method:e.method==null?void 0:Mi(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,auth:e.auth==null?void 0:da(e.auth),headers:e.headers==null?void 0:e.headers,enableMethodParameterization:e.enableMethodParameterization==null?void 0:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization==null?void 0:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization==null?void 0:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization==null?void 0:e.enableBodyParameterization}}function ga(e){return ha(e,!1)}function ha(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,auth:fa(e.auth),headers:e.headers,enableMethodParameterization:e.enableMethodParameterization,enablePathParameterization:e.enablePathParameterization,enableQueryParameterization:e.enableQueryParameterization,enableBodyParameterization:e.enableBodyParameterization}}function Od(e){return!(!("contactEmail"in e)||e.contactEmail===void 0||!("contactPreferredEmailSubject"in e)||e.contactPreferredEmailSubject===void 0)}function Sa(e){return Ta(e)}function Ta(e,t){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function Oa(e){return Na(e,!1)}function Na(e,t=!1){return e==null?e:{contactEmail:e.contactEmail,contactPreferredEmailSubject:e.contactPreferredEmailSubject}}function Nd(e){return!(!("type"in e)||e.type===void 0)}function It(e){return Pa(e)}function Pa(e,t){return e==null?e:{type:Vi(e.type),httpData:e.httpData==null?void 0:ma(e.httpData),onRequest:e.onRequest==null?void 0:Sa(e.onRequest),customProperties:e.customProperties==null?void 0:e.customProperties}}function Ut(e){return Ca(e,!1)}function Ca(e,t=!1){return e==null?e:{type:e.type,httpData:ga(e.httpData),onRequest:Oa(e.onRequest),customProperties:e.customProperties}}function Pd(e){return!(!("dataSource"in e)||e.dataSource===void 0||!("id"in e)||e.id===void 0)}function Ja(e){return Da(e)}function Da(e,t){return e==null?e:{dataSource:It(e.dataSource),id:e.id,title:e.title==null?void 0:e.title,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function $e(e){return wa(e,!1)}function wa(e,t=!1){return e==null?e:{dataSource:Ut(e.dataSource),id:e.id,title:e.title,language:e.language,description:e.description,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}function Cd(e){return!(!("asset"in e)||e.asset===void 0||!("publishType"in e)||e.publishType===void 0)}function Jd(e){return Aa(e)}function Aa(e,t){return e==null?e:{asset:Ja(e.asset),publishType:Li(e.publishType),policyExpression:e.policyExpression==null?void 0:ee(e.policyExpression)}}function ba(e){return Ia(e,!1)}function Ia(e,t=!1){return e==null?e:{asset:$e(e.asset),publishType:e.publishType,policyExpression:te(e.policyExpression)}}function Dd(e){return!(!("baseUrl"in e)||e.baseUrl===void 0||!("authorizationHeaderValue"in e)||e.authorizationHeaderValue===void 0)}function Ua(e){return Fa(e)}function Fa(e,t){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:new Date(e.expiresAt)}}function wd(e){return _a(e,!1)}function _a(e,t=!1){return e==null?e:{baseUrl:e.baseUrl,authorizationHeaderValue:e.authorizationHeaderValue,expiresAt:e.expiresAt==null?void 0:e.expiresAt.toISOString()}}function Ad(e){return!(!("id"in e)||e.id===void 0)}function Ke(e){return Ra(e)}function Ra(e,t){return e==null?e:{id:e.id,available:e.available==null?void 0:e.available}}function bd(e){return Ea(e,!1)}function Ea(e,t=!1){return e==null?e:{id:e.id,available:e.available}}function Id(e){return!(!("id"in e)||e.id===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0)}function J(e){return va(e)}function va(e,t){return e==null?e:{id:e.id,lastUpdatedDate:new Date(e.lastUpdatedDate)}}function Ud(e){return ka(e,!1)}function ka(e,t=!1){return e==null?e:{id:e.id,lastUpdatedDate:e.lastUpdatedDate.toISOString()}}function Fd(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferProcessRequestJsonLd"in e)||e.transferProcessRequestJsonLd===void 0)}function _d(e){return qa(e)}function qa(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function La(e){return Ha(e,!1)}function Ha(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferProcessRequestJsonLd:e.transferProcessRequestJsonLd}}function Rd(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("transferType"in e)||e.transferType===void 0||!("dataSinkProperties"in e)||e.dataSinkProperties===void 0||!("transferProcessProperties"in e)||e.transferProcessProperties===void 0)}function Ed(e){return Va(e)}function Va(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function Ba(e){return Ma(e,!1)}function Ma(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,transferType:e.transferType,dataSinkProperties:e.dataSinkProperties,transferProcessProperties:e.transferProcessProperties}}function vd(e){return!(!("incomingTransferProcessCounts"in e)||e.incomingTransferProcessCounts===void 0||!("outgoingTransferProcessCounts"in e)||e.outgoingTransferProcessCounts===void 0)}function Za(e){return Ga(e)}function Ga(e,t){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function za(e){return Qa(e,!1)}function Qa(e,t=!1){return e==null?e:{incomingTransferProcessCounts:e.incomingTransferProcessCounts,outgoingTransferProcessCounts:e.outgoingTransferProcessCounts}}function kd(e){return!(!("assetsCount"in e)||e.assetsCount===void 0||!("policiesCount"in e)||e.policiesCount===void 0||!("contractDefinitionsCount"in e)||e.contractDefinitionsCount===void 0||!("contractAgreementsCount"in e)||e.contractAgreementsCount===void 0||!("transferProcessDto"in e)||e.transferProcessDto===void 0)}function $a(e){return Ka(e)}function Ka(e,t){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:Za(e.transferProcessDto)}}function qd(e){return Wa(e,!1)}function Wa(e,t=!1){return e==null?e:{assetsCount:e.assetsCount,policiesCount:e.policiesCount,contractDefinitionsCount:e.contractDefinitionsCount,contractAgreementsCount:e.contractAgreementsCount,transferProcessDto:za(e.transferProcessDto)}}function Ld(e){return!(!("connectorEndpoint"in e)||e.connectorEndpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("filter"in e)||e.filter===void 0)}function Hd(e){return Ya(e)}function Ya(e,t){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(ft),limit:e.limit==null?void 0:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce)}}function Xa(e){return xa(e,!1)}function xa(e,t=!1){return e==null?e:{connectorEndpoint:e.connectorEndpoint,participantId:e.participantId,filter:e.filter.map(pt),limit:e.limit,callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Je)}}function Vd(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0||!("asset"in e)||e.asset===void 0||!("policy"in e)||e.policy===void 0)}function ja(e){return eo(e)}function eo(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:Ve(e.state),stateChangedAt:new Date(e.stateChangedAt),asset:Z(e.asset),policy:re(e.policy)}}function Bd(e){return to(e,!1)}function to(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,contractAgreementId:e.contractAgreementId,state:Be(e.state),stateChangedAt:e.stateChangedAt.toISOString(),asset:j(e.asset),policy:ne(e.policy)}}function Md(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("expression"in e)||e.expression===void 0)}function Zd(e){return ro(e)}function ro(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:ee(e.expression)}}function no(e){return io(e,!1)}function io(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,expression:te(e.expression)}}function Gd(e){return!0}function ao(e){return oo(e)}function oo(e,t){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(St)}}function so(e){return co(e,!1)}function co(e,t=!1){return e==null?e:{constraints:e.constraints==null?void 0:e.constraints.map(Tt)}}function zd(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function Qd(e){return uo(e)}function uo(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:ao(e.policy)}}function lo(e){return fo(e,!1)}function fo(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:so(e.policy)}}function $d(e){return!(!("policyDefinitionId"in e)||e.policyDefinitionId===void 0||!("policy"in e)||e.policy===void 0)}function po(e){return mo(e)}function mo(e,t){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:re(e.policy)}}function yo(e){return go(e,!1)}function go(e,t=!1){return e==null?e:{policyDefinitionId:e.policyDefinitionId,policy:ne(e.policy)}}function Kd(e){return!(!("policies"in e)||e.policies===void 0)}function ho(e){return So(e)}function So(e,t){return e==null?e:{policies:e.policies.map(po)}}function Wd(e){return To(e,!1)}function To(e,t=!1){return e==null?e:{policies:e.policies.map(yo)}}function Yd(e){return!(!("transferProcessId"in e)||e.transferProcessId===void 0||!("createdDate"in e)||e.createdDate===void 0||!("lastUpdatedDate"in e)||e.lastUpdatedDate===void 0||!("transferType"in e)||e.transferType===void 0||!("state"in e)||e.state===void 0||!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("direction"in e)||e.direction===void 0||!("counterPartyConnectorEndpoint"in e)||e.counterPartyConnectorEndpoint===void 0||!("counterPartyParticipantId"in e)||e.counterPartyParticipantId===void 0||!("assetName"in e)||e.assetName===void 0||!("assetId"in e)||e.assetId===void 0||!("isEdrConsumable"in e)||e.isEdrConsumable===void 0)}function Oo(e){return No(e)}function No(e,t){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:new Date(e.createdDate),lastUpdatedDate:new Date(e.lastUpdatedDate),transferType:e.transferType,state:Fe(e.state),contractAgreementId:e.contractAgreementId,direction:mt(e.direction),counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage==null?void 0:e.errorMessage,isEdrConsumable:e.isEdrConsumable}}function Po(e){return Co(e,!1)}function Co(e,t=!1){return e==null?e:{transferProcessId:e.transferProcessId,createdDate:e.createdDate.toISOString(),lastUpdatedDate:e.lastUpdatedDate.toISOString(),transferType:e.transferType,state:_e(e.state),contractAgreementId:e.contractAgreementId,direction:e.direction,counterPartyConnectorEndpoint:e.counterPartyConnectorEndpoint,counterPartyParticipantId:e.counterPartyParticipantId,assetName:e.assetName,assetId:e.assetId,errorMessage:e.errorMessage,isEdrConsumable:e.isEdrConsumable}}function Xd(e){return!(!("transferEntries"in e)||e.transferEntries===void 0)}function Jo(e){return Do(e)}function Do(e,t){return e==null?e:{transferEntries:e.transferEntries.map(Oo)}}function xd(e){return wo(e,!1)}function wo(e,t=!1){return e==null?e:{transferEntries:e.transferEntries.map(Po)}}function jd(e){return!(!("transferId"in e)||e.transferId===void 0||!("state"in e)||e.state===void 0||!("stateChangedAt"in e)||e.stateChangedAt===void 0||!("isEdrConsumable"in e)||e.isEdrConsumable===void 0)}function Ao(e){return bo(e)}function bo(e,t){return e==null?e:{transferId:e.transferId,state:Fe(e.state),stateChangedAt:new Date(e.stateChangedAt),isEdrConsumable:e.isEdrConsumable}}function el(e){return Io(e,!1)}function Io(e,t=!1){return e==null?e:{transferId:e.transferId,state:_e(e.state),stateChangedAt:e.stateChangedAt.toISOString(),isEdrConsumable:e.isEdrConsumable}}function tl(e){return!0}function rl(e){return Uo(e)}function Uo(e,t){return e==null?e:{dataSourceOverrideOrNull:e.dataSourceOverrideOrNull==null?void 0:It(e.dataSourceOverrideOrNull),title:e.title==null?void 0:e.title,language:e.language==null?void 0:e.language,description:e.description==null?void 0:e.description,publisherHomepage:e.publisherHomepage==null?void 0:e.publisherHomepage,licenseUrl:e.licenseUrl==null?void 0:e.licenseUrl,version:e.version==null?void 0:e.version,keywords:e.keywords==null?void 0:e.keywords,mediaType:e.mediaType==null?void 0:e.mediaType,landingPageUrl:e.landingPageUrl==null?void 0:e.landingPageUrl,dataModel:e.dataModel==null?void 0:e.dataModel,sovereignLegalName:e.sovereignLegalName==null?void 0:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls==null?void 0:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls==null?void 0:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription==null?void 0:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse==null?void 0:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency==null?void 0:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:new Date(e.temporalCoverageFrom),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:new Date(e.temporalCoverageToInclusive),customJsonAsString:e.customJsonAsString==null?void 0:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString==null?void 0:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString==null?void 0:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString==null?void 0:e.privateCustomJsonLdAsString}}function Fo(e){return _o(e,!1)}function _o(e,t=!1){return e==null?e:{dataSourceOverrideOrNull:Ut(e.dataSourceOverrideOrNull),title:e.title,language:e.language,description:e.description,publisherHomepage:e.publisherHomepage,licenseUrl:e.licenseUrl,version:e.version,keywords:e.keywords,mediaType:e.mediaType,landingPageUrl:e.landingPageUrl,dataModel:e.dataModel,sovereignLegalName:e.sovereignLegalName,dataSampleUrls:e.dataSampleUrls,referenceFileUrls:e.referenceFileUrls,referenceFilesDescription:e.referenceFilesDescription,conditionsForUse:e.conditionsForUse,dataUpdateFrequency:e.dataUpdateFrequency,temporalCoverageFrom:e.temporalCoverageFrom==null?void 0:e.temporalCoverageFrom.toISOString().substring(0,10),temporalCoverageToInclusive:e.temporalCoverageToInclusive==null?void 0:e.temporalCoverageToInclusive.toISOString().substring(0,10),customJsonAsString:e.customJsonAsString,customJsonLdAsString:e.customJsonLdAsString,privateCustomJsonAsString:e.privateCustomJsonAsString,privateCustomJsonLdAsString:e.privateCustomJsonLdAsString}}const We={ConnectorLimits:"CONNECTOR_LIMITS",OpenSourceMarketing:"OPEN_SOURCE_MARKETING",EeBasicMarketing:"EE_BASIC_MARKETING",CatenaPolicies:"CATENA_POLICIES",SovityPolicies:"SOVITY_POLICIES",BusinessPartnerGroupManagement:"BUSINESS_PARTNER_GROUP_MANAGEMENT"};function nl(e){for(const t in We)if(Object.prototype.hasOwnProperty.call(We,t)&&We[t]===e)return!0;return!1}function Ro(e){return Eo(e)}function Eo(e,t){return e}function vo(e){return e}function il(e,t){return e}function al(e){return!(!("participantId"in e)||e.participantId===void 0||!("connectorEndpoint"in e)||e.connectorEndpoint===void 0)}function ko(e){return qo(e)}function qo(e,t){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function Lo(e){return Ho(e,!1)}function Ho(e,t=!1){return e==null?e:{participantId:e.participantId,connectorEndpoint:e.connectorEndpoint}}function ol(e){return!(!("features"in e)||e.features===void 0||!("preconfiguredCounterparties"in e)||e.preconfiguredCounterparties===void 0)}function Vo(e){return Bo(e)}function Bo(e,t){return e==null?e:{features:e.features.map(Ro),preconfiguredCounterparties:e.preconfiguredCounterparties.map(ko),logoutUrl:e.logoutUrl==null?void 0:e.logoutUrl,documentationUrl:e.documentationUrl==null?void 0:e.documentationUrl,supportUrl:e.supportUrl==null?void 0:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl==null?void 0:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl==null?void 0:e.legalNoticeUrl}}function sl(e){return Mo(e,!1)}function Mo(e,t=!1){return e==null?e:{features:e.features.map(vo),preconfiguredCounterparties:e.preconfiguredCounterparties.map(Lo),logoutUrl:e.logoutUrl,documentationUrl:e.documentationUrl,supportUrl:e.supportUrl,privacyPolicyUrl:e.privacyPolicyUrl,legalNoticeUrl:e.legalNoticeUrl}}function cl(e){return!(!("contractNegotiationId"in e)||e.contractNegotiationId===void 0||!("createdAt"in e)||e.createdAt===void 0||!("state"in e)||e.state===void 0)}function Ft(e){return Zo(e)}function Zo(e,t){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:new Date(e.createdAt),contractAgreementId:e.contractAgreementId==null?void 0:e.contractAgreementId,state:Ve(e.state)}}function ul(e){return Go(e,!1)}function Go(e,t=!1){return e==null?e:{contractNegotiationId:e.contractNegotiationId,createdAt:e.createdAt.toISOString(),contractAgreementId:e.contractAgreementId,state:Be(e.state)}}function dl(e){return!(!("contractOfferId"in e)||e.contractOfferId===void 0||!("policy"in e)||e.policy===void 0)}function zo(e){return Qo(e)}function Qo(e,t){return e==null?e:{contractOfferId:e.contractOfferId,policy:re(e.policy)}}function $o(e){return Ko(e,!1)}function Ko(e,t=!1){return e==null?e:{contractOfferId:e.contractOfferId,policy:ne(e.policy)}}function ll(e){return!(!("endpoint"in e)||e.endpoint===void 0||!("participantId"in e)||e.participantId===void 0||!("asset"in e)||e.asset===void 0||!("contractOffers"in e)||e.contractOffers===void 0)}function ie(e){return Wo(e)}function Wo(e,t){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:Z(e.asset),contractOffers:e.contractOffers.map(zo)}}function fl(e){return Yo(e,!1)}function Yo(e,t=!1){return e==null?e:{endpoint:e.endpoint,participantId:e.participantId,asset:j(e.asset),contractOffers:e.contractOffers.map($o)}}const Ye={Post:"POST",Put:"PUT",Patch:"PATCH",Delete:"DELETE",Options:"OPTIONS"};function pl(e){for(const t in Ye)if(Object.prototype.hasOwnProperty.call(Ye,t)&&Ye[t]===e)return!0;return!1}function Xo(e){return xo(e)}function xo(e,t){return e}function ml(e){return e}function yl(e,t){return e}const Xe={Basic:"BASIC",ApiKey:"API_KEY"};function gl(e){for(const t in Xe)if(Object.prototype.hasOwnProperty.call(Xe,t)&&Xe[t]===e)return!0;return!1}function jo(e){return es(e)}function es(e,t){return e}function hl(e){return e}function Sl(e,t){return e}function Tl(e){return!(!("type"in e)||e.type===void 0)}function ts(e){return rs(e)}function rs(e,t){return e==null?e:{type:jo(e.type),basic:e.basic==null?void 0:At(e.basic),apiKey:e.apiKey==null?void 0:Dt(e.apiKey)}}function ns(e){return is(e,!1)}function is(e,t=!1){return e==null?e:{type:e.type,basic:bt(e.basic),apiKey:wt(e.apiKey)}}function Ol(e){return!(!("baseUrl"in e)||e.baseUrl===void 0)}function as(e){return os(e)}function os(e,t){return e==null?e:{method:e.method==null?void 0:Xo(e.method),baseUrl:e.baseUrl,queryString:e.queryString==null?void 0:e.queryString,auth:e.auth==null?void 0:ts(e.auth),headers:e.headers==null?void 0:e.headers}}function ss(e){return cs(e,!1)}function cs(e,t=!1){return e==null?e:{method:e.method,baseUrl:e.baseUrl,queryString:e.queryString,auth:ns(e.auth),headers:e.headers}}const xe={HttpDataPush:"HTTP_DATA_PUSH",HttpDataProxy:"HTTP_DATA_PROXY",Custom:"CUSTOM"};function Nl(e){for(const t in xe)if(Object.prototype.hasOwnProperty.call(xe,t)&&xe[t]===e)return!0;return!1}function us(e){return ds(e)}function ds(e,t){return e}function Pl(e){return e}function Cl(e,t){return e}function Jl(e){return!(!("contractAgreementId"in e)||e.contractAgreementId===void 0||!("type"in e)||e.type===void 0)}function Dl(e){return ls(e)}function ls(e,t){return e==null?e:{contractAgreementId:e.contractAgreementId,type:us(e.type),httpDataPush:e.httpDataPush==null?void 0:as(e.httpDataPush),callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Ce),customDataSinkProperties:e.customDataSinkProperties==null?void 0:e.customDataSinkProperties,customTransferPrivateProperties:e.customTransferPrivateProperties==null?void 0:e.customTransferPrivateProperties,customTransferType:e.customTransferType==null?void 0:e.customTransferType}}function fs(e){return ps(e,!1)}function ps(e,t=!1){return e==null?e:{contractAgreementId:e.contractAgreementId,type:e.type,httpDataPush:ss(e.httpDataPush),callbackAddresses:e.callbackAddresses==null?void 0:e.callbackAddresses.map(Je),customDataSinkProperties:e.customDataSinkProperties,customTransferPrivateProperties:e.customTransferPrivateProperties,customTransferType:e.customTransferType}}function wl(e){return!(!("key"in e)||e.key===void 0||!("value"in e)||e.value===void 0||!("description"in e)||e.description===void 0)}function Al(e){return ms(e)}function ms(e,t){return e==null?e:{key:e.key,value:e.value,description:e.description}}function ys(e){return gs(e,!1)}function gs(e,t=!1){return e==null?e:{key:e.key,value:e.value,description:e.description}}function bl(e){return!(!("key"in e)||e.key===void 0||!("description"in e)||e.description===void 0)}function hs(e){return Ss(e)}function Ss(e,t){return e==null?e:{key:e.key,description:e.description}}function Il(e){return Ts(e,!1)}function Ts(e,t=!1){return e==null?e:{key:e.key,description:e.description}}function Ul(e){return!(!("description"in e)||e.description===void 0)}function Fl(e){return Os(e)}function Os(e,t){return e==null?e:{value:e.value==null?void 0:e.value,description:e.description}}function Ns(e){return Ps(e,!1)}function Ps(e,t=!1){return e==null?e:{value:e.value,description:e.description}}function _l(e){return!(!("key"in e)||e.key===void 0||!("description"in e)||e.description===void 0||!("updatedAt"in e)||e.updatedAt===void 0)}function Cs(e){return Js(e)}function Js(e,t){return e==null?e:{key:e.key,description:e.description,updatedAt:new Date(e.updatedAt)}}function Rl(e){return Ds(e,!1)}function Ds(e,t=!1){return e==null?e:{key:e.key,description:e.description,updatedAt:e.updatedAt.toISOString()}}function El(e){return!0}function vl(e){return ws(e)}function ws(e,t){return e==null?e:{searchQuery:e.searchQuery==null?void 0:e.searchQuery,limit:e.limit==null?void 0:e.limit}}function As(e){return bs(e,!1)}function bs(e,t=!1){return e==null?e:{searchQuery:e.searchQuery,limit:e.limit}}class Is extends K{async connectorLimitsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ee/connector-limits",method:"GET",headers:i,query:r},t);return new m(a,o=>nn(o))}async connectorLimits(t){return await(await this.connectorLimitsRaw(t)).value()}async fileUploadCreateAssetRaw(t,r){if(t.blobId==null)throw new P("blobId",'Required parameter "blobId" was null or undefined when calling fileUploadCreateAsset().');if(t.uiAssetCreateRequest==null)throw new P("uiAssetCreateRequest",'Required parameter "uiAssetCreateRequest" was null or undefined when calling fileUploadCreateAsset().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ee/file-upload/blobs/{blobId}/asset".replace("{blobId}",encodeURIComponent(String(t.blobId))),method:"POST",headers:a,query:i,body:$e(t.uiAssetCreateRequest)},r);return new Mt(o)}async fileUploadCreateAsset(t,r){await this.fileUploadCreateAssetRaw(t,r)}async fileUploadRequestSasTokenRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ee/file-upload/blobs",method:"POST",headers:i,query:r},t);return this.isJsonMime(a.headers.get("content-type"))?new m(a):new Zt(a)}async fileUploadRequestSasToken(t){return await(await this.fileUploadRequestSasTokenRaw(t)).value()}}class Us extends K{async assetDetailsPageRaw(t,r){if(t.assetId==null)throw new P("assetId",'Required parameter "assetId" was null or undefined when calling assetDetailsPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/asset-page/assets/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"GET",headers:a,query:i},r);return new m(o,s=>Z(s))}async assetDetailsPage(t,r){return await(await this.assetDetailsPageRaw(t,r)).value()}async assetListPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/asset-page",method:"POST",headers:a,query:i,body:cr(t.assetListPageFilter)},r);return new m(o,s=>xt(s))}async assetListPage(t={},r){return await(await this.assetListPageRaw(t,r)).value()}async buildInfoRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/build-info",method:"GET",headers:i,query:r},t);return new m(a,o=>dr(o))}async buildInfo(t){return await(await this.buildInfoRaw(t)).value()}async businessPartnerGroupCreateSubmitRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/create",method:"POST",headers:a,query:i,body:mr(t.businessPartnerGroupCreateSubmit)},r);return new m(o,s=>J(s))}async businessPartnerGroupCreateSubmit(t={},r){return await(await this.businessPartnerGroupCreateSubmitRaw(t,r)).value()}async businessPartnerGroupEditPageRaw(t,r){if(t.id==null)throw new P("id",'Required parameter "id" was null or undefined when calling businessPartnerGroupEditPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}/edit-page".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:i},r);return new m(o,s=>gr(s))}async businessPartnerGroupEditPage(t,r){return await(await this.businessPartnerGroupEditPageRaw(t,r)).value()}async businessPartnerGroupEditSubmitRaw(t,r){if(t.id==null)throw new P("id",'Required parameter "id" was null or undefined when calling businessPartnerGroupEditSubmit().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}/edit-group".replace("{id}",encodeURIComponent(String(t.id))),method:"PUT",headers:a,query:i,body:Or(t.businessPartnerGroupEditSubmit)},r);return new m(o,s=>J(s))}async businessPartnerGroupEditSubmit(t,r){return await(await this.businessPartnerGroupEditSubmitRaw(t,r)).value()}async businessPartnerGroupListPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/list-page",method:"GET",headers:a,query:i,body:wr(t.businessPartnerGroupQuery)},r);return new m(o,s=>s.map(Pr))}async businessPartnerGroupListPage(t={},r){return await(await this.businessPartnerGroupListPageRaw(t,r)).value()}async createAssetRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/asset-page/assets",method:"POST",headers:a,query:i,body:$e(t.uiAssetCreateRequest)},r);return new m(o,s=>J(s))}async createAsset(t={},r){return await(await this.createAssetRaw(t,r)).value()}async createContractDefinitionRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-definition-page/contract-definitions",method:"POST",headers:a,query:i,body:di(t.contractDefinitionRequest)},r);return new m(o,s=>J(s))}async createContractDefinition(t={},r){return await(await this.createContractDefinitionRaw(t,r)).value()}async createDataOfferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/create-data-offer",method:"POST",headers:a,query:i,body:ba(t.dataOfferCreateRequest)},r);return new m(o,s=>J(s))}async createDataOffer(t={},r){return await(await this.createDataOfferRaw(t,r)).value()}async createPolicyDefinitionRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/policy-page/policy-definitions",method:"POST",headers:a,query:i,body:lo(t.policyDefinitionCreateRequest)},r);return new m(o,s=>J(s))}async createPolicyDefinition(t={},r){return await(await this.createPolicyDefinitionRaw(t,r)).value()}async createPolicyDefinitionV2Raw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/v2/pages/policy-page/policy-definitions",method:"POST",headers:a,query:i,body:no(t.policyDefinitionCreateDto)},r);return new m(o,s=>J(s))}async createPolicyDefinitionV2(t={},r){return await(await this.createPolicyDefinitionV2Raw(t,r)).value()}async createVaultSecretRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/vault-secrets/create-secret",method:"POST",headers:a,query:i,body:ys(t.vaultSecretCreateSubmit)},r);return new m(o,s=>J(s))}async createVaultSecret(t={},r){return await(await this.createVaultSecretRaw(t,r)).value()}async deleteAssetRaw(t,r){if(t.assetId==null)throw new P("assetId",'Required parameter "assetId" was null or undefined when calling deleteAsset().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/asset-page/assets/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"DELETE",headers:a,query:i},r);return new m(o,s=>J(s))}async deleteAsset(t,r){return await(await this.deleteAssetRaw(t,r)).value()}async deleteBusinessPartnerGroupRaw(t,r){if(t.id==null)throw new P("id",'Required parameter "id" was null or undefined when calling deleteBusinessPartnerGroup().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/business-partner-groups/{id}".replace("{id}",encodeURIComponent(String(t.id))),method:"DELETE",headers:a,query:i},r);return new m(o,s=>J(s))}async deleteBusinessPartnerGroup(t,r){return await(await this.deleteBusinessPartnerGroupRaw(t,r)).value()}async deleteContractDefinitionRaw(t,r){if(t.contractDefinitionId==null)throw new P("contractDefinitionId",'Required parameter "contractDefinitionId" was null or undefined when calling deleteContractDefinition().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-definition-page/contract-definitions/{contractDefinitionId}".replace("{contractDefinitionId}",encodeURIComponent(String(t.contractDefinitionId))),method:"DELETE",headers:a,query:i},r);return new m(o,s=>J(s))}async deleteContractDefinition(t,r){return await(await this.deleteContractDefinitionRaw(t,r)).value()}async deletePolicyDefinitionRaw(t,r){if(t.policyId==null)throw new P("policyId",'Required parameter "policyId" was null or undefined when calling deletePolicyDefinition().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/policy-page/policy-definitions/{policyId}".replace("{policyId}",encodeURIComponent(String(t.policyId))),method:"DELETE",headers:a,query:i},r);return new m(o,s=>J(s))}async deletePolicyDefinition(t,r){return await(await this.deletePolicyDefinitionRaw(t,r)).value()}async deleteVaultSecretRaw(t,r){if(t.key==null)throw new P("key",'Required parameter "key" was null or undefined when calling deleteVaultSecret().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/vault-secrets/{key}".replace("{key}",encodeURIComponent(String(t.key))),method:"DELETE",headers:a,query:i},r);return new m(o,s=>J(s))}async deleteVaultSecret(t,r){return await(await this.deleteVaultSecretRaw(t,r)).value()}async editAssetRaw(t,r){if(t.assetId==null)throw new P("assetId",'Required parameter "assetId" was null or undefined when calling editAsset().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/asset-page/assets/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"PUT",headers:a,query:i,body:Fo(t.uiAssetEditRequest)},r);return new m(o,s=>J(s))}async editAsset(t,r){return await(await this.editAssetRaw(t,r)).value()}async editVaultSecretRaw(t,r){if(t.key==null)throw new P("key",'Required parameter "key" was null or undefined when calling editVaultSecret().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/vault-secrets/{key}/edit-secret".replace("{key}",encodeURIComponent(String(t.key))),method:"PUT",headers:a,query:i,body:Ns(t.vaultSecretEditSubmit)},r);return new m(o,s=>J(s))}async editVaultSecret(t,r){return await(await this.editVaultSecretRaw(t,r)).value()}async editVaultSecretPageRaw(t,r){if(t.key==null)throw new P("key",'Required parameter "key" was null or undefined when calling editVaultSecretPage().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/vault-secrets/{key}/edit-secret".replace("{key}",encodeURIComponent(String(t.key))),method:"GET",headers:a,query:i},r);return new m(o,s=>hs(s))}async editVaultSecretPage(t,r){return await(await this.editVaultSecretPageRaw(t,r)).value()}async getCatalogPageDataOfferRaw(t,r){if(t.dataOfferId==null)throw new P("dataOfferId",'Required parameter "dataOfferId" was null or undefined when calling getCatalogPageDataOffer().');const i={};t.participantId!=null&&(i.participantId=t.participantId),t.connectorEndpoint!=null&&(i.connectorEndpoint=t.connectorEndpoint);const a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/data-offers/{dataOfferId}".replace("{dataOfferId}",encodeURIComponent(String(t.dataOfferId))),method:"GET",headers:a,query:i},r);return new m(o,s=>ie(s))}async getCatalogPageDataOffer(t,r){return await(await this.getCatalogPageDataOfferRaw(t,r)).value()}async getCatalogPageDataOffersRaw(t,r){const i={};t.participantId!=null&&(i.participantId=t.participantId),t.connectorEndpoint!=null&&(i.connectorEndpoint=t.connectorEndpoint);const a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/data-offers",method:"GET",headers:a,query:i},r);return new m(o,s=>s.map(ie))}async getCatalogPageDataOffers(t={},r){return await(await this.getCatalogPageDataOffersRaw(t,r)).value()}async getContractAgreementCardRaw(t,r){if(t.contractAgreementId==null)throw new P("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling getContractAgreementCard().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/{contractAgreementId}".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"GET",headers:a,query:i},r);return new m(o,s=>Ot(s))}async getContractAgreementCard(t,r){return await(await this.getContractAgreementCardRaw(t,r)).value()}async getContractAgreementPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page",method:"POST",headers:a,query:i,body:Gn(t.contractAgreementPageQuery)},r);return new m(o,s=>Vn(s))}async getContractAgreementPage(t={},r){return await(await this.getContractAgreementPageRaw(t,r)).value()}async getContractDefinitionPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/contract-definition-page",method:"GET",headers:i,query:r},t);return new m(a,o=>oi(o))}async getContractDefinitionPage(t){return await(await this.getContractDefinitionPageRaw(t)).value()}async getContractNegotiationRaw(t,r){if(t.contractNegotiationId==null)throw new P("contractNegotiationId",'Required parameter "contractNegotiationId" was null or undefined when calling getContractNegotiation().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/catalog-page/contract-negotiations/{contractNegotiationId}".replace("{contractNegotiationId}",encodeURIComponent(String(t.contractNegotiationId))),method:"GET",headers:a,query:i},r);return new m(o,s=>Ft(s))}async getContractNegotiation(t,r){return await(await this.getContractNegotiationRaw(t,r)).value()}async getDashboardPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/dashboard-page",method:"GET",headers:i,query:r},t);return new m(a,o=>vi(o))}async getDashboardPage(t){return await(await this.getDashboardPageRaw(t)).value()}async getPolicyDefinitionPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/policy-page",method:"GET",headers:i,query:r},t);return new m(a,o=>ho(o))}async getPolicyDefinitionPage(t){return await(await this.getPolicyDefinitionPageRaw(t)).value()}async getTransferHistoryPageRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/pages/transfer-history-page",method:"GET",headers:i,query:r},t);return new m(a,o=>Jo(o))}async getTransferHistoryPage(t){return await(await this.getTransferHistoryPageRaw(t)).value()}async getTransferProcessAssetRaw(t,r){if(t.transferProcessId==null)throw new P("transferProcessId",'Required parameter "transferProcessId" was null or undefined when calling getTransferProcessAsset().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/transfer-history-page/transfer-processes/{transferProcessId}/asset".replace("{transferProcessId}",encodeURIComponent(String(t.transferProcessId))),method:"GET",headers:a,query:i},r);return new m(o,s=>Z(s))}async getTransferProcessAsset(t,r){return await(await this.getTransferProcessAssetRaw(t,r)).value()}async initiateContractNegotiationRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/catalog-page/contract-negotiations",method:"POST",headers:a,query:i,body:pi(t.contractNegotiationRequest)},r);return new m(o,s=>Ft(s))}async initiateContractNegotiation(t={},r){return await(await this.initiateContractNegotiationRaw(t,r)).value()}async initiateCustomTransferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/transfers/custom",method:"POST",headers:a,query:i,body:La(t.initiateCustomTransferRequest)},r);return new m(o,s=>J(s))}async initiateCustomTransfer(t={},r){return await(await this.initiateCustomTransferRaw(t,r)).value()}async initiateTransferRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/transfers",method:"POST",headers:a,query:i,body:Ba(t.initiateTransferRequest)},r);return new m(o,s=>J(s))}async initiateTransfer(t={},r){return await(await this.initiateTransferRaw(t,r)).value()}async initiateTransferV2Raw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/contract-agreement-page/initiate-transfer-v2",method:"POST",headers:a,query:i,body:fs(t.uiInitiateTransferRequest)},r);return new m(o,s=>J(s))}async initiateTransferV2(t={},r){return await(await this.initiateTransferV2Raw(t,r)).value()}async isAssetIdAvailableRaw(t,r){if(t.assetId==null)throw new P("assetId",'Required parameter "assetId" was null or undefined when calling isAssetIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-asset-id/{assetId}".replace("{assetId}",encodeURIComponent(String(t.assetId))),method:"GET",headers:a,query:i},r);return new m(o,s=>Ke(s))}async isAssetIdAvailable(t,r){return await(await this.isAssetIdAvailableRaw(t,r)).value()}async isContractDefinitionIdAvailableRaw(t,r){if(t.contractDefinitionId==null)throw new P("contractDefinitionId",'Required parameter "contractDefinitionId" was null or undefined when calling isContractDefinitionIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-contract-definition-id/{contractDefinitionId}".replace("{contractDefinitionId}",encodeURIComponent(String(t.contractDefinitionId))),method:"GET",headers:a,query:i},r);return new m(o,s=>Ke(s))}async isContractDefinitionIdAvailable(t,r){return await(await this.isContractDefinitionIdAvailableRaw(t,r)).value()}async isPolicyIdAvailableRaw(t,r){if(t.policyId==null)throw new P("policyId",'Required parameter "policyId" was null or undefined when calling isPolicyIdAvailable().');const i={},a={},o=await this.request({path:"/wrapper/ui/pages/data-offer-page/validate-policy-id/{policyId}".replace("{policyId}",encodeURIComponent(String(t.policyId))),method:"GET",headers:a,query:i},r);return new m(o,s=>Ke(s))}async isPolicyIdAvailable(t,r){return await(await this.isPolicyIdAvailableRaw(t,r)).value()}async listVaultSecretsPageRaw(t,r){const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/vault-secrets/list-page",method:"GET",headers:a,query:i,body:As(t.vaultSecretQuery)},r);return new m(o,s=>s.map(Cs))}async listVaultSecretsPage(t={},r){return await(await this.listVaultSecretsPageRaw(t,r)).value()}async terminateContractAgreementRaw(t,r){if(t.contractAgreementId==null)throw new P("contractAgreementId",'Required parameter "contractAgreementId" was null or undefined when calling terminateContractAgreement().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/ui/pages/content-agreement-page/{contractAgreementId}/terminate".replace("{contractAgreementId}",encodeURIComponent(String(t.contractAgreementId))),method:"POST",headers:a,query:i,body:Ci(t.contractTerminationRequest)},r);return new m(o,s=>J(s))}async terminateContractAgreement(t,r){return await(await this.terminateContractAgreementRaw(t,r)).value()}async uiConfigRaw(t){const r={},i={},a=await this.request({path:"/wrapper/ui/config",method:"GET",headers:i,query:r},t);return new m(a,o=>Vo(o))}async uiConfig(t){return await(await this.uiConfigRaw(t)).value()}}class Fs extends K{async getContractNegotiationStatesRaw(t,r){if(t.requestBody==null)throw new P("requestBody",'Required parameter "requestBody" was null or undefined when calling getContractNegotiationStates().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/contract-negotiations/states",method:"POST",headers:a,query:i,body:t.requestBody},r);return new m(o,s=>s.map(Ti))}async getContractNegotiationStates(t,r){return await(await this.getContractNegotiationStatesRaw(t,r)).value()}async getKpisRaw(t){const r={},i={},a=await this.request({path:"/wrapper/use-case-api/kpis",method:"GET",headers:i,query:r},t);return new m(a,o=>$a(o))}async getKpis(t){return await(await this.getKpisRaw(t)).value()}async getSupportedFunctionsRaw(t){const r={},i={},a=await this.request({path:"/wrapper/use-case-api/supported-policy-functions",method:"GET",headers:i,query:r},t);return new m(a)}async getSupportedFunctions(t){return await(await this.getSupportedFunctionsRaw(t)).value()}async getTransferProcessEdrRaw(t,r){if(t.transferId==null)throw new P("transferId",'Required parameter "transferId" was null or undefined when calling getTransferProcessEdr().');const i={},a={},o=await this.request({path:"/wrapper/use-case-api/transfers/{transferId}/edr".replace("{transferId}",encodeURIComponent(String(t.transferId))),method:"POST",headers:a,query:i},r);return new m(o,s=>Ua(s))}async getTransferProcessEdr(t,r){return await(await this.getTransferProcessEdrRaw(t,r)).value()}async getTransferProcessStatesRaw(t,r){if(t.requestBody==null)throw new P("requestBody",'Required parameter "requestBody" was null or undefined when calling getTransferProcessStates().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/transfers/states",method:"POST",headers:a,query:i,body:t.requestBody},r);return new m(o,s=>s.map(Ao))}async getTransferProcessStates(t,r){return await(await this.getTransferProcessStatesRaw(t,r)).value()}async negotiateAllRaw(t,r){if(t.negotiateAllQuery==null)throw new P("negotiateAllQuery",'Required parameter "negotiateAllQuery" was null or undefined when calling negotiateAll().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/negotiations/quick-initiate",method:"POST",headers:a,query:i,body:Xa(t.negotiateAllQuery)},r);return new m(o,s=>s.map(ja))}async negotiateAll(t,r){return await(await this.negotiateAllRaw(t,r)).value()}async queryCatalogRaw(t,r){if(t.catalogQuery==null)throw new P("catalogQuery",'Required parameter "catalogQuery" was null or undefined when calling queryCatalog().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/catalog",method:"POST",headers:a,query:i,body:Qr(t.catalogQuery)},r);return new m(o,s=>s.map(ie))}async queryCatalog(t,r){return await(await this.queryCatalogRaw(t,r)).value()}async queryCatalogV2Raw(t,r){if(t.catalogQueryV2==null)throw new P("catalogQueryV2",'Required parameter "catalogQueryV2" was null or undefined when calling queryCatalogV2().');const i={},a={};a["Content-Type"]="application/json";const o=await this.request({path:"/wrapper/use-case-api/catalog-v2",method:"POST",headers:a,query:i,body:tn(t.catalogQueryV2)},r);return new m(o,s=>s.map(ie))}async queryCatalogV2(t,r){return await(await this.queryCatalogV2Raw(t,r)).value()}async terminateTransferProcessRaw(t,r){if(t.transferId==null)throw new P("transferId",'Required parameter "transferId" was null or undefined when calling terminateTransferProcess().');const i={},a={},o=await this.request({path:"/wrapper/use-case-api/transfers/{transferId}/terminate".replace("{transferId}",encodeURIComponent(String(t.transferId))),method:"POST",headers:a,query:i},r);return new m(o,s=>J(s))}async terminateTransferProcess(t,r){return await(await this.terminateTransferProcessRaw(t,r)).value()}}var N;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function r(a){throw new Error}e.assertNever=r,e.arrayToEnum=a=>{const o={};for(const s of a)o[s]=s;return o},e.getValidEnumValues=a=>{const o=e.objectKeys(a).filter(c=>typeof a[a[c]]!="number"),s={};for(const c of o)s[c]=a[c];return e.objectValues(s)},e.objectValues=a=>e.objectKeys(a).map(function(o){return a[o]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const o=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&o.push(s);return o},e.find=(a,o)=>{for(const s of a)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function i(a,o=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(N||(N={}));var _t;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(_t||(_t={}));const l=N.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),H=e=>{switch(typeof e){case"undefined":return l.undefined;case"string":return l.string;case"number":return isNaN(e)?l.nan:l.number;case"boolean":return l.boolean;case"function":return l.function;case"bigint":return l.bigint;case"symbol":return l.symbol;case"object":return Array.isArray(e)?l.array:e===null?l.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?l.promise:typeof Map<"u"&&e instanceof Map?l.map:typeof Set<"u"&&e instanceof Set?l.set:typeof Date<"u"&&e instanceof Date?l.date:l.object;default:return l.unknown}},u=N.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),kl=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class I extends Error{constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(o){return o.message},i={_errors:[]},a=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)i._errors.push(r(s));else{let c=i,p=0;for(;p<s.path.length;){const d=s.path[p];p===s.path.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(r(s))):c[d]=c[d]||{_errors:[]},c=c[d],p++}}};return a(this),i}toString(){return this.message}get message(){return JSON.stringify(this.issues,N.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},i=[];for(const a of this.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):i.push(t(a));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}}I.create=e=>new I(e);const ae=(e,t)=>{let r;switch(e.code){case u.invalid_type:e.received===l.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case u.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,N.jsonStringifyReplacer)}`;break;case u.unrecognized_keys:r=`Unrecognized key(s) in object: ${N.joinValues(e.keys,", ")}`;break;case u.invalid_union:r="Invalid input";break;case u.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${N.joinValues(e.options)}`;break;case u.invalid_enum_value:r=`Invalid enum value. Expected ${N.joinValues(e.options)}, received '${e.received}'`;break;case u.invalid_arguments:r="Invalid function arguments";break;case u.invalid_return_type:r="Invalid function return type";break;case u.invalid_date:r="Invalid date";break;case u.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:N.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case u.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case u.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case u.custom:r="Invalid input";break;case u.invalid_intersection_types:r="Intersection results could not be merged";break;case u.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case u.not_finite:r="Number must be finite";break;default:r=t.defaultError,N.assertNever(e)}return{message:r}};let _s=ae;function ql(e){_s=e}function je(){return _s}const et=e=>{const{data:t,path:r,errorMaps:i,issueData:a}=e,o=[...r,...a.path||[]],s={...a,path:o};let c="";const p=i.filter(d=>!!d).slice().reverse();for(const d of p)c=d(s,{data:t,defaultError:c}).message;return{...a,path:o,message:a.message||c}},Ll=[];function f(e,t){const r=et({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,je(),ae].filter(i=>!!i)});e.common.issues.push(r)}class D{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const i=[];for(const a of r){if(a.status==="aborted")return h;a.status==="dirty"&&t.dirty(),i.push(a.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){const i=[];for(const a of r)i.push({key:await a.key,value:await a.value});return D.mergeObjectSync(t,i)}static mergeObjectSync(t,r){const i={};for(const a of r){const{key:o,value:s}=a;if(o.status==="aborted"||s.status==="aborted")return h;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(i[o.value]=s.value)}return{status:t.value,value:i}}}const h=Object.freeze({status:"aborted"}),Rs=e=>({status:"dirty",value:e}),w=e=>({status:"valid",value:e}),Rt=e=>e.status==="aborted",Et=e=>e.status==="dirty",oe=e=>e.status==="valid",tt=e=>typeof Promise<"u"&&e instanceof Promise;var y;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(y||(y={}));class R{constructor(t,r,i,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Es=(e,t)=>{if(oe(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new I(e.common.issues);return this._error=r,this._error}}};function S(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:i,description:a}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(s,c)=>s.code!=="invalid_type"?{message:c.defaultError}:typeof c.data>"u"?{message:i??c.defaultError}:{message:r??c.defaultError},description:a}}class T{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return H(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:H(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new D,ctx:{common:t.parent.common,data:t.data,parsedType:H(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(tt(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){var i;const a={common:{issues:[],async:(i=r==null?void 0:r.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:H(t)},o=this._parseSync({data:t,path:a.path,parent:a});return Es(a,o)}async parseAsync(t,r){const i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){const i={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:H(t)},a=this._parse({data:t,path:i.path,parent:i}),o=await(tt(a)?a:Promise.resolve(a));return Es(i,o)}refine(t,r){const i=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,o)=>{const s=t(a),c=()=>o.addIssue({code:u.custom,...i(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(p=>p?!0:(c(),!1)):s?!0:(c(),!1)})}refinement(t,r){return this._refinement((i,a)=>t(i)?!0:(a.addIssue(typeof r=="function"?r(i,a):r),!1))}_refinement(t){return new _({schema:this,typeName:g.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return q.create(this,this._def)}nullable(){return $.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return F.create(this,this._def)}promise(){return x.create(this,this._def)}or(t){return de.create([this,t],this._def)}and(t){return le.create(this,t,this._def)}transform(t){return new _({...S(this._def),schema:this,typeName:g.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new ge({...S(this._def),innerType:this,defaultValue:r,typeName:g.ZodDefault})}brand(){return new ks({typeName:g.ZodBranded,type:this,...S(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new st({...S(this._def),innerType:this,catchValue:r,typeName:g.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return he.create(this,t)}readonly(){return ut.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Hl=/^c[^\s-]{8,}$/i,Vl=/^[a-z][a-z0-9]*$/,Bl=/^[0-9A-HJKMNP-TV-Z]{26}$/,Ml=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Zl=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Gl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let vt;const zl=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Ql=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,$l=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Kl(e,t){return!!((t==="v4"||!t)&&zl.test(e)||(t==="v6"||!t)&&Ql.test(e))}class U extends T{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==l.string){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.string,received:o.parsedType}),h}const i=new D;let a;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,c=t.data.length<o.value;(s||c)&&(a=this._getOrReturnCtx(t,a),s?f(a,{code:u.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):c&&f(a,{code:u.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")Zl.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"email",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")vt||(vt=new RegExp(Gl,"u")),vt.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"emoji",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")Ml.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"uuid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")Hl.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")Vl.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"cuid2",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")Bl.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ulid",code:u.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),f(a,{validation:"url",code:u.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"regex",code:u.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?$l(o).test(t.data)||(a=this._getOrReturnCtx(t,a),f(a,{code:u.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="ip"?Kl(t.data,o.version)||(a=this._getOrReturnCtx(t,a),f(a,{validation:"ip",code:u.invalid_string,message:o.message}),i.dirty()):N.assertNever(o);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(a=>t.test(a),{validation:r,code:u.invalid_string,...y.errToObj(i)})}_addCheck(t){return new U({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...y.errToObj(t)})}url(t){return this._addCheck({kind:"url",...y.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...y.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...y.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...y.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...y.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...y.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...y.errToObj(t)})}datetime(t){var r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,...y.errToObj(t==null?void 0:t.message)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...y.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...y.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...y.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...y.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...y.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...y.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...y.errToObj(r)})}nonempty(t){return this.min(1,y.errToObj(t))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}U.create=e=>{var t;return new U({checks:[],typeName:g.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...S(e)})};function Wl(e,t){const r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=r>i?r:i,o=parseInt(e.toFixed(a).replace(".","")),s=parseInt(t.toFixed(a).replace(".",""));return o%s/Math.pow(10,a)}class V extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==l.number){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.number,received:o.parsedType}),h}let i;const a=new D;for(const o of this._def.checks)o.kind==="int"?N.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),f(i,{code:u.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?Wl(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_finite,message:o.message}),a.dirty()):N.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,y.toString(r))}gt(t,r){return this.setLimit("min",t,!1,y.toString(r))}lte(t,r){return this.setLimit("max",t,!0,y.toString(r))}lt(t,r){return this.setLimit("max",t,!1,y.toString(r))}setLimit(t,r,i,a){return new V({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:y.toString(a)}]})}_addCheck(t){return new V({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:y.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:y.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:y.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:y.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:y.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:y.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&N.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}}V.create=e=>new V({checks:[],typeName:g.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...S(e)});class B extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==l.bigint){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.bigint,received:o.parsedType}),h}let i;const a=new D;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),f(i,{code:u.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):N.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,y.toString(r))}gt(t,r){return this.setLimit("min",t,!1,y.toString(r))}lte(t,r){return this.setLimit("max",t,!0,y.toString(r))}lt(t,r){return this.setLimit("max",t,!1,y.toString(r))}setLimit(t,r,i,a){return new B({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:y.toString(a)}]})}_addCheck(t){return new B({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:y.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:y.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}B.create=e=>{var t;return new B({checks:[],typeName:g.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...S(e)})};class se extends T{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==l.boolean){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.boolean,received:i.parsedType}),h}return w(t.data)}}se.create=e=>new se({typeName:g.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...S(e)});class G extends T{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==l.date){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_type,expected:l.date,received:o.parsedType}),h}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return f(o,{code:u.invalid_date}),h}const i=new D;let a;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(a=this._getOrReturnCtx(t,a),f(a,{code:u.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):N.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new G({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:y.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:y.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}G.create=e=>new G({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:g.ZodDate,...S(e)});class rt extends T{_parse(t){if(this._getType(t)!==l.symbol){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.symbol,received:i.parsedType}),h}return w(t.data)}}rt.create=e=>new rt({typeName:g.ZodSymbol,...S(e)});class ce extends T{_parse(t){if(this._getType(t)!==l.undefined){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.undefined,received:i.parsedType}),h}return w(t.data)}}ce.create=e=>new ce({typeName:g.ZodUndefined,...S(e)});class ue extends T{_parse(t){if(this._getType(t)!==l.null){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.null,received:i.parsedType}),h}return w(t.data)}}ue.create=e=>new ue({typeName:g.ZodNull,...S(e)});class W extends T{constructor(){super(...arguments),this._any=!0}_parse(t){return w(t.data)}}W.create=e=>new W({typeName:g.ZodAny,...S(e)});class z extends T{constructor(){super(...arguments),this._unknown=!0}_parse(t){return w(t.data)}}z.create=e=>new z({typeName:g.ZodUnknown,...S(e)});class k extends T{_parse(t){const r=this._getOrReturnCtx(t);return f(r,{code:u.invalid_type,expected:l.never,received:r.parsedType}),h}}k.create=e=>new k({typeName:g.ZodNever,...S(e)});class nt extends T{_parse(t){if(this._getType(t)!==l.undefined){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.void,received:i.parsedType}),h}return w(t.data)}}nt.create=e=>new nt({typeName:g.ZodVoid,...S(e)});class F extends T{_parse(t){const{ctx:r,status:i}=this._processInputParams(t),a=this._def;if(r.parsedType!==l.array)return f(r,{code:u.invalid_type,expected:l.array,received:r.parsedType}),h;if(a.exactLength!==null){const s=r.data.length>a.exactLength.value,c=r.data.length<a.exactLength.value;(s||c)&&(f(r,{code:s?u.too_big:u.too_small,minimum:c?a.exactLength.value:void 0,maximum:s?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(f(r,{code:u.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(f(r,{code:u.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((s,c)=>a.type._parseAsync(new R(r,s,r.path,c)))).then(s=>D.mergeArray(i,s));const o=[...r.data].map((s,c)=>a.type._parseSync(new R(r,s,r.path,c)));return D.mergeArray(i,o)}get element(){return this._def.type}min(t,r){return new F({...this._def,minLength:{value:t,message:y.toString(r)}})}max(t,r){return new F({...this._def,maxLength:{value:t,message:y.toString(r)}})}length(t,r){return new F({...this._def,exactLength:{value:t,message:y.toString(r)}})}nonempty(t){return this.min(1,t)}}F.create=(e,t)=>new F({type:e,minLength:null,maxLength:null,exactLength:null,typeName:g.ZodArray,...S(t)});function Y(e){if(e instanceof C){const t={};for(const r in e.shape){const i=e.shape[r];t[r]=q.create(Y(i))}return new C({...e._def,shape:()=>t})}else return e instanceof F?new F({...e._def,type:Y(e.element)}):e instanceof q?q.create(Y(e.unwrap())):e instanceof $?$.create(Y(e.unwrap())):e instanceof E?E.create(e.items.map(t=>Y(t))):e}class C extends T{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=N.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==l.object){const d=this._getOrReturnCtx(t);return f(d,{code:u.invalid_type,expected:l.object,received:d.parsedType}),h}const{status:i,ctx:a}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),c=[];if(!(this._def.catchall instanceof k&&this._def.unknownKeys==="strip"))for(const d in a.data)s.includes(d)||c.push(d);const p=[];for(const d of s){const O=o[d],b=a.data[d];p.push({key:{status:"valid",value:d},value:O._parse(new R(a,b,a.path,d)),alwaysSet:d in a.data})}if(this._def.catchall instanceof k){const d=this._def.unknownKeys;if(d==="passthrough")for(const O of c)p.push({key:{status:"valid",value:O},value:{status:"valid",value:a.data[O]}});else if(d==="strict")c.length>0&&(f(a,{code:u.unrecognized_keys,keys:c}),i.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const O of c){const b=a.data[O];p.push({key:{status:"valid",value:O},value:d._parse(new R(a,b,a.path,O)),alwaysSet:O in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const d=[];for(const O of p){const b=await O.key;d.push({key:b,value:await O.value,alwaysSet:O.alwaysSet})}return d}).then(d=>D.mergeObjectSync(i,d)):D.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(t){return y.errToObj,new C({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{var a,o,s,c;const p=(s=(o=(a=this._def).errorMap)===null||o===void 0?void 0:o.call(a,r,i).message)!==null&&s!==void 0?s:i.defaultError;return r.code==="unrecognized_keys"?{message:(c=y.errToObj(t).message)!==null&&c!==void 0?c:p}:{message:p}}}:{}})}strip(){return new C({...this._def,unknownKeys:"strip"})}passthrough(){return new C({...this._def,unknownKeys:"passthrough"})}extend(t){return new C({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new C({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:g.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new C({...this._def,catchall:t})}pick(t){const r={};return N.objectKeys(t).forEach(i=>{t[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new C({...this._def,shape:()=>r})}omit(t){const r={};return N.objectKeys(this.shape).forEach(i=>{t[i]||(r[i]=this.shape[i])}),new C({...this._def,shape:()=>r})}deepPartial(){return Y(this)}partial(t){const r={};return N.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];t&&!t[i]?r[i]=a:r[i]=a.optional()}),new C({...this._def,shape:()=>r})}required(t){const r={};return N.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])r[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof q;)o=o._def.innerType;r[i]=o}}),new C({...this._def,shape:()=>r})}keyof(){return vs(N.objectKeys(this.shape))}}C.create=(e,t)=>new C({shape:()=>e,unknownKeys:"strip",catchall:k.create(),typeName:g.ZodObject,...S(t)}),C.strictCreate=(e,t)=>new C({shape:()=>e,unknownKeys:"strict",catchall:k.create(),typeName:g.ZodObject,...S(t)}),C.lazycreate=(e,t)=>new C({shape:e,unknownKeys:"strip",catchall:k.create(),typeName:g.ZodObject,...S(t)});class de extends T{_parse(t){const{ctx:r}=this._processInputParams(t),i=this._def.options;function a(o){for(const c of o)if(c.result.status==="valid")return c.result;for(const c of o)if(c.result.status==="dirty")return r.common.issues.push(...c.ctx.common.issues),c.result;const s=o.map(c=>new I(c.ctx.common.issues));return f(r,{code:u.invalid_union,unionErrors:s}),h}if(r.common.async)return Promise.all(i.map(async o=>{const s={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(a);{let o;const s=[];for(const p of i){const d={...r,common:{...r.common,issues:[]},parent:null},O=p._parseSync({data:r.data,path:r.path,parent:d});if(O.status==="valid")return O;O.status==="dirty"&&!o&&(o={result:O,ctx:d}),d.common.issues.length&&s.push(d.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const c=s.map(p=>new I(p));return f(r,{code:u.invalid_union,unionErrors:c}),h}}get options(){return this._def.options}}de.create=(e,t)=>new de({options:e,typeName:g.ZodUnion,...S(t)});const it=e=>e instanceof pe?it(e.schema):e instanceof _?it(e.innerType()):e instanceof me?[e.value]:e instanceof M?e.options:e instanceof ye?Object.keys(e.enum):e instanceof ge?it(e._def.innerType):e instanceof ce?[void 0]:e instanceof ue?[null]:null;class at extends T{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.object)return f(r,{code:u.invalid_type,expected:l.object,received:r.parsedType}),h;const i=this.discriminator,a=r.data[i],o=this.optionsMap.get(a);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(f(r,{code:u.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){const a=new Map;for(const o of r){const s=it(o.shape[t]);if(!s)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const c of s){if(a.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);a.set(c,o)}}return new at({typeName:g.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...S(i)})}}function kt(e,t){const r=H(e),i=H(t);if(e===t)return{valid:!0,data:e};if(r===l.object&&i===l.object){const a=N.objectKeys(t),o=N.objectKeys(e).filter(c=>a.indexOf(c)!==-1),s={...e,...t};for(const c of o){const p=kt(e[c],t[c]);if(!p.valid)return{valid:!1};s[c]=p.data}return{valid:!0,data:s}}else if(r===l.array&&i===l.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let o=0;o<e.length;o++){const s=e[o],c=t[o],p=kt(s,c);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return r===l.date&&i===l.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class le extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t),a=(o,s)=>{if(Rt(o)||Rt(s))return h;const c=kt(o.value,s.value);return c.valid?((Et(o)||Et(s))&&r.dirty(),{status:r.value,value:c.data}):(f(i,{code:u.invalid_intersection_types}),h)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,s])=>a(o,s)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}le.create=(e,t,r)=>new le({left:e,right:t,typeName:g.ZodIntersection,...S(r)});class E extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.array)return f(i,{code:u.invalid_type,expected:l.array,received:i.parsedType}),h;if(i.data.length<this._def.items.length)return f(i,{code:u.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&i.data.length>this._def.items.length&&(f(i,{code:u.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...i.data].map((s,c)=>{const p=this._def.items[c]||this._def.rest;return p?p._parse(new R(i,s,i.path,c)):null}).filter(s=>!!s);return i.common.async?Promise.all(o).then(s=>D.mergeArray(r,s)):D.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new E({...this._def,rest:t})}}E.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new E({items:e,typeName:g.ZodTuple,rest:null,...S(t)})};class fe extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.object)return f(i,{code:u.invalid_type,expected:l.object,received:i.parsedType}),h;const a=[],o=this._def.keyType,s=this._def.valueType;for(const c in i.data)a.push({key:o._parse(new R(i,c,i.path,c)),value:s._parse(new R(i,i.data[c],i.path,c))});return i.common.async?D.mergeObjectAsync(r,a):D.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof T?new fe({keyType:t,valueType:r,typeName:g.ZodRecord,...S(i)}):new fe({keyType:U.create(),valueType:t,typeName:g.ZodRecord,...S(r)})}}class ot extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.map)return f(i,{code:u.invalid_type,expected:l.map,received:i.parsedType}),h;const a=this._def.keyType,o=this._def.valueType,s=[...i.data.entries()].map(([c,p],d)=>({key:a._parse(new R(i,c,i.path,[d,"key"])),value:o._parse(new R(i,p,i.path,[d,"value"]))}));if(i.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const p of s){const d=await p.key,O=await p.value;if(d.status==="aborted"||O.status==="aborted")return h;(d.status==="dirty"||O.status==="dirty")&&r.dirty(),c.set(d.value,O.value)}return{status:r.value,value:c}})}else{const c=new Map;for(const p of s){const d=p.key,O=p.value;if(d.status==="aborted"||O.status==="aborted")return h;(d.status==="dirty"||O.status==="dirty")&&r.dirty(),c.set(d.value,O.value)}return{status:r.value,value:c}}}}ot.create=(e,t,r)=>new ot({valueType:t,keyType:e,typeName:g.ZodMap,...S(r)});class Q extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.set)return f(i,{code:u.invalid_type,expected:l.set,received:i.parsedType}),h;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(f(i,{code:u.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(f(i,{code:u.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const o=this._def.valueType;function s(p){const d=new Set;for(const O of p){if(O.status==="aborted")return h;O.status==="dirty"&&r.dirty(),d.add(O.value)}return{status:r.value,value:d}}const c=[...i.data.values()].map((p,d)=>o._parse(new R(i,p,i.path,d)));return i.common.async?Promise.all(c).then(p=>s(p)):s(c)}min(t,r){return new Q({...this._def,minSize:{value:t,message:y.toString(r)}})}max(t,r){return new Q({...this._def,maxSize:{value:t,message:y.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Q.create=(e,t)=>new Q({valueType:e,minSize:null,maxSize:null,typeName:g.ZodSet,...S(t)});class X extends T{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.function)return f(r,{code:u.invalid_type,expected:l.function,received:r.parsedType}),h;function i(c,p){return et({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,je(),ae].filter(d=>!!d),issueData:{code:u.invalid_arguments,argumentsError:p}})}function a(c,p){return et({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,je(),ae].filter(d=>!!d),issueData:{code:u.invalid_return_type,returnTypeError:p}})}const o={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof x){const c=this;return w(async function(...p){const d=new I([]),O=await c._def.args.parseAsync(p,o).catch(qt=>{throw d.addIssue(i(p,qt)),d}),b=await Reflect.apply(s,this,O);return await c._def.returns._def.type.parseAsync(b,o).catch(qt=>{throw d.addIssue(a(b,qt)),d})})}else{const c=this;return w(function(...p){const d=c._def.args.safeParse(p,o);if(!d.success)throw new I([i(p,d.error)]);const O=Reflect.apply(s,this,d.data),b=c._def.returns.safeParse(O,o);if(!b.success)throw new I([a(O,b.error)]);return b.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new X({...this._def,args:E.create(t).rest(z.create())})}returns(t){return new X({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new X({args:t||E.create([]).rest(z.create()),returns:r||z.create(),typeName:g.ZodFunction,...S(i)})}}class pe extends T{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}pe.create=(e,t)=>new pe({getter:e,typeName:g.ZodLazy,...S(t)});class me extends T{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return f(r,{received:r.data,code:u.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:t.data}}get value(){return this._def.value}}me.create=(e,t)=>new me({value:e,typeName:g.ZodLiteral,...S(t)});function vs(e,t){return new M({values:e,typeName:g.ZodEnum,...S(t)})}class M extends T{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),i=this._def.values;return f(r,{expected:N.joinValues(i),received:r.parsedType,code:u.invalid_type}),h}if(this._def.values.indexOf(t.data)===-1){const r=this._getOrReturnCtx(t),i=this._def.values;return f(r,{received:r.data,code:u.invalid_enum_value,options:i}),h}return w(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t){return M.create(t)}exclude(t){return M.create(this.options.filter(r=>!t.includes(r)))}}M.create=vs;class ye extends T{_parse(t){const r=N.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==l.string&&i.parsedType!==l.number){const a=N.objectValues(r);return f(i,{expected:N.joinValues(a),received:i.parsedType,code:u.invalid_type}),h}if(r.indexOf(t.data)===-1){const a=N.objectValues(r);return f(i,{received:i.data,code:u.invalid_enum_value,options:a}),h}return w(t.data)}get enum(){return this._def.values}}ye.create=(e,t)=>new ye({values:e,typeName:g.ZodNativeEnum,...S(t)});class x extends T{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==l.promise&&r.common.async===!1)return f(r,{code:u.invalid_type,expected:l.promise,received:r.parsedType}),h;const i=r.parsedType===l.promise?r.data:Promise.resolve(r.data);return w(i.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}x.create=(e,t)=>new x({type:e,typeName:g.ZodPromise,...S(t)});class _ extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===g.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:i}=this._processInputParams(t),a=this._def.effect||null,o={addIssue:s=>{f(i,s),s.fatal?r.abort():r.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){const s=a.transform(i.data,o);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(s).then(c=>this._def.schema._parseAsync({data:c,path:i.path,parent:i})):this._def.schema._parseSync({data:s,path:i.path,parent:i})}if(a.type==="refinement"){const s=c=>{const p=a.refinement(c,o);if(i.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(i.common.async===!1){const c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?h:(c.status==="dirty"&&r.dirty(),s(c.value),{status:r.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?h:(c.status==="dirty"&&r.dirty(),s(c.value).then(()=>({status:r.value,value:c.value}))))}if(a.type==="transform")if(i.common.async===!1){const s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!oe(s))return s;const c=a.transform(s.value,o);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>oe(s)?Promise.resolve(a.transform(s.value,o)).then(c=>({status:r.value,value:c})):s);N.assertNever(a)}}_.create=(e,t,r)=>new _({schema:e,typeName:g.ZodEffects,effect:t,...S(r)}),_.createWithPreprocess=(e,t,r)=>new _({schema:t,effect:{type:"preprocess",transform:e},typeName:g.ZodEffects,...S(r)});class q extends T{_parse(t){return this._getType(t)===l.undefined?w(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}q.create=(e,t)=>new q({innerType:e,typeName:g.ZodOptional,...S(t)});class $ extends T{_parse(t){return this._getType(t)===l.null?w(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}$.create=(e,t)=>new $({innerType:e,typeName:g.ZodNullable,...S(t)});class ge extends T{_parse(t){const{ctx:r}=this._processInputParams(t);let i=r.data;return r.parsedType===l.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}ge.create=(e,t)=>new ge({innerType:e,typeName:g.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...S(t)});class st extends T{_parse(t){const{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return tt(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new I(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new I(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}st.create=(e,t)=>new st({innerType:e,typeName:g.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...S(t)});class ct extends T{_parse(t){if(this._getType(t)!==l.nan){const i=this._getOrReturnCtx(t);return f(i,{code:u.invalid_type,expected:l.nan,received:i.parsedType}),h}return{status:"valid",value:t.data}}}ct.create=e=>new ct({typeName:g.ZodNaN,...S(e)});const Yl=Symbol("zod_brand");class ks extends T{_parse(t){const{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}}class he extends T{_parse(t){const{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?h:o.status==="dirty"?(r.dirty(),Rs(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?h:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(t,r){return new he({in:t,out:r,typeName:g.ZodPipeline})}}class ut extends T{_parse(t){const r=this._def.innerType._parse(t);return oe(r)&&(r.value=Object.freeze(r.value)),r}}ut.create=(e,t)=>new ut({innerType:e,typeName:g.ZodReadonly,...S(t)});const qs=(e,t={},r)=>e?W.create().superRefine((i,a)=>{var o,s;if(!e(i)){const c=typeof t=="function"?t(i):typeof t=="string"?{message:t}:t,p=(s=(o=c.fatal)!==null&&o!==void 0?o:r)!==null&&s!==void 0?s:!0,d=typeof c=="string"?{message:c}:c;a.addIssue({code:"custom",...d,fatal:p})}}):W.create(),Xl={object:C.lazycreate};var g;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(g||(g={}));const xl=(e,t={message:`Input not instance of ${e.name}`})=>qs(r=>r instanceof e,t),Ls=U.create,Hs=V.create,jl=ct.create,ef=B.create,Vs=se.create,tf=G.create,rf=rt.create,nf=ce.create,af=ue.create,of=W.create,sf=z.create,cf=k.create,uf=nt.create,df=F.create,lf=C.create,ff=C.strictCreate,pf=de.create,mf=at.create,yf=le.create,gf=E.create,hf=fe.create,Sf=ot.create,Tf=Q.create,Of=X.create,Nf=pe.create,Pf=me.create,Cf=M.create,Jf=ye.create,Df=x.create,Bs=_.create,wf=q.create,Af=$.create,bf=_.createWithPreprocess,If=he.create;var Se=Object.freeze({__proto__:null,defaultErrorMap:ae,setErrorMap:ql,getErrorMap:je,makeIssue:et,EMPTY_PATH:Ll,addIssueToContext:f,ParseStatus:D,INVALID:h,DIRTY:Rs,OK:w,isAborted:Rt,isDirty:Et,isValid:oe,isAsync:tt,get util(){return N},get objectUtil(){return _t},ZodParsedType:l,getParsedType:H,ZodType:T,ZodString:U,ZodNumber:V,ZodBigInt:B,ZodBoolean:se,ZodDate:G,ZodSymbol:rt,ZodUndefined:ce,ZodNull:ue,ZodAny:W,ZodUnknown:z,ZodNever:k,ZodVoid:nt,ZodArray:F,ZodObject:C,ZodUnion:de,ZodDiscriminatedUnion:at,ZodIntersection:le,ZodTuple:E,ZodRecord:fe,ZodMap:ot,ZodSet:Q,ZodFunction:X,ZodLazy:pe,ZodLiteral:me,ZodEnum:M,ZodNativeEnum:ye,ZodPromise:x,ZodEffects:_,ZodTransformer:_,ZodOptional:q,ZodNullable:$,ZodDefault:ge,ZodCatch:st,ZodNaN:ct,BRAND:Yl,ZodBranded:ks,ZodPipeline:he,ZodReadonly:ut,custom:qs,Schema:T,ZodSchema:T,late:Xl,get ZodFirstPartyTypeKind(){return g},coerce:{string:e=>U.create({...e,coerce:!0}),number:e=>V.create({...e,coerce:!0}),boolean:e=>se.create({...e,coerce:!0}),bigint:e=>B.create({...e,coerce:!0}),date:e=>G.create({...e,coerce:!0})},any:of,array:df,bigint:ef,boolean:Vs,date:tf,discriminatedUnion:mf,effect:Bs,enum:Cf,function:Of,instanceof:xl,intersection:yf,lazy:Nf,literal:Pf,map:Sf,nan:jl,nativeEnum:Jf,never:cf,null:af,nullable:Af,number:Hs,object:lf,oboolean:()=>Vs().optional(),onumber:()=>Hs().optional(),optional:wf,ostring:()=>Ls().optional(),pipeline:If,preprocess:bf,promise:Df,record:hf,set:Tf,strictObject:ff,string:Ls,symbol:rf,transformer:Bs,tuple:gf,undefined:nf,union:pf,unknown:sf,void:uf,NEVER:h,ZodIssueCode:u,quotelessJson:kl,ZodError:I});function Uf(e){return e===401||e===403}function Ff(e){return Object.entries(e).map(([t,r])=>`${encodeURIComponent(t)}=${encodeURIComponent(r)}`).join("&")}const _f=Se.object({access_token:Se.string().min(1),token_type:Se.string(),expires_in:Se.number(),scope:Se.string()});async function Rf(e){const r=await(await fetch(e.tokenUrl,{method:"POST",body:Ff({grant_type:"client_credentials",client_id:e.clientId,client_secret:e.clientSecret}),headers:{"Content-Type":"application/x-www-form-urlencoded"}})).json();return Ef(r)}function Ef(e){const t=_f.safeParse(e);if(!t.success)throw new Error("Bad access token response");return t.data}class vf{constructor(t){v(this,"activeRequest",null);v(this,"refreshTimeout");v(this,"accessToken",null);this.clientCredentials=t}async getAccessToken(){return this.accessToken?this.accessToken:await this.refreshAccessToken()}async refreshAccessToken(){if(this.activeRequest)return await this.activeRequest,this.accessToken;this.accessToken=null,this.activeRequest=Rf(this.clientCredentials);const t=await this.activeRequest;return this.scheduleNextRefresh(t),this.accessToken=t.access_token,this.activeRequest=null,this.accessToken}scheduleNextRefresh(t){clearTimeout(this.refreshTimeout);const r=(t.expires_in-2)*1e3;this.refreshTimeout=setTimeout(()=>{this.accessToken=null},r)}}function Ms(e,t){e.headers=kf("Authorization",`Bearer ${t}`,e.headers)}function kf(e,t,r){return r?Array.isArray(r)?r.map(([i,a])=>i!==e?[i,a]:[e,t]):qf(r)?(r.has(e)?r.set(e,t):r.append(e,t),r):(r[e]=t,r):(r={},r[e]=t,r)}function qf(e){return"append"in e&&"delete"in e&&"get"in e&&"has"in e&&"set"in e&&"forEach"in e}function Lf(e){const t=new vf(e);return{pre:async r=>{const i=await t.getAccessToken();return Ms(r.init,i),Promise.resolve({url:r.url,init:r.init})},post:async r=>{if(Uf(r.response.status)){const i=await t.refreshAccessToken();return Ms(r.init,i),await fetch(r.url,r.init)}return Promise.resolve(r.response)}}}function Hf(e){const t=[];let r={};e.clientCredentials&&t.push(Lf(e.clientCredentials)),e.managementApiKey&&(r=Vf(e.managementApiKey));const i=new L({basePath:e.managementApiUrl,headers:r,credentials:"same-origin",middleware:t,...e.configOverrides});return{uiApi:new Us(i),useCaseApi:new Fs(i),enterpriseEditionApi:new Is(i)}}function Vf(e){return{"X-Api-Key":e}}n.AssetFilterConstraintFromJSON=ft,n.AssetFilterConstraintFromJSONTyped=Qt,n.AssetFilterConstraintOperator=Te,n.AssetFilterConstraintOperatorFromJSON=Gt,n.AssetFilterConstraintOperatorFromJSONTyped=zt,n.AssetFilterConstraintOperatorToJSON=Xs,n.AssetFilterConstraintOperatorToJSONTyped=xs,n.AssetFilterConstraintToJSON=pt,n.AssetFilterConstraintToJSONTyped=$t,n.AssetListPageFilterFromJSON=lc,n.AssetListPageFilterFromJSONTyped=sr,n.AssetListPageFilterToJSON=cr,n.AssetListPageFilterToJSONTyped=ur,n.AssetListPageFromJSON=xt,n.AssetListPageFromJSONTyped=jt,n.AssetListPageToJSON=ac,n.AssetListPageToJSONTyped=er,n.AssetListSortProperty=Ne,n.AssetListSortPropertyFromJSON=tr,n.AssetListSortPropertyFromJSONTyped=rr,n.AssetListSortPropertyToJSON=sc,n.AssetListSortPropertyToJSONTyped=cc,n.BASE_PATH=A,n.BaseAPI=K,n.BlobApiResponse=Ws,n.BuildInfoFromJSON=dr,n.BuildInfoFromJSONTyped=lr,n.BuildInfoToJSON=pc,n.BuildInfoToJSONTyped=fr,n.BusinessPartnerGroupCreateSubmitFromJSON=yc,n.BusinessPartnerGroupCreateSubmitFromJSONTyped=pr,n.BusinessPartnerGroupCreateSubmitToJSON=mr,n.BusinessPartnerGroupCreateSubmitToJSONTyped=yr,n.BusinessPartnerGroupEditPageFromJSON=gr,n.BusinessPartnerGroupEditPageFromJSONTyped=hr,n.BusinessPartnerGroupEditPageToJSON=hc,n.BusinessPartnerGroupEditPageToJSONTyped=Sr,n.BusinessPartnerGroupEditSubmitFromJSON=Tc,n.BusinessPartnerGroupEditSubmitFromJSONTyped=Tr,n.BusinessPartnerGroupEditSubmitToJSON=Or,n.BusinessPartnerGroupEditSubmitToJSONTyped=Nr,n.BusinessPartnerGroupListPageEntryFromJSON=Pr,n.BusinessPartnerGroupListPageEntryFromJSONTyped=Cr,n.BusinessPartnerGroupListPageEntryToJSON=Nc,n.BusinessPartnerGroupListPageEntryToJSONTyped=Jr,n.BusinessPartnerGroupQueryFromJSON=Cc,n.BusinessPartnerGroupQueryFromJSONTyped=Dr,n.BusinessPartnerGroupQueryToJSON=wr,n.BusinessPartnerGroupQueryToJSONTyped=Ar,n.COLLECTION_FORMATS=zs,n.CallbackAddressDtoFromJSON=Ce,n.CallbackAddressDtoFromJSONTyped=Fr,n.CallbackAddressDtoToJSON=Je,n.CallbackAddressDtoToJSONTyped=_r,n.CallbackAddressEventType=Pe,n.CallbackAddressEventTypeFromJSON=br,n.CallbackAddressEventTypeFromJSONTyped=Ir,n.CallbackAddressEventTypeToJSON=Ur,n.CallbackAddressEventTypeToJSONTyped=Dc,n.CatalogFilterExpressionFromJSON=Br,n.CatalogFilterExpressionFromJSONTyped=Mr,n.CatalogFilterExpressionLiteralFromJSON=vr,n.CatalogFilterExpressionLiteralFromJSONTyped=kr,n.CatalogFilterExpressionLiteralToJSON=qr,n.CatalogFilterExpressionLiteralToJSONTyped=Lr,n.CatalogFilterExpressionLiteralType=De,n.CatalogFilterExpressionLiteralTypeFromJSON=Rr,n.CatalogFilterExpressionLiteralTypeFromJSONTyped=Er,n.CatalogFilterExpressionLiteralTypeToJSON=bc,n.CatalogFilterExpressionLiteralTypeToJSONTyped=Ic,n.CatalogFilterExpressionOperator=we,n.CatalogFilterExpressionOperatorFromJSON=Hr,n.CatalogFilterExpressionOperatorFromJSONTyped=Vr,n.CatalogFilterExpressionOperatorToJSON=_c,n.CatalogFilterExpressionOperatorToJSONTyped=Rc,n.CatalogFilterExpressionToJSON=Zr,n.CatalogFilterExpressionToJSONTyped=Gr,n.CatalogQueryFromJSON=kc,n.CatalogQueryFromJSONTyped=zr,n.CatalogQueryToJSON=Qr,n.CatalogQueryToJSONTyped=$r,n.CatalogQueryV2FromJSON=Mc,n.CatalogQueryV2FromJSONTyped=en,n.CatalogQueryV2ToJSON=tn,n.CatalogQueryV2ToJSONTyped=rn,n.CatalogSortByDirection=Ae,n.CatalogSortByDirectionFromJSON=Kr,n.CatalogSortByDirectionFromJSONTyped=Wr,n.CatalogSortByDirectionToJSON=Lc,n.CatalogSortByDirectionToJSONTyped=Hc,n.CatalogSortByFromJSON=Yr,n.CatalogSortByFromJSONTyped=Xr,n.CatalogSortByToJSON=xr,n.CatalogSortByToJSONTyped=jr,n.Configuration=L,n.ConnectorLimitsFromJSON=nn,n.ConnectorLimitsFromJSONTyped=an,n.ConnectorLimitsToJSON=Gc,n.ConnectorLimitsToJSONTyped=on,n.ContractAgreementCardFromJSON=Ot,n.ContractAgreementCardFromJSONTyped=qn,n.ContractAgreementCardToJSON=Ln,n.ContractAgreementCardToJSONTyped=Hn,n.ContractAgreementDirection=be,n.ContractAgreementDirectionFromJSON=mt,n.ContractAgreementDirectionFromJSONTyped=sn,n.ContractAgreementDirectionToJSON=Qc,n.ContractAgreementDirectionToJSONTyped=$c,n.ContractAgreementPageFromJSON=Vn,n.ContractAgreementPageFromJSONTyped=Bn,n.ContractAgreementPageQueryFromJSON=Cu,n.ContractAgreementPageQueryFromJSONTyped=Zn,n.ContractAgreementPageQueryToJSON=Gn,n.ContractAgreementPageQueryToJSONTyped=zn,n.ContractAgreementPageToJSON=Nu,n.ContractAgreementPageToJSONTyped=Mn,n.ContractAgreementTerminationInfoFromJSON=yt,n.ContractAgreementTerminationInfoFromJSONTyped=dn,n.ContractAgreementTerminationInfoToJSON=gt,n.ContractAgreementTerminationInfoToJSONTyped=ln,n.ContractAgreementTransferProcessFromJSON=gn,n.ContractAgreementTransferProcessFromJSONTyped=hn,n.ContractAgreementTransferProcessToJSON=Sn,n.ContractAgreementTransferProcessToJSONTyped=Tn,n.ContractDefinitionEntryFromJSON=ri,n.ContractDefinitionEntryFromJSONTyped=ni,n.ContractDefinitionEntryToJSON=ii,n.ContractDefinitionEntryToJSONTyped=ai,n.ContractDefinitionPageFromJSON=oi,n.ContractDefinitionPageFromJSONTyped=si,n.ContractDefinitionPageToJSON=Eu,n.ContractDefinitionPageToJSONTyped=ci,n.ContractDefinitionRequestFromJSON=ku,n.ContractDefinitionRequestFromJSONTyped=ui,n.ContractDefinitionRequestToJSON=di,n.ContractDefinitionRequestToJSONTyped=li,n.ContractNegotiationRequestFromJSON=Lu,n.ContractNegotiationRequestFromJSONTyped=fi,n.ContractNegotiationRequestToJSON=pi,n.ContractNegotiationRequestToJSONTyped=mi,n.ContractNegotiationSimplifiedState=He,n.ContractNegotiationSimplifiedStateFromJSON=yi,n.ContractNegotiationSimplifiedStateFromJSONTyped=gi,n.ContractNegotiationSimplifiedStateToJSON=Vu,n.ContractNegotiationSimplifiedStateToJSONTyped=Bu,n.ContractNegotiationStateFromJSON=Ve,n.ContractNegotiationStateFromJSONTyped=hi,n.ContractNegotiationStateResultFromJSON=Ti,n.ContractNegotiationStateResultFromJSONTyped=Oi,n.ContractNegotiationStateResultToJSON=Gu,n.ContractNegotiationStateResultToJSONTyped=Ni,n.ContractNegotiationStateToJSON=Be,n.ContractNegotiationStateToJSONTyped=Si,n.ContractTerminatedBy=Ie,n.ContractTerminatedByFromJSON=cn,n.ContractTerminatedByFromJSONTyped=un,n.ContractTerminatedByToJSON=Wc,n.ContractTerminatedByToJSONTyped=Yc,n.ContractTerminationRequestFromJSON=Qu,n.ContractTerminationRequestFromJSONTyped=Pi,n.ContractTerminationRequestToJSON=Ci,n.ContractTerminationRequestToJSONTyped=Ji,n.ContractTerminationStatus=Re,n.ContractTerminationStatusFromJSON=ht,n.ContractTerminationStatusFromJSONTyped=On,n.ContractTerminationStatusToJSON=iu,n.ContractTerminationStatusToJSONTyped=au,n.DashboardCxDidConfigFromJSON=Di,n.DashboardCxDidConfigFromJSONTyped=wi,n.DashboardCxDidConfigToJSON=Ai,n.DashboardCxDidConfigToJSONTyped=bi,n.DashboardDapsConfigFromJSON=Ii,n.DashboardDapsConfigFromJSONTyped=Ui,n.DashboardDapsConfigToJSON=Fi,n.DashboardDapsConfigToJSONTyped=_i,n.DashboardPageFromJSON=vi,n.DashboardPageFromJSONTyped=ki,n.DashboardPageToJSON=Xu,n.DashboardPageToJSONTyped=qi,n.DashboardTransferAmountsFromJSON=Ct,n.DashboardTransferAmountsFromJSONTyped=Ri,n.DashboardTransferAmountsToJSON=Jt,n.DashboardTransferAmountsToJSONTyped=Ei,n.DataOfferCreateRequestFromJSON=Jd,n.DataOfferCreateRequestFromJSONTyped=Aa,n.DataOfferCreateRequestToJSON=ba,n.DataOfferCreateRequestToJSONTyped=Ia,n.DataOfferPublishType=Me,n.DataOfferPublishTypeFromJSON=Li,n.DataOfferPublishTypeFromJSONTyped=Hi,n.DataOfferPublishTypeToJSON=ju,n.DataOfferPublishTypeToJSONTyped=ed,n.DataSourceAvailability=Oe,n.DataSourceAvailabilityFromJSON=Kt,n.DataSourceAvailabilityFromJSONTyped=Wt,n.DataSourceAvailabilityToJSON=tc,n.DataSourceAvailabilityToJSONTyped=rc,n.DataSourceType=Ze,n.DataSourceTypeFromJSON=Vi,n.DataSourceTypeFromJSONTyped=Bi,n.DataSourceTypeToJSON=rd,n.DataSourceTypeToJSONTyped=nd,n.DefaultConfig=Lt,n.EdrDtoFromJSON=Ua,n.EdrDtoFromJSONTyped=Fa,n.EdrDtoToJSON=wd,n.EdrDtoToJSONTyped=_a,n.EnterpriseEditionApi=Is,n.FetchError=Vt,n.IdAvailabilityResponseFromJSON=Ke,n.IdAvailabilityResponseFromJSONTyped=Ra,n.IdAvailabilityResponseToJSON=bd,n.IdAvailabilityResponseToJSONTyped=Ea,n.IdResponseDtoFromJSON=J,n.IdResponseDtoFromJSONTyped=va,n.IdResponseDtoToJSON=Ud,n.IdResponseDtoToJSONTyped=ka,n.InitiateCustomTransferRequestFromJSON=_d,n.InitiateCustomTransferRequestFromJSONTyped=qa,n.InitiateCustomTransferRequestToJSON=La,n.InitiateCustomTransferRequestToJSONTyped=Ha,n.InitiateTransferRequestFromJSON=Ed,n.InitiateTransferRequestFromJSONTyped=Va,n.InitiateTransferRequestToJSON=Ba,n.InitiateTransferRequestToJSONTyped=Ma,n.JSONApiResponse=m,n.KpiResultFromJSON=$a,n.KpiResultFromJSONTyped=Ka,n.KpiResultToJSON=qd,n.KpiResultToJSONTyped=Wa,n.NegotiateAllQueryFromJSON=Hd,n.NegotiateAllQueryFromJSONTyped=Ya,n.NegotiateAllQueryToJSON=Xa,n.NegotiateAllQueryToJSONTyped=xa,n.NegotiateAllResultFromJSON=ja,n.NegotiateAllResultFromJSONTyped=eo,n.NegotiateAllResultToJSON=Bd,n.NegotiateAllResultToJSONTyped=to,n.OperatorDto=Ee,n.OperatorDtoFromJSON=Nn,n.OperatorDtoFromJSONTyped=Pn,n.OperatorDtoToJSON=su,n.OperatorDtoToJSONTyped=cu,n.PolicyDefinitionCreateDtoFromJSON=Zd,n.PolicyDefinitionCreateDtoFromJSONTyped=ro,n.PolicyDefinitionCreateDtoToJSON=no,n.PolicyDefinitionCreateDtoToJSONTyped=io,n.PolicyDefinitionCreateRequestFromJSON=Qd,n.PolicyDefinitionCreateRequestFromJSONTyped=uo,n.PolicyDefinitionCreateRequestToJSON=lo,n.PolicyDefinitionCreateRequestToJSONTyped=fo,n.PolicyDefinitionDtoFromJSON=po,n.PolicyDefinitionDtoFromJSONTyped=mo,n.PolicyDefinitionDtoToJSON=yo,n.PolicyDefinitionDtoToJSONTyped=go,n.PolicyDefinitionPageFromJSON=ho,n.PolicyDefinitionPageFromJSONTyped=So,n.PolicyDefinitionPageToJSON=Wd,n.PolicyDefinitionPageToJSONTyped=To,n.RequiredError=P,n.ResponseError=Ht,n.TableColumnSortAssetListSortPropertyFromJSON=nr,n.TableColumnSortAssetListSortPropertyFromJSONTyped=ir,n.TableColumnSortAssetListSortPropertyToJSON=ar,n.TableColumnSortAssetListSortPropertyToJSONTyped=or,n.TextApiResponse=Zt,n.TransferHistoryEntryFromJSON=Oo,n.TransferHistoryEntryFromJSONTyped=No,n.TransferHistoryEntryToJSON=Po,n.TransferHistoryEntryToJSONTyped=Co,n.TransferHistoryPageFromJSON=Jo,n.TransferHistoryPageFromJSONTyped=Do,n.TransferHistoryPageToJSON=xd,n.TransferHistoryPageToJSONTyped=wo,n.TransferProcessSimplifiedState=Ue,n.TransferProcessSimplifiedStateFromJSON=fn,n.TransferProcessSimplifiedStateFromJSONTyped=pn,n.TransferProcessSimplifiedStateToJSON=jc,n.TransferProcessSimplifiedStateToJSONTyped=eu,n.TransferProcessStateFromJSON=Fe,n.TransferProcessStateFromJSONTyped=mn,n.TransferProcessStateResultFromJSON=Ao,n.TransferProcessStateResultFromJSONTyped=bo,n.TransferProcessStateResultToJSON=el,n.TransferProcessStateResultToJSONTyped=Io,n.TransferProcessStateToJSON=_e,n.TransferProcessStateToJSONTyped=yn,n.TransferProcessStatesDtoFromJSON=Za,n.TransferProcessStatesDtoFromJSONTyped=Ga,n.TransferProcessStatesDtoToJSON=za,n.TransferProcessStatesDtoToJSONTyped=Qa,n.UIApi=Us,n.UiAssetCreateRequestFromJSON=Ja,n.UiAssetCreateRequestFromJSONTyped=Da,n.UiAssetCreateRequestToJSON=$e,n.UiAssetCreateRequestToJSONTyped=wa,n.UiAssetEditRequestFromJSON=rl,n.UiAssetEditRequestFromJSONTyped=Uo,n.UiAssetEditRequestToJSON=Fo,n.UiAssetEditRequestToJSONTyped=_o,n.UiAssetFromJSON=Z,n.UiAssetFromJSONTyped=Yt,n.UiAssetToJSON=j,n.UiAssetToJSONTyped=Xt,n.UiConfigFeature=We,n.UiConfigFeatureFromJSON=Ro,n.UiConfigFeatureFromJSONTyped=Eo,n.UiConfigFeatureToJSON=vo,n.UiConfigFeatureToJSONTyped=il,n.UiConfigFromJSON=Vo,n.UiConfigFromJSONTyped=Bo,n.UiConfigPreconfiguredCounterpartyFromJSON=ko,n.UiConfigPreconfiguredCounterpartyFromJSONTyped=qo,n.UiConfigPreconfiguredCounterpartyToJSON=Lo,n.UiConfigPreconfiguredCounterpartyToJSONTyped=Ho,n.UiConfigToJSON=sl,n.UiConfigToJSONTyped=Mo,n.UiContractNegotiationFromJSON=Ft,n.UiContractNegotiationFromJSONTyped=Zo,n.UiContractNegotiationToJSON=ul,n.UiContractNegotiationToJSONTyped=Go,n.UiContractOfferFromJSON=zo,n.UiContractOfferFromJSONTyped=Qo,n.UiContractOfferToJSON=$o,n.UiContractOfferToJSONTyped=Ko,n.UiCriterionFromJSON=Nt,n.UiCriterionFromJSONTyped=ei,n.UiCriterionLiteralFromJSON=Kn,n.UiCriterionLiteralFromJSONTyped=Wn,n.UiCriterionLiteralToJSON=Yn,n.UiCriterionLiteralToJSONTyped=Xn,n.UiCriterionLiteralType=qe,n.UiCriterionLiteralTypeFromJSON=Qn,n.UiCriterionLiteralTypeFromJSONTyped=$n,n.UiCriterionLiteralTypeToJSON=Du,n.UiCriterionLiteralTypeToJSONTyped=wu,n.UiCriterionOperator=Le,n.UiCriterionOperatorFromJSON=xn,n.UiCriterionOperatorFromJSONTyped=jn,n.UiCriterionOperatorToJSON=Iu,n.UiCriterionOperatorToJSONTyped=Uu,n.UiCriterionToJSON=Pt,n.UiCriterionToJSONTyped=ti,n.UiDataOfferFromJSON=ie,n.UiDataOfferFromJSONTyped=Wo,n.UiDataOfferToJSON=fl,n.UiDataOfferToJSONTyped=Yo,n.UiDataSinkHttpDataPushFromJSON=as,n.UiDataSinkHttpDataPushFromJSONTyped=os,n.UiDataSinkHttpDataPushMethod=Ye,n.UiDataSinkHttpDataPushMethodFromJSON=Xo,n.UiDataSinkHttpDataPushMethodFromJSONTyped=xo,n.UiDataSinkHttpDataPushMethodToJSON=ml,n.UiDataSinkHttpDataPushMethodToJSONTyped=yl,n.UiDataSinkHttpDataPushToJSON=ss,n.UiDataSinkHttpDataPushToJSONTyped=cs,n.UiDataSourceFromJSON=It,n.UiDataSourceFromJSONTyped=Pa,n.UiDataSourceHttpDataFromJSON=ma,n.UiDataSourceHttpDataFromJSONTyped=ya,n.UiDataSourceHttpDataMethod=Ge,n.UiDataSourceHttpDataMethodFromJSON=Mi,n.UiDataSourceHttpDataMethodFromJSONTyped=Zi,n.UiDataSourceHttpDataMethodToJSON=ad,n.UiDataSourceHttpDataMethodToJSONTyped=od,n.UiDataSourceHttpDataToJSON=ga,n.UiDataSourceHttpDataToJSONTyped=ha,n.UiDataSourceOnRequestFromJSON=Sa,n.UiDataSourceOnRequestFromJSONTyped=Ta,n.UiDataSourceOnRequestToJSON=Oa,n.UiDataSourceOnRequestToJSONTyped=Na,n.UiDataSourceToJSON=Ut,n.UiDataSourceToJSONTyped=Ca,n.UiHttpAuthApiKeyFromJSON=Dt,n.UiHttpAuthApiKeyFromJSONTyped=Gi,n.UiHttpAuthApiKeyToJSON=wt,n.UiHttpAuthApiKeyToJSONTyped=zi,n.UiHttpAuthBasicFromJSON=At,n.UiHttpAuthBasicFromJSONTyped=Qi,n.UiHttpAuthBasicToJSON=bt,n.UiHttpAuthBasicToJSONTyped=$i,n.UiHttpAuthFromJSON=da,n.UiHttpAuthFromJSONTyped=la,n.UiHttpAuthOauth2FromJSON=ia,n.UiHttpAuthOauth2FromJSONTyped=aa,n.UiHttpAuthOauth2ToJSON=oa,n.UiHttpAuthOauth2ToJSONTyped=sa,n.UiHttpAuthToJSON=fa,n.UiHttpAuthToJSONTyped=pa,n.UiHttpAuthType=Qe,n.UiHttpAuthTypeFromJSON=ca,n.UiHttpAuthTypeFromJSONTyped=ua,n.UiHttpAuthTypeToJSON=gd,n.UiHttpAuthTypeToJSONTyped=hd,n.UiHttpOauth2AuthType=ze,n.UiHttpOauth2AuthTypeFromJSON=Ki,n.UiHttpOauth2AuthTypeFromJSONTyped=Wi,n.UiHttpOauth2AuthTypeToJSON=dd,n.UiHttpOauth2AuthTypeToJSONTyped=ld,n.UiHttpOauth2PrivateKeyAuthorizationFromJSON=Yi,n.UiHttpOauth2PrivateKeyAuthorizationFromJSONTyped=Xi,n.UiHttpOauth2PrivateKeyAuthorizationToJSON=xi,n.UiHttpOauth2PrivateKeyAuthorizationToJSONTyped=ji,n.UiHttpOauth2SharedSecretAuthorizationFromJSON=ea,n.UiHttpOauth2SharedSecretAuthorizationFromJSONTyped=ta,n.UiHttpOauth2SharedSecretAuthorizationToJSON=ra,n.UiHttpOauth2SharedSecretAuthorizationToJSONTyped=na,n.UiHttpPushAuthFromJSON=ts,n.UiHttpPushAuthFromJSONTyped=rs,n.UiHttpPushAuthToJSON=ns,n.UiHttpPushAuthToJSONTyped=is,n.UiHttpPushAuthType=Xe,n.UiHttpPushAuthTypeFromJSON=jo,n.UiHttpPushAuthTypeFromJSONTyped=es,n.UiHttpPushAuthTypeToJSON=hl,n.UiHttpPushAuthTypeToJSONTyped=Sl,n.UiInitiateTransferRequestFromJSON=Dl,n.UiInitiateTransferRequestFromJSONTyped=ls,n.UiInitiateTransferRequestToJSON=fs,n.UiInitiateTransferRequestToJSONTyped=ps,n.UiInitiateTransferType=xe,n.UiInitiateTransferTypeFromJSON=us,n.UiInitiateTransferTypeFromJSONTyped=ds,n.UiInitiateTransferTypeToJSON=Pl,n.UiInitiateTransferTypeToJSONTyped=Cl,n.UiPolicyConstraintFromJSON=St,n.UiPolicyConstraintFromJSONTyped=In,n.UiPolicyConstraintToJSON=Tt,n.UiPolicyConstraintToJSONTyped=Un,n.UiPolicyCreateRequestFromJSON=ao,n.UiPolicyCreateRequestFromJSONTyped=oo,n.UiPolicyCreateRequestToJSON=so,n.UiPolicyCreateRequestToJSONTyped=co,n.UiPolicyExpressionFromJSON=ee,n.UiPolicyExpressionFromJSONTyped=Rn,n.UiPolicyExpressionToJSON=te,n.UiPolicyExpressionToJSONTyped=En,n.UiPolicyExpressionType=ke,n.UiPolicyExpressionTypeFromJSON=Fn,n.UiPolicyExpressionTypeFromJSONTyped=_n,n.UiPolicyExpressionTypeToJSON=yu,n.UiPolicyExpressionTypeToJSONTyped=gu,n.UiPolicyFromJSON=re,n.UiPolicyFromJSONTyped=vn,n.UiPolicyLiteralFromJSON=Dn,n.UiPolicyLiteralFromJSONTyped=wn,n.UiPolicyLiteralToJSON=An,n.UiPolicyLiteralToJSONTyped=bn,n.UiPolicyLiteralType=ve,n.UiPolicyLiteralTypeFromJSON=Cn,n.UiPolicyLiteralTypeFromJSONTyped=Jn,n.UiPolicyLiteralTypeToJSON=du,n.UiPolicyLiteralTypeToJSONTyped=lu,n.UiPolicyToJSON=ne,n.UiPolicyToJSONTyped=kn,n.UseCaseApi=Fs,n.VaultSecretCreateSubmitFromJSON=Al,n.VaultSecretCreateSubmitFromJSONTyped=ms,n.VaultSecretCreateSubmitToJSON=ys,n.VaultSecretCreateSubmitToJSONTyped=gs,n.VaultSecretEditPageFromJSON=hs,n.VaultSecretEditPageFromJSONTyped=Ss,n.VaultSecretEditPageToJSON=Il,n.VaultSecretEditPageToJSONTyped=Ts,n.VaultSecretEditSubmitFromJSON=Fl,n.VaultSecretEditSubmitFromJSONTyped=Os,n.VaultSecretEditSubmitToJSON=Ns,n.VaultSecretEditSubmitToJSONTyped=Ps,n.VaultSecretListPageEntryFromJSON=Cs,n.VaultSecretListPageEntryFromJSONTyped=Js,n.VaultSecretListPageEntryToJSON=Rl,n.VaultSecretListPageEntryToJSONTyped=Ds,n.VaultSecretQueryFromJSON=vl,n.VaultSecretQueryFromJSONTyped=ws,n.VaultSecretQueryToJSON=As,n.VaultSecretQueryToJSONTyped=bs,n.VoidApiResponse=Mt,n.buildEdcClient=Hf,n.canConsumeForm=Ks,n.exists=Qs,n.instanceOfAssetFilterConstraint=js,n.instanceOfAssetFilterConstraintOperator=Ys,n.instanceOfAssetListPage=ic,n.instanceOfAssetListPageFilter=dc,n.instanceOfAssetListSortProperty=oc,n.instanceOfBuildInfo=fc,n.instanceOfBusinessPartnerGroupCreateSubmit=mc,n.instanceOfBusinessPartnerGroupEditPage=gc,n.instanceOfBusinessPartnerGroupEditSubmit=Sc,n.instanceOfBusinessPartnerGroupListPageEntry=Oc,n.instanceOfBusinessPartnerGroupQuery=Pc,n.instanceOfCallbackAddressDto=wc,n.instanceOfCallbackAddressEventType=Jc,n.instanceOfCatalogFilterExpression=Ec,n.instanceOfCatalogFilterExpressionLiteral=Uc,n.instanceOfCatalogFilterExpressionLiteralType=Ac,n.instanceOfCatalogFilterExpressionOperator=Fc,n.instanceOfCatalogQuery=vc,n.instanceOfCatalogQueryV2=Bc,n.instanceOfCatalogSortBy=Vc,n.instanceOfCatalogSortByDirection=qc,n.instanceOfConnectorLimits=Zc,n.instanceOfContractAgreementCard=Tu,n.instanceOfContractAgreementDirection=zc,n.instanceOfContractAgreementPage=Ou,n.instanceOfContractAgreementPageQuery=Pu,n.instanceOfContractAgreementTerminationInfo=Xc,n.instanceOfContractAgreementTransferProcess=ru,n.instanceOfContractDefinitionEntry=_u,n.instanceOfContractDefinitionPage=Ru,n.instanceOfContractDefinitionRequest=vu,n.instanceOfContractNegotiationRequest=qu,n.instanceOfContractNegotiationSimplifiedState=Hu,n.instanceOfContractNegotiationState=Mu,n.instanceOfContractNegotiationStateResult=Zu,n.instanceOfContractTerminatedBy=Kc,n.instanceOfContractTerminationRequest=zu,n.instanceOfContractTerminationStatus=nu,n.instanceOfDashboardCxDidConfig=$u,n.instanceOfDashboardDapsConfig=Ku,n.instanceOfDashboardPage=Yu,n.instanceOfDashboardTransferAmounts=Wu,n.instanceOfDataOfferCreateRequest=Cd,n.instanceOfDataOfferPublishType=xu,n.instanceOfDataSourceAvailability=ec,n.instanceOfDataSourceType=td,n.instanceOfEdrDto=Dd,n.instanceOfIdAvailabilityResponse=Ad,n.instanceOfIdResponseDto=Id,n.instanceOfInitiateCustomTransferRequest=Fd,n.instanceOfInitiateTransferRequest=Rd,n.instanceOfKpiResult=kd,n.instanceOfNegotiateAllQuery=Ld,n.instanceOfNegotiateAllResult=Vd,n.instanceOfOperatorDto=ou,n.instanceOfPolicyDefinitionCreateDto=Md,n.instanceOfPolicyDefinitionCreateRequest=zd,n.instanceOfPolicyDefinitionDto=$d,n.instanceOfPolicyDefinitionPage=Kd,n.instanceOfTableColumnSortAssetListSortProperty=uc,n.instanceOfTransferHistoryEntry=Yd,n.instanceOfTransferHistoryPage=Xd,n.instanceOfTransferProcessSimplifiedState=xc,n.instanceOfTransferProcessState=tu,n.instanceOfTransferProcessStateResult=jd,n.instanceOfTransferProcessStatesDto=vd,n.instanceOfUiAsset=nc,n.instanceOfUiAssetCreateRequest=Pd,n.instanceOfUiAssetEditRequest=tl,n.instanceOfUiConfig=ol,n.instanceOfUiConfigFeature=nl,n.instanceOfUiConfigPreconfiguredCounterparty=al,n.instanceOfUiContractNegotiation=cl,n.instanceOfUiContractOffer=dl,n.instanceOfUiCriterion=Fu,n.instanceOfUiCriterionLiteral=Au,n.instanceOfUiCriterionLiteralType=Ju,n.instanceOfUiCriterionOperator=bu,n.instanceOfUiDataOffer=ll,n.instanceOfUiDataSinkHttpDataPush=Ol,n.instanceOfUiDataSinkHttpDataPushMethod=pl,n.instanceOfUiDataSource=Nd,n.instanceOfUiDataSourceHttpData=Td,n.instanceOfUiDataSourceHttpDataMethod=id,n.instanceOfUiDataSourceOnRequest=Od,n.instanceOfUiHttpAuth=Sd,n.instanceOfUiHttpAuthApiKey=sd,n.instanceOfUiHttpAuthBasic=cd,n.instanceOfUiHttpAuthOauth2=md,n.instanceOfUiHttpAuthType=yd,n.instanceOfUiHttpOauth2AuthType=ud,n.instanceOfUiHttpOauth2PrivateKeyAuthorization=fd,n.instanceOfUiHttpOauth2SharedSecretAuthorization=pd,n.instanceOfUiHttpPushAuth=Tl,n.instanceOfUiHttpPushAuthType=gl,n.instanceOfUiInitiateTransferRequest=Jl,n.instanceOfUiInitiateTransferType=Nl,n.instanceOfUiPolicy=Su,n.instanceOfUiPolicyConstraint=pu,n.instanceOfUiPolicyCreateRequest=Gd,n.instanceOfUiPolicyExpression=hu,n.instanceOfUiPolicyExpressionType=mu,n.instanceOfUiPolicyLiteral=fu,n.instanceOfUiPolicyLiteralType=uu,n.instanceOfVaultSecretCreateSubmit=wl,n.instanceOfVaultSecretEditPage=bl,n.instanceOfVaultSecretEditSubmit=Ul,n.instanceOfVaultSecretListPageEntry=_l,n.instanceOfVaultSecretQuery=El,n.mapValues=$s,n.querystring=lt,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=sovity-edc-client.umd.cjs.map
|