@activepieces/piece-bika 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -12
- package/src/index.js +23 -42
- package/src/index.d.ts +0 -4
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/create-record.d.ts +0 -14
- package/src/lib/actions/create-record.d.ts.map +0 -1
- package/src/lib/actions/create-record.js +0 -49
- package/src/lib/actions/create-record.js.map +0 -1
- package/src/lib/actions/delete-record.d.ts +0 -12
- package/src/lib/actions/delete-record.d.ts.map +0 -1
- package/src/lib/actions/delete-record.js +0 -38
- package/src/lib/actions/delete-record.js.map +0 -1
- package/src/lib/actions/find-record.d.ts +0 -12
- package/src/lib/actions/find-record.d.ts.map +0 -1
- package/src/lib/actions/find-record.js +0 -37
- package/src/lib/actions/find-record.js.map +0 -1
- package/src/lib/actions/find-records.d.ts +0 -14
- package/src/lib/actions/find-records.d.ts.map +0 -1
- package/src/lib/actions/find-records.js +0 -56
- package/src/lib/actions/find-records.js.map +0 -1
- package/src/lib/actions/update-record.d.ts +0 -15
- package/src/lib/actions/update-record.d.ts.map +0 -1
- package/src/lib/actions/update-record.js +0 -51
- package/src/lib/actions/update-record.js.map +0 -1
- package/src/lib/auth.d.ts +0 -4
- package/src/lib/auth.d.ts.map +0 -1
- package/src/lib/auth.js +0 -43
- package/src/lib/auth.js.map +0 -1
- package/src/lib/common/client.d.ts +0 -63
- package/src/lib/common/client.d.ts.map +0 -1
- package/src/lib/common/client.js +0 -89
- package/src/lib/common/client.js.map +0 -1
- package/src/lib/common/constants.d.ts +0 -28
- package/src/lib/common/constants.d.ts.map +0 -1
- package/src/lib/common/constants.js +0 -10
- package/src/lib/common/constants.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -17
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -233
- package/src/lib/common/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-bika",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "tsc -p tsconfig.lib.json && cp package.json dist/",
|
|
15
|
-
"lint": "eslint 'src/**/*.ts'"
|
|
16
|
-
}
|
|
6
|
+
"dependencies": {},
|
|
7
|
+
"files": [
|
|
8
|
+
"src/index.js",
|
|
9
|
+
"package.json",
|
|
10
|
+
"src/i18n"
|
|
11
|
+
]
|
|
17
12
|
}
|
package/src/index.js
CHANGED
|
@@ -1,42 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
actions: [
|
|
25
|
-
create_record_1.createRecordAction,
|
|
26
|
-
find_records_1.findRecordsAction,
|
|
27
|
-
find_record_1.findRecordAction,
|
|
28
|
-
update_record_1.updateRecordAction,
|
|
29
|
-
delete_record_1.deleteRecordAction,
|
|
30
|
-
(0, pieces_common_1.createCustomApiCallAction)({
|
|
31
|
-
baseUrl: () => 'https://bika.ai/api/openapi/bika',
|
|
32
|
-
auth: auth_1.BikaAuth,
|
|
33
|
-
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
34
|
-
return ({
|
|
35
|
-
Authorization: `Bearer ${(auth).props.token}`,
|
|
36
|
-
});
|
|
37
|
-
}),
|
|
38
|
-
}),
|
|
39
|
-
],
|
|
40
|
-
triggers: [],
|
|
41
|
-
});
|
|
42
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";var tu=Object.create;var Je=Object.defineProperty;var ru=Object.getOwnPropertyDescriptor;var nu=Object.getOwnPropertyNames;var ou=Object.getPrototypeOf,iu=Object.prototype.hasOwnProperty;var o=(e,t)=>Je(e,"name",{value:t,configurable:!0});var T=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},yn=(e,t)=>{for(var r in t)Je(e,r,{get:t[r],enumerable:!0})},hn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nu(t))!iu.call(e,i)&&i!==r&&Je(e,i,{get:()=>t[i],enumerable:!(n=ru(t,i))||n.enumerable});return e};var Ce=(e,t,r)=>(r=e!=null?tu(ou(e)):{},hn(t||!e||!e.__esModule?Je(r,"default",{value:e,enumerable:!0}):r,e)),au=e=>hn(Je({},"__esModule",{value:!0}),e);var Bo=T((jo,Ft)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},n=new RegExp("^0[0-7]+$","i"),i=new RegExp("^0x[a-f0-9]+$","i"),s="%[0-9a-z]{1,}",c="(?:[0-9a-f]+::?)+",p={zoneIndex:new RegExp(s,"i"),native:new RegExp(`^(::)?(${c})?([0-9a-f]+)?(::)?(${s})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${s})?)$`,"i"),transitional:new RegExp(`^((?:${c})|(?:::)(?:${c})?)${t}\\.${t}\\.${t}\\.${t}(${s})?$`,"i")};function f(u,d){if(u.indexOf("::")!==u.lastIndexOf("::"))return null;let g=0,m=-1,v=(u.match(p.zoneIndex)||[])[0],P,L;for(v&&(v=v.substring(1),u=u.replace(/%.+$/,""));(m=u.indexOf(":",m+1))>=0;)g++;if(u.substr(0,2)==="::"&&g--,u.substr(-2,2)==="::"&&g--,g>d)return null;for(L=d-g,P=":";L--;)P+="0:";return u=u.replace("::",P),u[0]===":"&&(u=u.slice(1)),u[u.length-1]===":"&&(u=u.slice(0,-1)),d=(function(){let re=u.split(":"),se=[];for(let Ke=0;Ke<re.length;Ke++)se.push(parseInt(re[Ke],16));return se})(),{parts:d,zoneId:v}}o(f,"expandIPv6");function h(u,d,g,m){if(u.length!==d.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let v=0,P;for(;m>0;){if(P=g-m,P<0&&(P=0),u[v]>>P!==d[v]>>P)return!1;m-=g,v+=1}return!0}o(h,"matchCIDR");function x(u){if(i.test(u))return parseInt(u,16);if(u[0]==="0"&&!isNaN(parseInt(u[1],10))){if(n.test(u))return parseInt(u,8);throw new Error(`ipaddr: cannot parse ${u} as octal`)}return parseInt(u,10)}o(x,"parseIntAuto");function I(u,d){for(;u.length<d;)u=`0${u}`;return u}o(I,"padPart");let _={};_.IPv4=(function(){function u(d){if(d.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let g,m;for(g=0;g<d.length;g++)if(m=d[g],!(0<=m&&m<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=d}return o(u,"IPv4"),u.prototype.SpecialRanges={unspecified:[[new u([0,0,0,0]),8]],broadcast:[[new u([255,255,255,255]),32]],multicast:[[new u([224,0,0,0]),4]],linkLocal:[[new u([169,254,0,0]),16]],loopback:[[new u([127,0,0,0]),8]],carrierGradeNat:[[new u([100,64,0,0]),10]],private:[[new u([10,0,0,0]),8],[new u([172,16,0,0]),12],[new u([192,168,0,0]),16]],reserved:[[new u([192,0,0,0]),24],[new u([192,0,2,0]),24],[new u([192,88,99,0]),24],[new u([198,18,0,0]),15],[new u([198,51,100,0]),24],[new u([203,0,113,0]),24],[new u([240,0,0,0]),4]],as112:[[new u([192,175,48,0]),24],[new u([192,31,196,0]),24]],amt:[[new u([192,52,193,0]),24]]},u.prototype.kind=function(){return"ipv4"},u.prototype.match=function(d,g){let m;if(g===void 0&&(m=d,d=m[0],g=m[1]),d.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return h(this.octets,d.octets,8,g)},u.prototype.prefixLengthFromSubnetMask=function(){let d=0,g=!1,m={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},v,P,L;for(v=3;v>=0;v-=1)if(P=this.octets[v],P in m){if(L=m[P],g&&L!==0)return null;L!==8&&(g=!0),d+=L}else return null;return 32-d},u.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){return this.octets.slice(0)},u.prototype.toIPv4MappedAddress=function(){return _.IPv6.parse(`::ffff:${this.toString()}`)},u.prototype.toNormalizedString=function(){return this.toString()},u.prototype.toString=function(){return this.octets.join(".")},u})(),_.IPv4.broadcastAddressFromCIDR=function(u){try{let d=this.parseCIDR(u),g=d[0].toByteArray(),m=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],P=0;for(;P<4;)v.push(parseInt(g[P],10)|parseInt(m[P],10)^255),P++;return new this(v)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.isIPv4=function(u){return this.parser(u)!==null},_.IPv4.isValid=function(u){try{return new this(this.parser(u)),!0}catch{return!1}},_.IPv4.isValidCIDR=function(u){try{return this.parseCIDR(u),!0}catch{return!1}},_.IPv4.isValidFourPartDecimal=function(u){return!!(_.IPv4.isValid(u)&&u.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},_.IPv4.isValidCIDRFourPartDecimal=function(u){let d=u.match(/^(.+)\/(\d+)$/);return!_.IPv4.isValidCIDR(u)||!d?!1:_.IPv4.isValidFourPartDecimal(d[1])},_.IPv4.networkAddressFromCIDR=function(u){let d,g,m,v,P;try{for(d=this.parseCIDR(u),m=d[0].toByteArray(),P=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],g=0;g<4;)v.push(parseInt(m[g],10)&parseInt(P[g],10)),g++;return new this(v)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.parse=function(u){let d=this.parser(u);if(d===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(d)},_.IPv4.parseCIDR=function(u){let d;if(d=u.match(/^(.+)\/(\d+)$/)){let g=parseInt(d[2]);if(g>=0&&g<=32){let m=[this.parse(d[1]),g];return Object.defineProperty(m,"toString",{value:o(function(){return this.join("/")},"value")}),m}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},_.IPv4.parser=function(u){let d,g,m;if(d=u.match(r.fourOctet))return(function(){let v=d.slice(1,6),P=[];for(let L=0;L<v.length;L++)g=v[L],P.push(x(g));return P})();if(d=u.match(r.longValue)){if(m=x(d[1]),m>4294967295||m<0)throw new Error("ipaddr: address outside defined range");return(function(){let v=[],P;for(P=0;P<=24;P+=8)v.push(m>>P&255);return v})().reverse()}else return(d=u.match(r.twoOctet))?(function(){let v=d.slice(1,4),P=[];if(m=x(v[1]),m>16777215||m<0)throw new Error("ipaddr: address outside defined range");return P.push(x(v[0])),P.push(m>>16&255),P.push(m>>8&255),P.push(m&255),P})():(d=u.match(r.threeOctet))?(function(){let v=d.slice(1,5),P=[];if(m=x(v[2]),m>65535||m<0)throw new Error("ipaddr: address outside defined range");return P.push(x(v[0])),P.push(x(v[1])),P.push(m>>8&255),P.push(m&255),P})():null},_.IPv4.subnetMaskFromPrefixLength=function(u){if(u=parseInt(u),u<0||u>32)throw new Error("ipaddr: invalid IPv4 prefix length");let d=[0,0,0,0],g=0,m=Math.floor(u/8);for(;g<m;)d[g]=255,g++;return m<4&&(d[m]=Math.pow(2,u%8)-1<<8-u%8),new this(d)},_.IPv6=(function(){function u(d,g){let m,v;if(d.length===16)for(this.parts=[],m=0;m<=14;m+=2)this.parts.push(d[m]<<8|d[m+1]);else if(d.length===8)this.parts=d;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(m=0;m<this.parts.length;m++)if(v=this.parts[m],!(0<=v&&v<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");g&&(this.zoneId=g)}return o(u,"IPv6"),u.prototype.SpecialRanges={unspecified:[new u([0,0,0,0,0,0,0,0]),128],linkLocal:[new u([65152,0,0,0,0,0,0,0]),10],multicast:[new u([65280,0,0,0,0,0,0,0]),8],loopback:[new u([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new u([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new u([0,0,0,0,0,65535,0,0]),96],discard:[new u([256,0,0,0,0,0,0,0]),64],rfc6145:[new u([0,0,0,0,65535,0,0,0]),96],rfc6052:[new u([100,65435,0,0,0,0,0,0]),96],"6to4":[new u([8194,0,0,0,0,0,0,0]),16],teredo:[new u([8193,0,0,0,0,0,0,0]),32],benchmarking:[new u([8193,2,0,0,0,0,0,0]),48],amt:[new u([8193,3,0,0,0,0,0,0]),32],as112v6:[[new u([8193,4,274,0,0,0,0,0]),48],[new u([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new u([8193,16,0,0,0,0,0,0]),28],orchid2:[new u([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new u([8193,48,0,0,0,0,0,0]),28],reserved:[[new u([8193,0,0,0,0,0,0,0]),23],[new u([8193,3512,0,0,0,0,0,0]),32]]},u.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},u.prototype.kind=function(){return"ipv6"},u.prototype.match=function(d,g){let m;if(g===void 0&&(m=d,d=m[0],g=m[1]),d.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return h(this.parts,d.parts,16,g)},u.prototype.prefixLengthFromSubnetMask=function(){let d=0,g=!1,m={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},v,P;for(let L=7;L>=0;L-=1)if(v=this.parts[L],v in m){if(P=m[v],g&&P!==0)return null;P!==16&&(g=!0),d+=P}else return null;return 128-d},u.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){let d,g=[],m=this.parts;for(let v=0;v<m.length;v++)d=m[v],g.push(d>>8),g.push(d&255);return g},u.prototype.toFixedLengthString=function(){let d=(function(){let m=[];for(let v=0;v<this.parts.length;v++)m.push(I(this.parts[v].toString(16),4));return m}).call(this).join(":"),g="";return this.zoneId&&(g=`%${this.zoneId}`),d+g},u.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let d=this.parts.slice(-2),g=d[0],m=d[1];return new _.IPv4([g>>8,g&255,m>>8,m&255])},u.prototype.toNormalizedString=function(){let d=(function(){let m=[];for(let v=0;v<this.parts.length;v++)m.push(this.parts[v].toString(16));return m}).call(this).join(":"),g="";return this.zoneId&&(g=`%${this.zoneId}`),d+g},u.prototype.toRFC5952String=function(){let d=/((^|:)(0(:|$)){2,})/g,g=this.toNormalizedString(),m=0,v=-1,P;for(;P=d.exec(g);)P[0].length>v&&(m=P.index,v=P[0].length);return v<0?g:`${g.substring(0,m)}::${g.substring(m+v)}`},u.prototype.toString=function(){return this.toRFC5952String()},u})(),_.IPv6.broadcastAddressFromCIDR=function(u){try{let d=this.parseCIDR(u),g=d[0].toByteArray(),m=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],P=0;for(;P<16;)v.push(parseInt(g[P],10)|parseInt(m[P],10)^255),P++;return new this(v)}catch(d){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${d})`)}},_.IPv6.isIPv6=function(u){return this.parser(u)!==null},_.IPv6.isValid=function(u){if(typeof u=="string"&&u.indexOf(":")===-1)return!1;try{let d=this.parser(u);return new this(d.parts,d.zoneId),!0}catch{return!1}},_.IPv6.isValidCIDR=function(u){if(typeof u=="string"&&u.indexOf(":")===-1)return!1;try{return this.parseCIDR(u),!0}catch{return!1}},_.IPv6.networkAddressFromCIDR=function(u){let d,g,m,v,P;try{for(d=this.parseCIDR(u),m=d[0].toByteArray(),P=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],g=0;g<16;)v.push(parseInt(m[g],10)&parseInt(P[g],10)),g++;return new this(v)}catch(L){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${L})`)}},_.IPv6.parse=function(u){let d=this.parser(u);if(d.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(d.parts,d.zoneId)},_.IPv6.parseCIDR=function(u){let d,g,m;if((g=u.match(/^(.+)\/(\d+)$/))&&(d=parseInt(g[2]),d>=0&&d<=128))return m=[this.parse(g[1]),d],Object.defineProperty(m,"toString",{value:o(function(){return this.join("/")},"value")}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},_.IPv6.parser=function(u){let d,g,m,v,P,L;if(m=u.match(p.deprecatedTransitional))return this.parser(`::ffff:${m[1]}`);if(p.native.test(u))return f(u,8);if((m=u.match(p.transitional))&&(L=m[6]||"",d=m[1],m[1].endsWith("::")||(d=d.slice(0,-1)),d=f(d+L,6),d.parts)){for(P=[parseInt(m[2]),parseInt(m[3]),parseInt(m[4]),parseInt(m[5])],g=0;g<P.length;g++)if(v=P[g],!(0<=v&&v<=255))return null;return d.parts.push(P[0]<<8|P[1]),d.parts.push(P[2]<<8|P[3]),{parts:d.parts,zoneId:d.zoneId}}return null},_.IPv6.subnetMaskFromPrefixLength=function(u){if(u=parseInt(u),u<0||u>128)throw new Error("ipaddr: invalid IPv6 prefix length");let d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g=0,m=Math.floor(u/8);for(;g<m;)d[g]=255,g++;return m<16&&(d[m]=Math.pow(2,u%8)-1<<8-u%8),new this(d)},_.fromByteArray=function(u){let d=u.length;if(d===4)return new _.IPv4(u);if(d===16)return new _.IPv6(u);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},_.isValid=function(u){return _.IPv6.isValid(u)||_.IPv4.isValid(u)},_.isValidCIDR=function(u){return _.IPv6.isValidCIDR(u)||_.IPv4.isValidCIDR(u)},_.parse=function(u){if(_.IPv6.isValid(u))return _.IPv6.parse(u);if(_.IPv4.isValid(u))return _.IPv4.parse(u);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},_.parseCIDR=function(u){try{return _.IPv6.parseCIDR(u)}catch{try{return _.IPv4.parseCIDR(u)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},_.process=function(u){let d=this.parse(u);return d.kind()==="ipv6"&&d.isIPv4MappedAddress()?d.toIPv4Address():d},_.subnetMatch=function(u,d,g){let m,v,P,L;g==null&&(g="unicast");for(v in d)if(Object.prototype.hasOwnProperty.call(d,v)){for(P=d[v],P[0]&&!(P[0]instanceof Array)&&(P=[P]),m=0;m<P.length;m++)if(L=P[m],u.kind()===L[0].kind()&&u.match.apply(u,L))return v}return g},typeof Ft<"u"&&Ft.exports?Ft.exports=_:e.ipaddr=_})(jo)});var Fi=T((vA,Bi)=>{var ji=require("stream").Stream,Fp=require("util");Bi.exports=pe;function pe(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}o(pe,"DelayedStream");Fp.inherits(pe,ji);pe.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var i=e.emit;return e.emit=function(){return r._handleEmit(arguments),i.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(pe.prototype,"readable",{configurable:!0,enumerable:!0,get:o(function(){return this.source.readable},"get")});pe.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};pe.prototype.resume=function(){this._released||this.release(),this.source.resume()};pe.prototype.pause=function(){this.source.pause()};pe.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};pe.prototype.pipe=function(){var e=ji.prototype.pipe.apply(this,arguments);return this.resume(),e};pe.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};pe.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var Gi=T((_A,Hi)=>{var Vp=require("util"),Zi=require("stream").Stream,Vi=Fi();Hi.exports=W;function W(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}o(W,"CombinedStream");Vp.inherits(W,Zi);W.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};W.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};W.prototype.append=function(e){var t=W.isStreamLike(e);if(t){if(!(e instanceof Vi)){var r=Vi.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};W.prototype.pipe=function(e,t){return Zi.prototype.pipe.call(this,e,t),this.resume(),e};W.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};W.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=W.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};W.prototype._pipeNext=function(e){this._currentStream=e;var t=W.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};W.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};W.prototype.write=function(e){this.emit("data",e)};W.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};W.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};W.prototype.end=function(){this._reset(),this.emit("end")};W.prototype.destroy=function(){this._reset(),this.emit("close")};W.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};W.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};W.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};W.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var qi=T((bA,Wi)=>{"use strict";Wi.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var Xi=T(te=>{"use strict";var Jt=qi(),Zp=require("path").extname,Ki=/^\s*([^;\s]*)(?:;|\s|$)/,Hp=/^text\//i;te.charset=Ji;te.charsets={lookup:Ji};te.contentType=Gp;te.extension=Wp;te.extensions=Object.create(null);te.lookup=qp;te.types=Object.create(null);Kp(te.extensions,te.types);function Ji(e){if(!e||typeof e!="string")return!1;var t=Ki.exec(e),r=t&&Jt[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&Hp.test(t[1])?"UTF-8":!1}o(Ji,"charset");function Gp(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?te.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=te.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}o(Gp,"contentType");function Wp(e){if(!e||typeof e!="string")return!1;var t=Ki.exec(e),r=t&&te.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}o(Wp,"extension");function qp(e){if(!e||typeof e!="string")return!1;var t=Zp("x."+e).toLowerCase().substr(1);return t&&te.types[t]||!1}o(qp,"lookup");function Kp(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(Jt).forEach(o(function(i){var s=Jt[i],c=s.extensions;if(!(!c||!c.length)){e[i]=c;for(var p=0;p<c.length;p++){var f=c[p];if(t[f]){var h=r.indexOf(Jt[t[f]].source),x=r.indexOf(s.source);if(t[f]!=="application/octet-stream"&&(h>x||h===x&&t[f].substr(0,12)==="application/"))continue}t[f]=i}}},"forEachMimeType"))}o(Kp,"populateMaps")});var Qi=T((TA,Yi)=>{Yi.exports=Jp;function Jp(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}o(Jp,"defer")});var Gr=T((SA,ta)=>{var ea=Qi();ta.exports=Xp;function Xp(e){var t=!1;return ea(function(){t=!0}),o(function(n,i){t?e(n,i):ea(o(function(){e(n,i)},"nextTick_callback"))},"async_callback")}o(Xp,"async")});var Wr=T((zA,ra)=>{ra.exports=Yp;function Yp(e){Object.keys(e.jobs).forEach(Qp.bind(e)),e.jobs={}}o(Yp,"abort");function Qp(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}o(Qp,"clean")});var qr=T((kA,oa)=>{var na=Gr(),el=Wr();oa.exports=tl;function tl(e,t,r,n){var i=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[i]=rl(t,i,e[i],function(s,c){i in r.jobs&&(delete r.jobs[i],s?el(r):r.results[i]=c,n(s,r.results))})}o(tl,"iterate");function rl(e,t,r,n){var i;return e.length==2?i=e(r,na(n)):i=e(r,t,na(n)),i}o(rl,"runJob")});var Kr=T((wA,ia)=>{ia.exports=nl;function nl(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(i,s){return t(e[i],e[s])}),n}o(nl,"state")});var Jr=T((DA,aa)=>{var ol=Wr(),il=Gr();aa.exports=al;function al(e){Object.keys(this.jobs).length&&(this.index=this.size,ol(this),il(e)(null,this.results))}o(al,"terminator")});var ua=T((UA,sa)=>{var sl=qr(),ul=Kr(),cl=Jr();sa.exports=pl;function pl(e,t,r){for(var n=ul(e);n.index<(n.keyedList||e).length;)sl(e,t,n,function(i,s){if(i){r(i,s);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return cl.bind(n,r)}o(pl,"parallel")});var Xr=T((LA,Xt)=>{var ca=qr(),ll=Kr(),dl=Jr();Xt.exports=ml;Xt.exports.ascending=pa;Xt.exports.descending=fl;function ml(e,t,r,n){var i=ll(e,r);return ca(e,t,i,o(function s(c,p){if(c){n(c,p);return}if(i.index++,i.index<(i.keyedList||e).length){ca(e,t,i,s);return}n(null,i.results)},"iteratorHandler")),dl.bind(i,n)}o(ml,"serialOrdered");function pa(e,t){return e<t?-1:e>t?1:0}o(pa,"ascending");function fl(e,t){return-1*pa(e,t)}o(fl,"descending")});var da=T((BA,la)=>{var gl=Xr();la.exports=yl;function yl(e,t,r){return gl(e,t,null,r)}o(yl,"serial")});var fa=T((VA,ma)=>{ma.exports={parallel:ua(),serial:da(),serialOrdered:Xr()}});var Yr=T((ZA,ga)=>{"use strict";ga.exports=Object});var ha=T((HA,ya)=>{"use strict";ya.exports=Error});var xa=T((GA,va)=>{"use strict";va.exports=EvalError});var Pa=T((WA,_a)=>{"use strict";_a.exports=RangeError});var Ia=T((qA,ba)=>{"use strict";ba.exports=ReferenceError});var Ta=T((KA,Ea)=>{"use strict";Ea.exports=SyntaxError});var Yt=T((JA,$a)=>{"use strict";$a.exports=TypeError});var Aa=T((XA,Sa)=>{"use strict";Sa.exports=URIError});var Oa=T((YA,za)=>{"use strict";za.exports=Math.abs});var Ra=T((QA,ka)=>{"use strict";ka.exports=Math.floor});var Na=T((ez,wa)=>{"use strict";wa.exports=Math.max});var Ca=T((tz,Da)=>{"use strict";Da.exports=Math.min});var Ma=T((rz,Ua)=>{"use strict";Ua.exports=Math.pow});var ja=T((nz,La)=>{"use strict";La.exports=Math.round});var Fa=T((oz,Ba)=>{"use strict";Ba.exports=Number.isNaN||o(function(t){return t!==t},"isNaN")});var Za=T((az,Va)=>{"use strict";var hl=Fa();Va.exports=o(function(t){return hl(t)||t===0?t:t<0?-1:1},"sign")});var Ga=T((uz,Ha)=>{"use strict";Ha.exports=Object.getOwnPropertyDescriptor});var Qr=T((cz,Wa)=>{"use strict";var Qt=Ga();if(Qt)try{Qt([],"length")}catch{Qt=null}Wa.exports=Qt});var Ka=T((pz,qa)=>{"use strict";var er=Object.defineProperty||!1;if(er)try{er({},"a",{value:1})}catch{er=!1}qa.exports=er});var en=T((lz,Ja)=>{"use strict";Ja.exports=o(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var c=Object.getOwnPropertySymbols(t);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,r);if(p.value!==i||p.enumerable!==!0)return!1}return!0},"hasSymbols")});var Qa=T((mz,Ya)=>{"use strict";var Xa=typeof Symbol<"u"&&Symbol,vl=en();Ya.exports=o(function(){return typeof Xa!="function"||typeof Symbol!="function"||typeof Xa("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:vl()},"hasNativeSymbols")});var tn=T((gz,es)=>{"use strict";es.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var rn=T((yz,ts)=>{"use strict";var xl=Yr();ts.exports=xl.getPrototypeOf||null});var os=T((hz,ns)=>{"use strict";var _l="Function.prototype.bind called on incompatible ",Pl=Object.prototype.toString,bl=Math.max,Il="[object Function]",rs=o(function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var s=0;s<r.length;s+=1)n[s+t.length]=r[s];return n},"concatty"),El=o(function(t,r){for(var n=[],i=r||0,s=0;i<t.length;i+=1,s+=1)n[s]=t[i];return n},"slicy"),Tl=o(function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},"joiny");ns.exports=o(function(t){var r=this;if(typeof r!="function"||Pl.apply(r)!==Il)throw new TypeError(_l+r);for(var n=El(arguments,1),i,s=o(function(){if(this instanceof i){var x=r.apply(this,rs(n,arguments));return Object(x)===x?x:this}return r.apply(t,rs(n,arguments))},"binder"),c=bl(0,r.length-n.length),p=[],f=0;f<c;f++)p[f]="$"+f;if(i=Function("binder","return function ("+Tl(p,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var h=o(function(){},"Empty");h.prototype=r.prototype,i.prototype=new h,h.prototype=null}return i},"bind")});var Ze=T((xz,is)=>{"use strict";var $l=os();is.exports=Function.prototype.bind||$l});var tr=T((_z,as)=>{"use strict";as.exports=Function.prototype.call});var nn=T((Pz,ss)=>{"use strict";ss.exports=Function.prototype.apply});var cs=T((bz,us)=>{"use strict";us.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var ls=T((Iz,ps)=>{"use strict";var Sl=Ze(),Al=nn(),zl=tr(),Ol=cs();ps.exports=Ol||Sl.call(zl,Al)});var ms=T((Ez,ds)=>{"use strict";var kl=Ze(),Rl=Yt(),wl=tr(),Nl=ls();ds.exports=o(function(t){if(t.length<1||typeof t[0]!="function")throw new Rl("a function is required");return Nl(kl,wl,t)},"callBindBasic")});var xs=T(($z,vs)=>{"use strict";var Dl=ms(),fs=Qr(),ys;try{ys=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var on=!!ys&&fs&&fs(Object.prototype,"__proto__"),hs=Object,gs=hs.getPrototypeOf;vs.exports=on&&typeof on.get=="function"?Dl([on.get]):typeof gs=="function"?o(function(t){return gs(t==null?t:hs(t))},"getDunder"):!1});var Es=T((Az,Is)=>{"use strict";var _s=tn(),Ps=rn(),bs=xs();Is.exports=_s?o(function(t){return _s(t)},"getProto"):Ps?o(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Ps(t)},"getProto"):bs?o(function(t){return bs(t)},"getProto"):null});var an=T((Oz,Ts)=>{"use strict";var Cl=Function.prototype.call,Ul=Object.prototype.hasOwnProperty,Ml=Ze();Ts.exports=Ml.call(Cl,Ul)});var Rs=T((kz,ks)=>{"use strict";var M,Ll=Yr(),jl=ha(),Bl=xa(),Fl=Pa(),Vl=Ia(),qe=Ta(),We=Yt(),Zl=Aa(),Hl=Oa(),Gl=Ra(),Wl=Na(),ql=Ca(),Kl=Ma(),Jl=ja(),Xl=Za(),zs=Function,sn=o(function(e){try{return zs('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),vt=Qr(),Yl=Ka(),un=o(function(){throw new We},"throwTypeError"),Ql=vt?(function(){try{return arguments.callee,un}catch{try{return vt(arguments,"callee").get}catch{return un}}})():un,He=Qa()(),J=Es(),ed=rn(),td=tn(),Os=nn(),xt=tr(),Ge={},rd=typeof Uint8Array>"u"||!J?M:J(Uint8Array),De={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?M:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?M:ArrayBuffer,"%ArrayIteratorPrototype%":He&&J?J([][Symbol.iterator]()):M,"%AsyncFromSyncIteratorPrototype%":M,"%AsyncFunction%":Ge,"%AsyncGenerator%":Ge,"%AsyncGeneratorFunction%":Ge,"%AsyncIteratorPrototype%":Ge,"%Atomics%":typeof Atomics>"u"?M:Atomics,"%BigInt%":typeof BigInt>"u"?M:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?M:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?M:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?M:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":jl,"%eval%":eval,"%EvalError%":Bl,"%Float16Array%":typeof Float16Array>"u"?M:Float16Array,"%Float32Array%":typeof Float32Array>"u"?M:Float32Array,"%Float64Array%":typeof Float64Array>"u"?M:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?M:FinalizationRegistry,"%Function%":zs,"%GeneratorFunction%":Ge,"%Int8Array%":typeof Int8Array>"u"?M:Int8Array,"%Int16Array%":typeof Int16Array>"u"?M:Int16Array,"%Int32Array%":typeof Int32Array>"u"?M:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":He&&J?J(J([][Symbol.iterator]())):M,"%JSON%":typeof JSON=="object"?JSON:M,"%Map%":typeof Map>"u"?M:Map,"%MapIteratorPrototype%":typeof Map>"u"||!He||!J?M:J(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Ll,"%Object.getOwnPropertyDescriptor%":vt,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?M:Promise,"%Proxy%":typeof Proxy>"u"?M:Proxy,"%RangeError%":Fl,"%ReferenceError%":Vl,"%Reflect%":typeof Reflect>"u"?M:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?M:Set,"%SetIteratorPrototype%":typeof Set>"u"||!He||!J?M:J(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?M:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":He&&J?J(""[Symbol.iterator]()):M,"%Symbol%":He?Symbol:M,"%SyntaxError%":qe,"%ThrowTypeError%":Ql,"%TypedArray%":rd,"%TypeError%":We,"%Uint8Array%":typeof Uint8Array>"u"?M:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?M:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?M:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?M:Uint32Array,"%URIError%":Zl,"%WeakMap%":typeof WeakMap>"u"?M:WeakMap,"%WeakRef%":typeof WeakRef>"u"?M:WeakRef,"%WeakSet%":typeof WeakSet>"u"?M:WeakSet,"%Function.prototype.call%":xt,"%Function.prototype.apply%":Os,"%Object.defineProperty%":Yl,"%Object.getPrototypeOf%":ed,"%Math.abs%":Hl,"%Math.floor%":Gl,"%Math.max%":Wl,"%Math.min%":ql,"%Math.pow%":Kl,"%Math.round%":Jl,"%Math.sign%":Xl,"%Reflect.getPrototypeOf%":td};if(J)try{null.error}catch(e){$s=J(J(e)),De["%Error.prototype%"]=$s}var $s,nd=o(function e(t){var r;if(t==="%AsyncFunction%")r=sn("async function () {}");else if(t==="%GeneratorFunction%")r=sn("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=sn("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&J&&(r=J(i.prototype))}return De[t]=r,r},"doEval"),Ss={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_t=Ze(),rr=an(),od=_t.call(xt,Array.prototype.concat),id=_t.call(Os,Array.prototype.splice),As=_t.call(xt,String.prototype.replace),nr=_t.call(xt,String.prototype.slice),ad=_t.call(xt,RegExp.prototype.exec),sd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ud=/\\(\\)?/g,cd=o(function(t){var r=nr(t,0,1),n=nr(t,-1);if(r==="%"&&n!=="%")throw new qe("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new qe("invalid intrinsic syntax, expected opening `%`");var i=[];return As(t,sd,function(s,c,p,f){i[i.length]=p?As(f,ud,"$1"):c||s}),i},"stringToPath"),pd=o(function(t,r){var n=t,i;if(rr(Ss,n)&&(i=Ss[n],n="%"+i[0]+"%"),rr(De,n)){var s=De[n];if(s===Ge&&(s=nd(n)),typeof s>"u"&&!r)throw new We("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new qe("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");ks.exports=o(function(t,r){if(typeof t!="string"||t.length===0)throw new We("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new We('"allowMissing" argument must be a boolean');if(ad(/^%?[^%]*%?$/,t)===null)throw new qe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=cd(t),i=n.length>0?n[0]:"",s=pd("%"+i+"%",r),c=s.name,p=s.value,f=!1,h=s.alias;h&&(i=h[0],id(n,od([0,1],h)));for(var x=1,I=!0;x<n.length;x+=1){var _=n[x],u=nr(_,0,1),d=nr(_,-1);if((u==='"'||u==="'"||u==="`"||d==='"'||d==="'"||d==="`")&&u!==d)throw new qe("property names with quotes must have matching quotes");if((_==="constructor"||!I)&&(f=!0),i+="."+_,c="%"+i+"%",rr(De,c))p=De[c];else if(p!=null){if(!(_ in p)){if(!r)throw new We("base intrinsic for "+t+" exists, but the property is not available.");return}if(vt&&x+1>=n.length){var g=vt(p,_);I=!!g,I&&"get"in g&&!("originalValue"in g.get)?p=g.get:p=p[_]}else I=rr(p,_),p=p[_];I&&!f&&(De[c]=p)}}return p},"GetIntrinsic")});var Ns=T((wz,ws)=>{"use strict";var ld=en();ws.exports=o(function(){return ld()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Us=T((Dz,Cs)=>{"use strict";var dd=Rs(),Ds=dd("%Object.defineProperty%",!0),md=Ns()(),fd=an(),gd=Yt(),or=md?Symbol.toStringTag:null;Cs.exports=o(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof i<"u"&&typeof i!="boolean")throw new gd("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");or&&(n||!fd(t,or))&&(Ds?Ds(t,or,{configurable:!i,enumerable:!1,value:r,writable:!1}):t[or]=r)},"setToStringTag")});var Ls=T((Uz,Ms)=>{"use strict";var yd=Function.prototype.call,hd=Object.prototype.hasOwnProperty,vd=Ze();Ms.exports=vd.call(yd,hd)});var Bs=T((Mz,js)=>{"use strict";js.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var Zs=T((Lz,Vs)=>{"use strict";var dn=Gi(),xd=require("util"),cn=require("path"),_d=require("http"),Pd=require("https"),bd=require("url").parse,Id=require("fs"),Ed=require("stream").Stream,Td=require("crypto"),pn=Xi(),$d=fa(),Sd=Us(),Oe=Ls(),ln=Bs();function Fs(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}o(Fs,"escapeHeaderParam");function j(e){if(!(this instanceof j))return new j(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],dn.call(this),e=e||{};for(var t in e)this[t]=e[t]}o(j,"FormData");xd.inherits(j,dn);j.LINE_BREAK=`\r
|
|
2
|
+
`;j.DEFAULT_CONTENT_TYPE="application/octet-stream";j.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=dn.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(e,t,r),s=this._multiPartFooter();n(i),n(t),n(s),this._trackLength(i,t,r)};j.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+j.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Oe(t,"httpVersion"))&&!(t instanceof Ed))&&(r.knownLength||this._valuesToMeasure.push(t))};j.prototype._lengthRetriever=function(e,t){Oe(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):Id.stat(e.path,function(r,n){if(r){t(r);return}var i=n.size-(e.start?e.start:0);t(null,i)}):Oe(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Oe(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};j.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),i=this._getContentType(t,r),s="",c={"Content-Disposition":["form-data",'name="'+Fs(e)+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};typeof r.header=="object"&&ln(c,r.header);var p;for(var f in c)if(Oe(c,f)){if(p=c[f],p==null)continue;Array.isArray(p)||(p=[p]),p.length&&(s+=f+": "+p.join("; ")+j.LINE_BREAK)}return"--"+this.getBoundary()+j.LINE_BREAK+s+j.LINE_BREAK};j.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=cn.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=cn.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Oe(e,"httpVersion")&&(r=cn.basename(e.client._httpMessage.path||"")),r)return'filename="'+Fs(r)+'"'};j.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=pn.lookup(e.name)),!r&&e&&e.path&&(r=pn.lookup(e.path)),!r&&e&&e.readable&&Oe(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=pn.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=j.DEFAULT_CONTENT_TYPE),r};j.prototype._multiPartFooter=function(){return function(e){var t=j.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};j.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+j.LINE_BREAK};j.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Oe(e,t)&&(r[t.toLowerCase()]=e[t]);return r};j.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};j.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};j.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(j.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};j.prototype._generateBoundary=function(){this._boundary="--------------------------"+Td.randomBytes(12).toString("hex")};j.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};j.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};j.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}$d.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(i){t+=i}),e(null,t)})};j.prototype.submit=function(e,t){var r,n,i={method:"post"};return typeof e=="string"?(e=bd(e),n=ln({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(n=ln(e,i),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=Pd.request(n):r=_d.request(n),this.getLength(function(s,c){if(s&&s!=="Unknown stream"){this._error(s);return}if(c&&r.setHeader("Content-Length",c),this.pipe(r),t){var p,f=o(function(h,x){return r.removeListener("error",f),r.removeListener("response",p),t.call(this,h,x)},"callback");p=f.bind(this,null),r.on("error",f),r.on("response",p)}}.bind(this)),r};j.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};j.prototype.toString=function(){return"[object FormData]"};Sd(j.prototype,"FormData");Vs.exports=j});var Ud={};yn(Ud,{bika:()=>Cd});module.exports=au(Ud);var su=Object.freeze({status:"aborted"});function b(e,t,r){function n(p,f){if(p._zod||Object.defineProperty(p,"_zod",{value:{def:f,constr:c,traits:new Set},enumerable:!1}),p._zod.traits.has(e))return;p._zod.traits.add(e),t(p,f);let h=c.prototype,x=Object.keys(h);for(let I=0;I<x.length;I++){let _=x[I];_ in p||(p[_]=h[_].bind(p))}}o(n,"init");let i=r?.Parent??Object;class s extends i{static{o(this,"Definition")}}Object.defineProperty(s,"name",{value:e});function c(p){var f;let h=r?.Parent?new s:this;n(h,p),(f=h._zod).deferred??(f.deferred=[]);for(let x of h._zod.deferred)x();return h}return o(c,"_"),Object.defineProperty(c,"init",{value:n}),Object.defineProperty(c,Symbol.hasInstance,{value:o(p=>r?.Parent&&p instanceof r.Parent?!0:p?._zod?.traits?.has(e),"value")}),Object.defineProperty(c,"name",{value:e}),c}o(b,"$constructor");var le=class extends Error{static{o(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},bt=class extends Error{static{o(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},ur={};function ge(e){return e&&Object.assign(ur,e),ur}o(ge,"config");function pr(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}o(pr,"getEnumValues");function xn(e,t){return typeof t=="bigint"?t.toString():t}o(xn,"jsonStringifyReplacer");function Et(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}o(Et,"cached");function _n(e){return e==null}o(_n,"nullish");function Tt(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}o(Tt,"cleanRegex");var vn=Symbol("evaluating");function q(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==vn)return n===void 0&&(n=vn,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}o(q,"defineLazy");var lr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Xe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}o(Xe,"isObject");var uu=Et(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Pn(e){if(Xe(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Xe(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}o(Pn,"isPlainObject");var bn=new Set(["string","number","symbol"]);function Ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(Ue,"escapeRegex");function $t(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}o($t,"clone");function V(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:o(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:o(()=>t.error,"error")}:t}o(V,"normalizeParams");function In(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}o(In,"optionalKeys");var En={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Me(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}o(Me,"aborted");function be(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}o(be,"prefixIssues");function It(e){return typeof e=="string"?e:e?.message}o(It,"unwrapMessage");function Ie(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let i=It(e.inst?._zod.def?.error?.(e))??It(t?.error?.(e))??It(r.customError?.(e))??It(r.localeError?.(e))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}o(Ie,"finalizeIssue");function Tn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}o(Tn,"getLengthableOrigin");function dr(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}o(dr,"issue");var $n=o((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xn,2),Object.defineProperty(e,"toString",{value:o(()=>e.message,"value"),enumerable:!1})},"initializer"),Sn=b("$ZodError",$n),Ye=b("$ZodError",$n,{Parent:Error});var pu=o(e=>(t,r,n,i)=>{let s=n?Object.assign(n,{async:!1}):{async:!1},c=t._zod.run({value:r,issues:[]},s);if(c instanceof Promise)throw new le;if(c.issues.length){let p=new(i?.Err??e)(c.issues.map(f=>Ie(f,s,ge())));throw lr(p,i?.callee),p}return c.value},"_parse"),St=pu(Ye),lu=o(e=>async(t,r,n,i)=>{let s=n?Object.assign(n,{async:!0}):{async:!0},c=t._zod.run({value:r,issues:[]},s);if(c instanceof Promise&&(c=await c),c.issues.length){let p=new(i?.Err??e)(c.issues.map(f=>Ie(f,s,ge())));throw lr(p,i?.callee),p}return c.value},"_parseAsync"),At=lu(Ye),du=o(e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new le;return s.issues.length?{success:!1,error:new(e??Sn)(s.issues.map(c=>Ie(c,i,ge())))}:{success:!0,data:s.value}},"_safeParse"),Qe=du(Ye),mu=o(e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},i);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(c=>Ie(c,i,ge())))}:{success:!0,data:s.value}},"_safeParseAsync"),et=mu(Ye);var fu="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",gu=new RegExp(`^${fu}$`);var An=o(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),zn=/^-?\d+n?$/,On=/^-?\d+$/,mr=/^-?\d+(?:\.\d+)?$/,kn=/^(?:true|false)$/i;var Ee=b("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),yu={number:"number",bigint:"bigint",object:"date"};var Rn=b("$ZodCheckGreaterThan",(e,t)=>{Ee.init(e,t);let r=yu[typeof t.value];e._zod.onattach.push(n=>{let i=n._zod.bag,s=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}});var wn=b("$ZodCheckNumberFormat",(e,t)=>{Ee.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,s]=En[t.format];e._zod.onattach.push(c=>{let p=c._zod.bag;p.format=t.format,p.minimum=i,p.maximum=s,r&&(p.pattern=On)}),e._zod.check=c=>{let p=c.value;if(r){if(!Number.isInteger(p)){c.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:p,inst:e});return}if(!Number.isSafeInteger(p)){p>0?c.issues.push({input:p,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):c.issues.push({input:p,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}p<i&&c.issues.push({origin:"number",input:p,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),p>s&&c.issues.push({origin:"number",input:p,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}});var Nn=b("$ZodCheckMinLength",(e,t)=>{var r;Ee.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!_n(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;if(i.length>=t.minimum)return;let c=Tn(i);n.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}});var fr=b("$ZodCheckStringFormat",(e,t)=>{var r,n;Ee.init(e,t),e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Dn=b("$ZodCheckRegex",(e,t)=>{fr.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var Un={major:4,minor:3,patch:6};var H=b("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Un;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let i of n)for(let s of i._zod.onattach)s(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=o((c,p,f)=>{let h=Me(c),x;for(let I of p){if(I._zod.def.when){if(!I._zod.def.when(c))continue}else if(h)continue;let _=c.issues.length,u=I._zod.check(c);if(u instanceof Promise&&f?.async===!1)throw new le;if(x||u instanceof Promise)x=(x??Promise.resolve()).then(async()=>{await u,c.issues.length!==_&&(h||(h=Me(c,_)))});else{if(c.issues.length===_)continue;h||(h=Me(c,_))}}return x?x.then(()=>c):c},"runChecks"),s=o((c,p,f)=>{if(Me(c))return c.aborted=!0,c;let h=i(p,n,f);if(h instanceof Promise){if(f.async===!1)throw new le;return h.then(x=>e._zod.parse(x,f))}return e._zod.parse(h,f)},"handleCanaryResult");e._zod.run=(c,p)=>{if(p.skipChecks)return e._zod.parse(c,p);if(p.direction==="backward"){let h=e._zod.parse({value:c.value,issues:[]},{...p,skipChecks:!0});return h instanceof Promise?h.then(x=>s(x,c,p)):s(h,c,p)}let f=e._zod.parse(c,p);if(f instanceof Promise){if(p.async===!1)throw new le;return f.then(h=>i(h,n,p))}return i(f,n,p)}}q(e,"~standard",()=>({validate:o(i=>{try{let s=Qe(e,i);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return et(e,i).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},"validate"),vendor:"zod",version:1}))}),kt=b("$ZodString",(e,t)=>{H.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??An(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),gr=b("$ZodStringFormat",(e,t)=>{fr.init(e,t),kt.init(e,t)});var Fn=b("$ZodURL",(e,t)=>{gr.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var yr=b("$ZodNumber",(e,t)=>{H.init(e,t),e._zod.pattern=e._zod.bag.pattern??mr,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;let s=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...s?{received:s}:{}}),r}}),Vn=b("$ZodNumberFormat",(e,t)=>{wn.init(e,t),yr.init(e,t)}),hr=b("$ZodBoolean",(e,t)=>{H.init(e,t),e._zod.pattern=kn,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),Zn=b("$ZodBigInt",(e,t)=>{H.init(e,t),e._zod.pattern=zn,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var Hn=b("$ZodAny",(e,t)=>{H.init(e,t),e._zod.parse=r=>r}),Gn=b("$ZodUnknown",(e,t)=>{H.init(e,t),e._zod.parse=r=>r});var Wn=b("$ZodVoid",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),r}}),qn=b("$ZodDate",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let i=r.value,s=i instanceof Date;return s&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...s?{received:"Invalid Date"}:{},inst:e}),r}});function Mn(e,t,r){e.issues.length&&t.issues.push(...be(r,e.issues)),t.value[r]=e.value}o(Mn,"handleArrayResult");var Kn=b("$ZodArray",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let s=[];for(let c=0;c<i.length;c++){let p=i[c],f=t.element._zod.run({value:p,issues:[]},n);f instanceof Promise?s.push(f.then(h=>Mn(h,r,c))):Mn(f,r,c)}return s.length?Promise.all(s).then(()=>r):r}});function Ot(e,t,r,n,i){if(e.issues.length){if(i&&!(r in n))return;t.issues.push(...be(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}o(Ot,"handlePropertyResult");function hu(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=In(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}o(hu,"normalizeDef");function vu(e,t,r,n,i,s){let c=[],p=i.keySet,f=i.catchall._zod,h=f.def.type,x=f.optout==="optional";for(let I in t){if(p.has(I))continue;if(h==="never"){c.push(I);continue}let _=f.run({value:t[I],issues:[]},n);_ instanceof Promise?e.push(_.then(u=>Ot(u,r,I,t,x))):Ot(_,r,I,t,x)}return c.length&&r.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:s}),e.length?Promise.all(e).then(()=>r):r}o(vu,"handleCatchall");var Jn=b("$ZodObject",(e,t)=>{if(H.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let p=t.shape;Object.defineProperty(t,"shape",{get:o(()=>{let f={...p};return Object.defineProperty(t,"shape",{value:f}),f},"get")})}let n=Et(()=>hu(t));q(e._zod,"propValues",()=>{let p=t.shape,f={};for(let h in p){let x=p[h]._zod;if(x.values){f[h]??(f[h]=new Set);for(let I of x.values)f[h].add(I)}}return f});let i=Xe,s=t.catchall,c;e._zod.parse=(p,f)=>{c??(c=n.value);let h=p.value;if(!i(h))return p.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),p;p.value={};let x=[],I=c.shape;for(let _ of c.keys){let u=I[_],d=u._zod.optout==="optional",g=u._zod.run({value:h[_],issues:[]},f);g instanceof Promise?x.push(g.then(m=>Ot(m,p,_,h,d))):Ot(g,p,_,h,d)}return s?vu(x,h,p,f,n.value,e):x.length?Promise.all(x).then(()=>p):p}});function Ln(e,t,r,n){for(let s of e)if(s.issues.length===0)return t.value=s.value,t;let i=e.filter(s=>!Me(s));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(c=>Ie(c,n,ge())))}),t)}o(Ln,"handleUnionResults");var vr=b("$ZodUnion",(e,t)=>{H.init(e,t),q(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),q(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),q(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),q(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${i.map(s=>Tt(s.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,s)=>{if(r)return n(i,s);let c=!1,p=[];for(let f of t.options){let h=f._zod.run({value:i.value,issues:[]},s);if(h instanceof Promise)p.push(h),c=!0;else{if(h.issues.length===0)return h;p.push(h)}}return c?Promise.all(p).then(f=>Ln(f,i,e,s)):Ln(p,i,e,s)}});var Xn=b("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,vr.init(e,t);let r=e._zod.parse;q(e._zod,"propValues",()=>{let i={};for(let s of t.options){let c=s._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let[p,f]of Object.entries(c)){i[p]||(i[p]=new Set);for(let h of f)i[p].add(h)}}return i});let n=Et(()=>{let i=t.options,s=new Map;for(let c of i){let p=c._zod.propValues?.[t.discriminator];if(!p||p.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);for(let f of p){if(s.has(f))throw new Error(`Duplicate discriminator value "${String(f)}"`);s.set(f,c)}}return s});e._zod.parse=(i,s)=>{let c=i.value;if(!Xe(c))return i.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),i;let p=n.value.get(c?.[t.discriminator]);return p?p._zod.run(i,s):t.unionFallback?r(i,s):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:c,path:[t.discriminator],inst:e}),i)}});var Yn=b("$ZodRecord",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Pn(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let s=[],c=t.keyType._zod.values;if(c){r.value={};let p=new Set;for(let h of c)if(typeof h=="string"||typeof h=="number"||typeof h=="symbol"){p.add(typeof h=="number"?h.toString():h);let x=t.valueType._zod.run({value:i[h],issues:[]},n);x instanceof Promise?s.push(x.then(I=>{I.issues.length&&r.issues.push(...be(h,I.issues)),r.value[h]=I.value})):(x.issues.length&&r.issues.push(...be(h,x.issues)),r.value[h]=x.value)}let f;for(let h in i)p.has(h)||(f=f??[],f.push(h));f&&f.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:f})}else{r.value={};for(let p of Reflect.ownKeys(i)){if(p==="__proto__")continue;let f=t.keyType._zod.run({value:p,issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof p=="string"&&mr.test(p)&&f.issues.length){let I=t.keyType._zod.run({value:Number(p),issues:[]},n);if(I instanceof Promise)throw new Error("Async schemas not supported in object keys currently");I.issues.length===0&&(f=I)}if(f.issues.length){t.mode==="loose"?r.value[p]=i[p]:r.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(I=>Ie(I,n,ge())),input:p,path:[p],inst:e});continue}let x=t.valueType._zod.run({value:i[p],issues:[]},n);x instanceof Promise?s.push(x.then(I=>{I.issues.length&&r.issues.push(...be(p,I.issues)),r.value[f.value]=I.value})):(x.issues.length&&r.issues.push(...be(p,x.issues)),r.value[f.value]=x.value)}}return s.length?Promise.all(s).then(()=>r):r}});var Qn=b("$ZodEnum",(e,t)=>{H.init(e,t);let r=pr(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>bn.has(typeof i)).map(i=>typeof i=="string"?Ue(i):i.toString()).join("|")})$`),e._zod.parse=(i,s)=>{let c=i.value;return n.has(c)||i.issues.push({code:"invalid_value",values:r,input:c,inst:e}),i}}),eo=b("$ZodLiteral",(e,t)=>{if(H.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Ue(n):n?Ue(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let s=n.value;return r.has(s)||n.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),n}});var to=b("$ZodTransform",(e,t)=>{H.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new bt(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(c=>(r.value=c,r));if(i instanceof Promise)throw new le;return r.value=i,r}});function jn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}o(jn,"handleOptionalResult");var ro=b("$ZodOptional",(e,t)=>{H.init(e,t),e._zod.optin="optional",e._zod.optout="optional",q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),q(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Tt(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>jn(s,r.value)):jn(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var no=b("$ZodNullable",(e,t)=>{H.init(e,t),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Tt(r.source)}|null)$`):void 0}),q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)});var oo=b("$ZodPipe",(e,t)=>{H.init(e,t),q(e._zod,"values",()=>t.in._zod.values),q(e._zod,"optin",()=>t.in._zod.optin),q(e._zod,"optout",()=>t.out._zod.optout),q(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let s=t.out._zod.run(r,n);return s instanceof Promise?s.then(c=>zt(c,t.in,n)):zt(s,t.in,n)}let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(s=>zt(s,t.out,n)):zt(i,t.out,n)}});function zt(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}o(zt,"handlePipeResult");var io=b("$ZodCustom",(e,t)=>{Ee.init(e,t),H.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(s=>Bn(s,r,n,e));Bn(i,r,n,e)}});function Bn(e,t,r,n){if(!e){let i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(dr(i))}}o(Bn,"handleRefineResult");var so;var xr=class{static{o(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function uo(){return new xr}o(uo,"registry");(so=globalThis).__zod_globalRegistry??(so.__zod_globalRegistry=uo());var _r=globalThis.__zod_globalRegistry;function co(e,t){return new e({type:"string",...V(t)})}o(co,"_string");function po(e,t){return new e({type:"string",coerce:!0,...V(t)})}o(po,"_coercedString");function lo(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...V(t)})}o(lo,"_url");function mo(e,t){return new e({type:"number",checks:[],...V(t)})}o(mo,"_number");function fo(e,t){return new e({type:"number",coerce:!0,checks:[],...V(t)})}o(fo,"_coercedNumber");function go(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...V(t)})}o(go,"_int");function yo(e,t){return new e({type:"boolean",...V(t)})}o(yo,"_boolean");function ho(e,t){return new e({type:"boolean",coerce:!0,...V(t)})}o(ho,"_coercedBoolean");function vo(e,t){return new e({type:"bigint",coerce:!0,...V(t)})}o(vo,"_coercedBigint");function xo(e){return new e({type:"any"})}o(xo,"_any");function _o(e){return new e({type:"unknown"})}o(_o,"_unknown");function Po(e,t){return new e({type:"void",...V(t)})}o(Po,"_void");function bo(e,t){return new e({type:"date",coerce:!0,...V(t)})}o(bo,"_coercedDate");function Rt(e,t){return new Rn({check:"greater_than",...V(t),value:e,inclusive:!0})}o(Rt,"_gte");function ue(e,t){return new Nn({check:"min_length",...V(t),minimum:e})}o(ue,"_minLength");function Te(e,t){return new Dn({check:"string_format",format:"regex",...V(t),pattern:e})}o(Te,"_regex");function Io(e,t,r){let n=V(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}o(Io,"_custom");var K=b("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");H.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>St(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Qe(e,r,n),e.parseAsync=async(r,n)=>At(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>et(e,r,n),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(r,n)=>$t(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.apply=r=>r(e)}),Nt=b("ZodMiniString",(e,t)=>{kt.init(e,t),K.init(e,t)});function a(e){return co(Nt,e)}o(a,"string");var Eo=b("ZodMiniStringFormat",(e,t)=>{gr.init(e,t),Nt.init(e,t)});var ku=b("ZodMiniURL",(e,t)=>{Fn.init(e,t),Eo.init(e,t)});function To(e){return lo(ku,e)}o(To,"url");var Dt=b("ZodMiniNumber",(e,t)=>{yr.init(e,t),K.init(e,t)});function ee(e){return mo(Dt,e)}o(ee,"number");var Ru=b("ZodMiniNumberFormat",(e,t)=>{Vn.init(e,t),Dt.init(e,t)});function $o(e){return go(Ru,e)}o($o,"int");var Pr=b("ZodMiniBoolean",(e,t)=>{hr.init(e,t),K.init(e,t)});function F(e){return yo(Pr,e)}o(F,"boolean");var So=b("ZodMiniBigInt",(e,t)=>{Zn.init(e,t),K.init(e,t)});var wu=b("ZodMiniAny",(e,t)=>{Hn.init(e,t),K.init(e,t)});function rt(){return xo(wu)}o(rt,"any");var Nu=b("ZodMiniUnknown",(e,t)=>{Gn.init(e,t),K.init(e,t)});function O(){return _o(Nu)}o(O,"unknown");var Du=b("ZodMiniVoid",(e,t)=>{Wn.init(e,t),K.init(e,t)});function Ao(e){return Po(Du,e)}o(Ao,"_void");var zo=b("ZodMiniDate",(e,t)=>{qn.init(e,t),K.init(e,t)});var Cu=b("ZodMiniArray",(e,t)=>{Kn.init(e,t),K.init(e,t)});function N(e,t){return new Cu({type:"array",element:e,...V(t)})}o(N,"array");var Uu=b("ZodMiniObject",(e,t)=>{Jn.init(e,t),K.init(e,t),q(e,"shape",()=>t.shape)});function l(e,t){let r={type:"object",shape:e??{},...V(t)};return new Uu(r)}o(l,"object");var Mu=b("ZodMiniUnion",(e,t)=>{vr.init(e,t),K.init(e,t)});function D(e,t){return new Mu({type:"union",options:e,...V(t)})}o(D,"union");var Lu=b("ZodMiniDiscriminatedUnion",(e,t)=>{Xn.init(e,t),K.init(e,t)});function $e(e,t,r){return new Lu({type:"union",options:t,discriminator:e,...V(r)})}o($e,"discriminatedUnion");var ju=b("ZodMiniRecord",(e,t)=>{Yn.init(e,t),K.init(e,t)});function k(e,t,r){return new ju({type:"record",keyType:e,valueType:t,...V(r)})}o(k,"record");var Bu=b("ZodMiniEnum",(e,t)=>{Qn.init(e,t),K.init(e,t),e.options=Object.values(t.entries)});function U(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Bu({type:"enum",entries:r,...V(t)})}o(U,"_enum");var Fu=b("ZodMiniLiteral",(e,t)=>{eo.init(e,t),K.init(e,t)});function $(e,t){return new Fu({type:"literal",values:Array.isArray(e)?e:[e],...V(t)})}o($,"literal");var Vu=b("ZodMiniTransform",(e,t)=>{to.init(e,t),K.init(e,t)});function Se(e){return new Vu({type:"transform",transform:e})}o(Se,"transform");var Zu=b("ZodMiniOptional",(e,t)=>{ro.init(e,t),K.init(e,t)});function y(e){return new Zu({type:"optional",innerType:e})}o(y,"optional");var Hu=b("ZodMiniNullable",(e,t)=>{no.init(e,t),K.init(e,t)});function nt(e){return new Hu({type:"nullable",innerType:e})}o(nt,"nullable");var Gu=b("ZodMiniPipe",(e,t)=>{oo.init(e,t),K.init(e,t)});function Ae(e,t){return new Gu({type:"pipe",in:e,out:t})}o(Ae,"pipe");var Wu=b("ZodMiniCustom",(e,t)=>{io.init(e,t),K.init(e,t)});function Ct(e,t){return Io(Wu,e??(()=>!0),t)}o(Ct,"custom");var ot={};yn(ot,{bigint:()=>Qu,boolean:()=>Yu,date:()=>ec,number:()=>Xu,string:()=>Ju});function Ju(e){return po(Nt,e)}o(Ju,"string");function Xu(e){return fo(Dt,e)}o(Xu,"number");function Yu(e){return ho(Pr,e)}o(Yu,"boolean");function Qu(e){return vo(So,e)}o(Qu,"bigint");function ec(e){return bo(zo,e)}o(ec,"date");var Ir=l({retryOnFailure:l({defaultValue:y(F()),hide:y(F())}),continueOnFailure:l({defaultValue:y(F()),hide:y(F())})}),br=class{constructor(t,r,n,i,s,c,p,f,h,x,I){this.name=t;this.displayName=r;this.description=n;this.props=i;this.run=s;this.test=c;this.requireAuth=p;this.errorHandlingOptions=f;this.outputSchema=h;this.audience=x;this.aiMetadata=I}static{o(this,"IAction")}},ie=o(e=>new br(e.name,e.displayName,e.description,e.props,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata),"createAction");var B=l({displayName:a(),description:y(a())}),C=o((e,t)=>l({type:$(t),required:F(),defaultValue:y(rt())}),"TPropertyValue");var ne=l({...B.shape,...C(a(),"SHORT_TEXT").shape}),ye=l({...B.shape,...C(a(),"LONG_TEXT").shape});var ko=l({label:a(),value:O()}),Ut=l({disabled:y(F()),placeholder:y(a()),options:N(ko)});var oe=l({...B.shape,options:Ut,...C(O(),"STATIC_DROPDOWN").shape}),he=l({...B.shape,options:Ut,...C(N(O()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Er=l({...B.shape,...C(O(),"DROPDOWN").shape,refreshers:N(a())}),it=l({...B.shape,...C(N(O()),"MULTI_SELECT_DROPDOWN").shape,refreshers:N(a())});var ve=l({...B.shape,...C(F(),"CHECKBOX").shape});var xe=l({...B.shape,...C(ee(),"NUMBER").shape});var at=l({...B.shape,streaming:y(F()),...C(O(),"FILE").shape});var st=l({...B.shape,...C(a(),"DATE_TIME").shape});var Ro=k(a(),D([ne,ye,oe,it,he,ve,xe,at,st])),ut=l({...B.shape,properties:Ro,...C(N(O()),"ARRAY").shape});var ct=l({...B.shape,...C(D([k(a(),O())]),"JSON").shape});var wo=D([ne,oe,ct,ut,he]),rc=k(a(),wo),Tr=l({refreshers:N(a()),...B.shape,...C(O(),"DYNAMIC").shape});var Mt=l({...B.shape,...C(Ao(),"MARKDOWN").shape});var pt=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(pt||{}),Le=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(Le||{}),je=(v=>(v.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",v.COMMUNICATION="COMMUNICATION",v.COMMERCE="COMMERCE",v.CORE="CORE",v.UNIVERSAL_AI="UNIVERSAL_AI",v.FLOW_CONTROL="FLOW_CONTROL",v.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",v.ACCOUNTING="ACCOUNTING",v.PRODUCTIVITY="PRODUCTIVITY",v.CONTENT_AND_FILES="CONTENT_AND_FILES",v.DEVELOPER_TOOLS="DEVELOPER_TOOLS",v.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",v.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",v.HUMAN_RESOURCES="HUMAN_RESOURCES",v.PAYMENT_PROCESSING="PAYMENT_PROCESSING",v.MARKETING="MARKETING",v.SALES_AND_CRM="SALES_AND_CRM",v))(je||{});var lt=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(lt||{}),$r="both_client_credentials_and_authorization_code";var ke=(i=>(i.POLLING="POLLING",i.WEBHOOK="WEBHOOK",i.APP_WEBHOOK="APP_WEBHOOK",i.MANUAL="MANUAL",i))(ke||{}),dt=(s=>(s.NONE="NONE",s.HEADER_PRESENT="HEADER_PRESENT",s.QUERY_PRESENT="QUERY_PRESENT",s.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",s.HEAD_REQUEST="HEAD_REQUEST",s))(dt||{}),nc=l({strategy:U(dt),paramName:y(a())}),mt=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(mt||{});var Lt=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Lt||{}),No=l({status:y(ee()),body:y(O()),headers:y(k(a(),a()))}),Do=l({type:$("DELAY"),resumeDateTime:a(),requestIdToReply:y(a()),handlerId:y(a()),streamStepProgress:y(U(Lt))}),Co=l({type:$("WEBHOOK"),requestId:a(),requestIdToReply:y(a()),response:No,handlerId:y(a()),streamStepProgress:y(U(Lt))}),oc=D([Do,Co]);var ic=l({body:O(),rawBody:y(O()),headers:k(a(),a()),queryParams:k(a(),a())});function ce(e){return e==null}o(ce,"isNil");function ft(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}o(ft,"isEmpty");function jt(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}o(jt,"assertNotNullOrUndefined");var Sr=Ce(require("crypto"),1);var ac=128,Re,Be,sc=o(e=>{!Re||Re.length<e?(Re=Buffer.allocUnsafe(e*ac),Sr.default.randomFillSync(Re),Be=0):Be+e>Re.length&&(Sr.default.randomFillSync(Re),Be=0),Be+=e},"fillPool"),uc=o(e=>(sc(e|=0),Re.subarray(Be-e,Be)),"random"),cc=o((e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,i=Math.ceil(1.6*n*t/e.length);return(s=t)=>{let c="";for(;;){let p=r(i),f=i;for(;f--;)if(c+=e[p[f]&n]||"",c.length===s)return c}}},"customRandom"),Mo=o((e,t=21)=>cc(e,t,uc),"customAlphabet");var pc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Lo=21,vb=a().check(Te(new RegExp(`^[0-9a-zA-Z]{${Lo}}$`))),lc=Mo(pc,Lo);var ze=Ae(Se(e=>e instanceof Date?e.toISOString():e),a()),ae={id:a(),created:ze,updated:ze},Z=o(e=>y(nt(e)),"Nullable");function Ar(e){return y(nt(U(e)))}o(Ar,"NullableEnum");var Pb=Ae(Se(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),y(F())),Bt=o(e=>Ae(Se(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),y(N(e))),"OptionalArrayFromQuery");var Eb=k(a(),O());var gt=(x=>(x.OPENAI="openai",x.OPENROUTER="openrouter",x.ANTHROPIC="anthropic",x.AZURE="azure",x.GOOGLE="google",x.ACTIVEPIECES="activepieces",x.CLOUDFLARE_GATEWAY="cloudflare-gateway",x.CUSTOM="custom",x.BEDROCK="bedrock",x.MISTRAL="mistral",x))(gt||{});var Cb=a().check(Te(/^#[0-9A-Fa-f]{6}$/));var Mb=l({filename:a(),data:O(),type:$("file"),mimetype:y(a())});var dc=Ce(Bo());var Hb=l({...ae,name:a(),permissions:N(a()),platformId:Z(a()),type:a(),userCount:y(ee())});var Fo=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(Fo||{}),zr=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(zr||{}),Or=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(Or||{});var kr=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(kr||{});var Rr=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Rr||{});var mc=l({mode:U(Fo),value:O()}),fc=l({auth:y(a()),fields:k(a(),mc)}),gc=l({pieceName:a(),pieceVersion:a(),actionName:a(),predefinedInput:y(fc)}),yc=l({type:$("PIECE"),toolName:a().check(ue(1)),pieceMetadata:gc}),hc=l({type:$("none")}),vc=l({type:$("access_token"),accessToken:a()}),xc=l({type:$("api_key"),apiKey:a(),apiKeyHeader:a()}),_c=l({type:$("headers"),headers:k(a(),a())}),Pc=$e("type",[hc,vc,xc,_c]),Vo=l({type:$("FLOW"),toolName:a().check(ue(1)),externalFlowId:a(),flowDisplayName:y(a())}),Zo=l({type:$("MCP"),toolName:a().check(ue(1)),serverUrl:To(),protocol:U(Or),auth:Pc}),Ho=l({type:$("KNOWLEDGE_BASE"),toolName:a().check(ue(1)),sourceType:U(zr),sourceId:a(),sourceName:a()}),bc=$e("type",[yc,Vo,Zo,Ho]),Ic=l({displayName:a(),description:y(a()),type:U(kr)}),Go=l({type:$("MARKDOWN"),markdown:a()}),Fe={type:$("TOOL_CALL"),input:Z(k(a(),O())),output:y(O()),toolName:a(),status:U(Rr),toolCallId:a(),startTime:a(),endTime:y(a())},bI=l(Fe),Wo=$e("toolCallType",[l({...Fe,toolCallType:$("PIECE"),pieceName:a(),pieceVersion:a(),actionName:a()}),l({...Fe,toolCallType:$("FLOW"),displayName:a(),externalFlowId:a()}),l({...Fe,toolCallType:$("MCP"),displayName:a(),serverUrl:a()}),l({...Fe,toolCallType:$("KNOWLEDGE_BASE"),displayName:a(),sourceType:a()}),l({...Fe,toolCallType:$("UNKNOWN"),displayName:a()})]),Ec=D([Go,Wo]);var wr=(r=>(r.IMAGE="image",r.TEXT="text",r))(wr||{}),_e=l({apiKey:a()}),Tc=_e,$c=l({apiKey:a(),apiKeyHash:a()}),Sc=_e,Ac=_e,zc=_e,Oc=_e,kc=_e,Rc=_e,wc=_e,Yo=l({accessKeyId:a().check(ue(1)),secretAccessKey:a().check(ue(1))}),Nc=l({}),Dc=l({}),Cc=l({}),Uc=l({}),Mc=l({}),Lc=l({}),Qo=l({modelId:a(),modelName:a(),modelType:U(wr)}),ei=l({apiKeyHeader:a(),baseUrl:a(),models:N(Qo),defaultHeaders:y(k(a(),a()))}),ti=l({accountId:a(),gatewayId:a(),models:N(Qo),vertexProject:y(a()),vertexRegion:y(a())}),ri=l({resourceName:a(),apiVersion:Ae(Se(e=>typeof e=="string"&&e.trim().length===0?void 0:e),y(a()))}),ni=l({region:a().check(ue(1))}),jc=D([Tc,zc,Oc,kc,Rc,Ac,Sc,$c,Yo,wc]),oi=D([ei,ti,ri,ni,Nc,Cc,Uc,Mc,Dc,Lc]),Bc=l({id:a(),name:a(),type:U(wr)}),Fc=l({id:a(),name:a(),provider:U(gt),config:oi,enabledForChat:F()}),Vc=l({provider:U(gt),config:oi,auth:jc,platformId:a()});var $I={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},qo=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],Zc=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],Hc=["claude-sonnet-4.6","claude-opus-4.7","claude-haiku-4.5"],Ko=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],Gc=["grok-4.20","grok-4.1-fast"],Wc={openai:qo,anthropic:Zc,google:Ko,activepieces:[...Hc.map(e=>`anthropic/${e}`),...qo.map(e=>`openai/${e}`),...Ko.map(e=>`google/${e}`),...Gc.map(e=>`x-ai/${e}`)]};var Jo=128e3,qc={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function Kc({provider:e}){return e?qc[e]??Jo:Jo}o(Kc,"getMaxContextTokens");var Xo={openai:"text-embedding-3-small",google:"text-embedding-004",azure:"text-embedding-3-small",activepieces:"text-embedding-3-small",openrouter:"openai/text-embedding-3-small"},Jc={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},Xc=new Set(["anthropic","mistral"]);function de(e){return{chatModels:Wc[e],maxContextTokens:Kc({provider:e}),defaultEmbeddingModel:Xo[e],supportsEmbedding:Xo[e]!==void 0,supportsImageGeneration:!Xc.has(e),webSearch:Jc[e]}}o(de,"buildProviderCapabilities");var Yc={openai:de("openai"),anthropic:de("anthropic"),openrouter:de("openrouter"),azure:de("azure"),google:de("google"),"cloudflare-gateway":de("cloudflare-gateway"),custom:de("custom"),bedrock:de("bedrock"),mistral:de("mistral"),activepieces:de("activepieces")};var Qc=l({base64Url:a(),fileName:a(),extension:y(a())}),ep=l({mimeType:a(),url:a(),fileName:y(a())}),Nr=D([Qc,ep]);var tp=D([l({type:$("file"),value:Nr}),l({type:$("markdown"),value:a(),files:y(N(Nr))})]),rp=l({sessionId:a(),message:a(),files:y(N(a()))});var ai=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(ai||{}),si=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(si||{}),Dr=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(Dr||{});var np=D([l({...ae,name:a(),externalId:a(),type:$("STATIC_DROPDOWN"),tableId:a(),projectId:a(),data:l({options:N(l({value:a()}))})}),l({...ae,name:a(),externalId:a(),type:D([$("TEXT"),$("NUMBER"),$("DATE")]),tableId:a(),projectId:a()})]),op=l({...ae,name:a(),folderId:Z(a()),projectId:a(),externalId:a(),status:Ar(si),trigger:Ar(ai)}),ip=l({...ae,tableId:a(),projectId:a(),cells:k(a(),l({updated:a(),created:a(),value:O(),fieldName:a()}))}),ap=l({events:N(U(Dr)),webhookUrl:a(),flowId:a()}),sp=l({fields:N(l({id:a(),name:a()})),rows:N(k(a(),a())),name:a()}),up=l({projectId:a(),limit:y(ot.number()),cursor:y(a()),name:y(a()),externalIds:Bt(a()),folderId:y(a()),folderIds:Bt(a())}),cp=l({records:N(N(l({fieldId:a(),value:ci()}))),tableId:a()}),pp=l({cells:y(N(l({fieldId:a(),value:ci()}))),tableId:a(),agentUpdate:y(F())}),ui=$e("operator",[we("eq"),we("neq"),we("gt"),we("gte"),we("lt"),we("lte"),we("co"),ii("exists"),ii("not_exists")]),lp=l({tableId:a(),limit:y(ot.number()),cursor:y(a()),filters:Bt(ui)});function ci(){return Ae(Se(e=>e==null?e:String(e)),nt(a()))}o(ci,"coerceToString");function we(e){return l({fieldId:a(),operator:$(e),value:a()})}o(we,"valueFilter");function ii(e){return l({fieldId:a(),operator:$(e)})}o(ii,"existenceFilter");var dp=l({status:y(ee()),body:y(O()),headers:y(k(a(),a()))}),mp=l({...ae,deleted:Z(ze),ownerId:a(),displayName:a(),platformId:a(),externalId:Z(a())});var pi=l({name:a(),description:y(a()),type:a(),required:F()}),fp=l({pieceName:a(),triggerName:a(),input:l({toolName:a(),toolDescription:a(),inputSchema:N(pi),returnsResponse:F()})});var li="^[0-9]+\\.[0-9]+\\.[0-9]+$",HI=new RegExp(li),yp="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",GI=a().check(Te(new RegExp(li))),WI=a().check(Te(new RegExp(yp))),hp=l({packageType:$("ARCHIVE"),pieceType:U(Le),pieceName:a(),pieceVersion:a(),archiveId:a(),platformId:a()}),di=l({packageType:$("REGISTRY"),pieceType:$("OFFICIAL"),pieceName:a(),pieceVersion:a()}),mi=l({packageType:$("REGISTRY"),pieceType:$("CUSTOM"),pieceName:a(),pieceVersion:a(),platformId:a()}),qI=D([di,mi]),KI=D([hp,di,mi]);var vp=$e("type",[l({type:$("CRON_EXPRESSION"),cronExpression:a(),timezone:a()}),l({type:$("INTERVAL"),intervalMs:$o().check(Rt(6e4))})]),JI=l({...ae,type:U(ke),projectId:a(),flowId:a(),triggerName:a(),schedule:Z(vp),flowVersionId:a(),pieceName:a(),pieceVersion:a(),deleted:Z(a()),simulate:F()}),fi=(m=>(m.UNKNOWN="UNKNOWN",m.FLOW_RUN_LOG="FLOW_RUN_LOG",m.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",m.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",m.FLOW_STEP_FILE="FLOW_STEP_FILE",m.SAMPLE_DATA="SAMPLE_DATA",m.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",m.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",m.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",m.PROJECT_RELEASE="PROJECT_RELEASE",m.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",m.PLATFORM_ASSET="PLATFORM_ASSET",m.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",m.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",m.KNOWLEDGE_BASE="KNOWLEDGE_BASE",m.FLOW_BUNDLE="FLOW_BUNDLE",m))(fi||{}),gi=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(gi||{}),yi=(r=>(r.S3="S3",r.DB="DB",r))(yi||{}),XI=l({...ae,projectId:Z(a()),platformId:Z(a()),type:U(fi),compression:U(gi),data:y(O()),location:U(yi),size:Z(ee()),fileName:Z(a()),s3Key:Z(a()),metadata:Z(k(a(),a()))}),hi=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(hi||{}),vi=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(vi||{}),YI=l({id:a(),email:a(),firstName:a(),status:U(vi),externalId:Z(a()),platformId:Z(a()),platformRole:U(hi),lastName:a(),created:ze,updated:ze,lastActiveDate:Z(ze),imageUrl:Z(a())});var Cr=l({...B.shape,...C(k(a(),O()),"OBJECT").shape});var bi=l({...B.shape,...C(a(),"COLOR").shape});var Ur=D([ne,ye,Mt,ve,oe,he,Er,it,Tr,xe,ut,Cr,ct,st,at,bi]),w={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var me=l({displayName:a(),description:y(a())});var Ii=l({username:a(),password:a()}),Mr=l({...me.shape,username:l({displayName:a(),description:y(a())}),password:l({displayName:a(),description:y(a())}),...C(Ii,"BASIC_AUTH").shape});var bp=k(a(),D([ne,ye,xe,ve,oe])),Lr=l({...me.shape,props:bp,...C(O(),"CUSTOM_AUTH").shape});var Ne=l({...me.shape,...C(l({auth:a()}),"SECRET_TEXT").shape});var Ip=k(a(),D([ne,ye,Ne,xe,ve,oe,he,Mt])),Ei=l({...me.shape,props:Ip,...C(O(),"OIDC").shape});var jr=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(jr||{}),Ti=D([ne,Ne,oe]),$i=k(a(),Ti),Ep=l({props:y(k(a(),Ti)),authUrl:a(),tokenUrl:a(),scope:N(a()),prompt:y(D([$("none"),$("consent"),$("login"),$("omit")])),pkce:y(F()),pkceMethod:y(D([$("plain"),$("S256")])),authorizationMethod:y(U(jr)),grantType:y(D([U(lt),$($r)])),extra:y(k(a(),a()))}),Si=l({access_token:a(),props:y($i),data:k(a(),rt())}),Br=l({...me.shape,...Ep.shape,...C(Si,"OAUTH2").shape});var Ve=D([Mr,Lr,Ei,Br,Ne]),yt="Connection",Vt={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||yt}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||yt,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||yt}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||yt}},None(){}};var OT={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var Tp=l({...B.shape,...C(O(),"CUSTOM").shape,code:a()});var $p=D([Ur,Ve]),Fr=k(a(),$p),JT=k(a(),Ur);var Ai=D([l({strategy:$("CRON"),cronExpression:a()}),l({strategy:$("NONE")})]);var zi="2",Zt="0.82.0";var Vr=class{constructor(t,r,n,i,s,c,p,f,h=Zt,x,I="",_){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=i;this.categories=p;this.auth=f;this.minimumSupportedRelease=h;this.maximumSupportedRelease=x;this.description=I;this.deprecated=_;this._actions={};this._triggers={};this.getContextInfo=o(()=>({version:zi}),"getContextInfo");(!Sp(h)||Ap(h,Zt))&&(this.minimumSupportedRelease=Zt),s.forEach(u=>this._actions[u.name]=u),c.forEach(u=>this._triggers[u.name]=u)}static{o(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:this.auth,minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},Oi=o(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,n,i)=>n===i.findIndex(s=>s.type===r.type)))throw new Error("Auth properties must be unique by type");return new Vr(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function Sp(e){return/^\d+\.\d+\.\d+$/.test(e)}o(Sp,"isValidSimpleSemver");function Ap(e,t){let[r,n,i]=e.split(".").map(Number),[s,c,p]=t.split(".").map(Number);return r!==s?r<s:n!==c?n<c:i<p}o(Ap,"isSemverLessThan");var zp=y(k(a(),k(a(),a()))),ki=l({id:y(a()),name:a(),displayName:a(),logoUrl:a(),description:a(),authors:N(a()),platformId:y(a()),directoryPath:y(a()),auth:y(D([Ve,N(Ve)])),version:a(),categories:y(N(U(je))),minimumSupportedRelease:y(a()),maximumSupportedRelease:y(a()),deprecated:y(F()),i18n:zp}),Op=U(["human","ai","both"]),Ri=l({description:y(a()),idempotent:y(F())}),wi=l({name:a(),displayName:a(),description:a(),props:Fr,requireAuth:F(),errorHandlingOptions:y(Ir),outputSchema:y(Ct()),audience:y(Op),aiMetadata:y(Ri)}),Ni=l({name:a(),displayName:a(),description:a(),props:Fr,errorHandlingOptions:y(Ir),type:U(ke),sampleData:O(),handshakeConfiguration:y(Ct()),renewConfiguration:y(Ai),testStrategy:U(mt),outputSchema:y(Ct()),aiMetadata:y(Ri)}),kp=l({...ki.shape,actions:k(a(),wi),triggers:k(a(),Ni)}),Rp=l({...ki.shape,actions:ee(),triggers:ee(),suggestedActions:y(N(wi)),suggestedTriggers:y(N(Ni))}),Di=l({projectUsage:ee(),pieceType:U(Le),packageType:U(pt),platformId:y(a()),archiveId:y(a())}),J$=l({...kp.shape,...Di.shape}),X$=l({...Rp.shape,...Di.shape}),Y$=l({name:a(),version:a()});var wp=Ce(require("path")),Np=Ce(require("fs/promises"));var Li=require("node:stream");var Ht=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{o(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),n=`${r.origin}${r.pathname}`,i=new URLSearchParams;return r.searchParams.forEach((s,c)=>{i.append(c,s)}),{urlWithoutQueryParams:n,queryParams:i}}getHeaders(t){let r={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,r),t.body&&(t.headers?.["Content-Type"]==="text/csv"?r["Content-Type"]="text/csv":r["Content-Type"]="application/json"),t.headers&&(r={...r,...t.headers}),r}populateAuthentication(t,r){this.authenticationConverter.convert(t,r)}};var Gt=class{static{o(this,"DelegatingAuthenticationConverter")}constructor(t=new Zr,r=new Hr){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},Zr=class{static{o(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},Hr=class{static{o(this,"BasicTokenAuthenticationConverter")}convert(t,r){let n=`${t.username}:${t.password}`,i=Buffer.from(n).toString("base64");return r.Authorization=`Basic ${i}`,r}};var ht=class extends Error{constructor(r,n){let i=n.status||500,s=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:i,body:s},request:{body:r}}));this.requestBody=r;this.status=i,this.responseBody=s}static{o(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};function Ci({error:e,requestBody:t}){return e instanceof ht?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}o(Ci,"toFailsafeOutput");var Wt=(c=>(c.GET="GET",c.POST="POST",c.PATCH="PATCH",c.PUT="PUT",c.DELETE="DELETE",c.HEAD="HEAD",c))(Wt||{});var qt=class extends Ht{static{o(this,"FetchHttpClient")}constructor(t="",r=new Gt){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:i}=this.getUrl(t),s=this.getHeaders(t),c=t.queryParams??{};for(let[L,re]of Object.entries(c))i.append(L,re);let p=i.toString(),f=p?`${n}?${p}`:n,h=t.responseType??"json",x=t.followRedirects??!0,I=t.retries??0,{body:_,extraHeaders:u,isStream:d}=Dp(t.method)?Cp(t.body,s):{body:void 0,extraHeaders:{},isStream:!1},g=Mp({...s,...u}),m=await Up(async()=>{let L=new AbortController,re=t.timeout&&t.timeout>0?setTimeout(()=>L.abort(),t.timeout):void 0;try{let se={method:t.method.toString(),headers:g,body:_,redirect:x?"follow":"manual",signal:L.signal};return d&&(se.duplex="half"),r?.dispatcher!==void 0&&(se.dispatcher=r.dispatcher),await fetch(f,se)}finally{re!==void 0&&clearTimeout(re)}},I),v=x?300:400;if(m.status<200||m.status>=v){let L=await Ui(m,h),re=new ht(t.body,{status:m.status,responseBody:L});throw console.error("[HttpClient#(sanitized error message)] Request failed:",re),re}let P=await Ui(m,h);return{status:m.status,headers:Lp(m.headers),body:P}}};function Dp(e){return e!=="GET"&&e!=="HEAD"}o(Dp,"acceptsRequestBody");function Cp(e,t){if(Bp(e))return{body:void 0,extraHeaders:{},isStream:!1};if(jp(e)){let n=new Li.PassThrough;return e.on("error",i=>n.destroy(i)),e.pipe(n),{body:n,extraHeaders:e.getHeaders(),isStream:!0}}return typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}o(Cp,"serializeBody");async function Ui(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"blob":return await e.blob();case"text":return await e.text();default:{let r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}o(Ui,"parseResponseBody");async function Up(e,t){let r;for(let n=0;n<=t;n++)try{let i=await e();if(i.status>=500&&n<t){await Mi(n);continue}return i}catch(i){if(r=i,n<t){await Mi(n);continue}throw i}throw r}o(Up,"sendWithRetries");function Mi(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}o(Mi,"backoff");function Mp(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r.toLowerCase()]=Array.isArray(n)?n.join(", "):n);return t}o(Mp,"normalizeHeaders");function Lp(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}o(Lp,"toHttpHeaders");function jp(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}o(jp,"isNodeFormData");function Bp(e){return e==null}o(Bp,"isNil");var Kt=new qt;var Ad=Ce(require("fs")),Hs=Ce(Zs());var zd={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function Od(e){let t=e.split(";")[0].trim().toLowerCase();return zd[t]??""}o(Od,"contentTypeToExtension");var kd=o(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),Rd=o((e,t)=>{let r="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??r}catch{return r}},"getBaseUrlForDescription");function Gs({auth:e,baseUrl:t,authMapping:r,description:n,displayName:i,name:s,props:c,extraProps:p,authLocation:f="headers"}){return ie({audience:"human",name:s||"custom_api_call",displayName:i||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:w.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:o(async({auth:h})=>({url:w.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
|
|
3
|
+
i.e ${Rd(t,h)}/resource or /resource`,required:!0,defaultValue:h?t(h):"",...c?.url??{}})}),"props")}),method:w.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(Wt).map(h=>({label:h,value:h}))},...c?.method??{}}),headers:w.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...c?.headers??{}}),queryParams:w.Object({displayName:"Query Parameters",required:!0,...c?.queryParams??{}}),body_type:w.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:w.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:o(async({body_type:h})=>{if(!h)return{};let x=h,I={};switch(x){case"none":break;case"json":I.data=w.Json({displayName:"JSON Body",required:!0,...c?.body??{}});break;case"raw":I.data=w.LongText({displayName:"Raw Body",required:!0});break;case"form_data":I.data=w.Array({displayName:"Form Data",required:!0,properties:{fieldName:w.ShortText({displayName:"Field Name",required:!0}),fieldType:w.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:w.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:w.File({displayName:"File Field Value",required:!1})}});break}return I},"props")}),response_is_binary:w.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:w.Checkbox({displayName:"No Error on Failure",required:!1,...c?.failsafe??{}}),timeout:w.Number({displayName:"Timeout (in seconds)",required:!1,...c?.timeout??{}}),followRedirects:w.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...p},run:o(async h=>{let{method:x,url:I,headers:_,queryParams:u,body:d,body_type:g,failsafe:m,timeout:v,response_is_binary:P,followRedirects:L}=h.propsValue;jt(x,"Method"),jt(I,"URL");let re=ce(r)?{}:await r(h.auth,h.propsValue),se=I.url,Ke=se.startsWith("http://")||se.startsWith("https://")?se:kd({baseUrl:t(h.auth),relativePath:se}),Pe={method:x,url:Ke,headers:{..._??{},...f==="headers"||!ce(f)?re:{}},queryParams:{...f==="queryParams"?re:{},...u??{}},timeout:v?v*1e3:0,followRedirects:L};if(P&&(Pe.responseType="arraybuffer"),d)if(g&&g!=="none"){let fe=d.data;if(g==="form_data"){let eu=fe,Pt=new Hs.default;for(let{fieldName:mn,fieldType:fn,textFieldValue:gn,fileFieldValue:sr}of eu)fn==="text"&&!ft(gn)?Pt.append(mn,gn):fn==="file"&&!ft(sr)&&Pt.append(mn,sr.data,{filename:sr?.filename});Pe.body=Pt,Pe.headers={...Pe.headers,...Pt.getHeaders()}}else Pe.body=fe}else g||(Pe.body=d);try{let fe=await Kt.sendRequest(Pe);return await wd(h.files,fe.body,fe.status,fe.headers,P)}catch(fe){if(m)return Ci({error:fe,requestBody:Pe.body});throw fe}},"run")})}o(Gs,"createCustomApiCallAction");var wd=o(async(e,t,r,n,i)=>{let s;if(i&&Nd(t)){let c=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],p=Od(c??"")||"txt",f;t instanceof ArrayBuffer?f=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?f=t:f=Buffer.from(t),s=await e.write({fileName:`output.${p}`,data:f})}else s=t;return{status:r,headers:n,body:s}},"handleBinaryResponse"),Nd=o(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var X=Vt.CustomAuth({required:!0,description:`
|
|
4
|
+
To obtain your Bika token, follow these steps:
|
|
5
|
+
|
|
6
|
+
1. Log in to your Bika account.
|
|
7
|
+
2. Visit https://bika.com.
|
|
8
|
+
3. Click on your profile picture (Bottom left).
|
|
9
|
+
4. Click on "My Settings".
|
|
10
|
+
5. Click on "Developer".
|
|
11
|
+
6. Click on "Generate new token".
|
|
12
|
+
7. Copy the token.
|
|
13
|
+
`,props:{token:Vt.SecretText({displayName:"Token",description:"The token of the Bika account",required:!0})},validate:o(async({auth:e})=>{try{return await Q(e).listSpaces(),{valid:!0}}catch{return{valid:!1,error:"Invalid Token."}}},"validate")});function Dd(e){return t=>{let r=e(t);return r!=null&&(typeof r!="string"||r.length>0)}}o(Dd,"emptyValueFilter");function Ws(e){let t={};return e&&Object.keys(e).filter(Dd(r=>e[r])).forEach(r=>{t[r]=e[r].toString()}),t}o(Ws,"prepareQuery");var ir=class{constructor(t,r="https://bika.ai"){this.token=t;this.bikaUrl=r}static{o(this,"BikaClient")}async makeRequest(t,r,n,i=void 0){let s=this.bikaUrl.replace(/\/$/,"");return(await Kt.sendRequest({method:t,url:`${s}/api/openapi/bika`+r,authentication:{type:"BEARER_TOKEN",token:this.token},queryParams:n,body:i})).body}async listSpaces(){return await this.makeRequest("GET","/v1/spaces")}async listDatabases(t){return await this.makeRequest("GET",`/v1/spaces/${t}/nodes`)}async getDatabaseFields(t,r){return await this.makeRequest("GET",`/v1/spaces/${t}/resources/databases/${r}/fields`)}async createRecord(t,r,n){return await this.makeRequest("POST",`/v2/spaces/${t}/resources/databases/${r}/records`,void 0,n)}async deleteRecord(t,r,n){return await this.makeRequest("DELETE",`/v2/spaces/${t}/resources/databases/${r}/records/${n}`)}async updateRecord(t,r,n,i){return await this.makeRequest("PUT",`/v2/spaces/${t}/resources/databases/${r}/records/${n}`,void 0,i)}async findRecord(t,r,n,i){return await this.makeRequest("GET",`/v2/spaces/${t}/resources/databases/${r}/records/${n}`,i)}async listRecords(t,r,n){return await this.makeRequest("GET",`/v2/spaces/${t}/resources/databases/${r}/records`,n)}};var qs=["NUMBER","RATING","CURRENCY","PERCENT"];function Q(e){return new ir(e.token)}o(Q,"makeClient");var Y={space_id:w.Dropdown({auth:X,displayName:"Space",required:!0,refreshers:[],options:o(async({auth:e})=>e?{disabled:!1,options:(await Q(e.props).listSpaces()).data.map(n=>({label:n.name,value:n.id}))}:{disabled:!0,options:[],placeholder:"Connect your account first."},"options")}),database_id:w.Dropdown({auth:X,displayName:"Database",required:!0,refreshers:["space_id"],options:o(async({auth:e,space_id:t})=>!e||!t?{disabled:!0,options:[],placeholder:"Connect your account first and select space."}:{disabled:!1,options:(await Q(e.props).listDatabases(t)).data.map(i=>({label:i.name,value:i.id}))},"options")}),fields:w.DynamicProperties({auth:X,displayName:"Fields",description:"The fields to add to the record.",required:!0,refreshers:["auth","space_id","database_id"],props:o(async({auth:e,space_id:t,database_id:r})=>{if(!e||!t||!r)return{};let i=await Q(e.props).getDatabaseFields(t,r),s={};for(let c of i.data)if(!["AUTONUMBER","CASCADER","CREATED_BY","CREATED_TIME","FORMULA","LAST_MODIFIED_BY","LAST_MODIFIED_TIME","LOOKUP"].includes(c.type))switch(c.type){case"ATTACHMENT":s[c.name]=w.File({displayName:c.name,required:!1});break;case"CHECKBOX":s[c.name]=w.Checkbox({displayName:c.name,required:!1});break;case"CURRENCY":case"NUMBER":case"PERCENT":case"RATING":s[c.name]=w.Number({displayName:c.name,required:!1});break;case"DATETIME":s[c.name]=w.DateTime({displayName:c.name,required:!1});break;case"EMAIL":case"PHONE":case"SINGLE_TEXT":case"URL":s[c.name]=w.ShortText({displayName:c.name,required:!1});break;case"LONG_TEXT":s[c.name]=w.LongText({displayName:c.name,required:!1});break;case"MULTI_SELECT":s[c.name]=w.StaticMultiSelectDropdown({displayName:c.name,required:!1,options:{options:c.property?.options?.map(p=>({label:p.name,value:p.name}))||[]}});break;case"SINGLE_SELECT":s[c.name]=w.StaticDropdown({displayName:c.name,required:!1,options:{options:c.property?.options?.map(p=>({label:p.name,value:p.name}))||[]}});break;case"MEMBER":s[c.name]=w.StaticMultiSelectDropdown({displayName:c.name,required:!1,options:{options:c.property?.options?.map(p=>({label:p.name,value:p.id}))||[]}});break;case"LINK":s[c.name]=w.Array({displayName:c.name,required:!1});break}return s},"props")})};async function ar(e,t,r,n){if(!e||!r)return n;let i={},c=await Q(e.props).getDatabaseFields(t,r);for(let p of c.data){if(["AUTONUMBER","CASCADER","CREATED_BY","CREATED_TIME","FORMULA","LAST_MODIFIED_TIME","LAST_MODIFIED_BY","LOOKUP"].includes(p.type)||!(p.name in n))continue;let f=p.name;if(qs.includes(p.type))i[f]=Number(n[f]);else if(p.type==="MEMBER")i[f]=p.property?.options?.filter(h=>h.id===`${n[f]}`);else if(["MULTI_SELECT"].includes(p.type)){if(!Array.isArray(n[f])||n[f].length===0)continue;i[f]=n[f]}else i[f]=n[f]}return i}o(ar,"createNewFields");var Ks=ie({auth:X,name:"bika_create_record",displayName:"Create Record",description:"Creates a new record in database.",audience:"both",aiMetadata:{description:"Creates a new record in a Bika.ai database table, populating its fields. Requires a space and database (table) to target; field values must match the database schema (read-only field types like formulas and autonumber are ignored). Not idempotent: each call appends a new record.",idempotent:!1},props:{space_id:Y.space_id,database_id:Y.database_id,fields:Y.fields},async run(e){let t=e.auth,r=e.propsValue.database_id,n=e.propsValue.space_id,i=e.propsValue.fields,s={},c=Object.entries(i);for(let[x,I]of c)I!==void 0&&I!==""&&(s[x]=I);let p=await ar(t,n,r,s),h=await Q(e.auth.props).createRecord(n,r,{records:[{fields:{...p}}]});if(!h.success)throw new Error(JSON.stringify(h,void 0,2));return h}});var Js=ie({auth:X,name:"bika_find_records",displayName:"Find Records",description:"Finds records in database.",audience:"both",aiMetadata:{description:"Lists records from a Bika.ai database, optionally narrowed by a filter expression (Bika filter-query-language); with no filter it returns all records up to the configured limits. Use to search or page through a table when you need multiple matching rows rather than a single known ID. Read-only and idempotent.",idempotent:!0},props:{space_id:Y.space_id,database_id:Y.database_id,maxRecords:w.Number({displayName:"Max Records",description:"How many records are returned in total.",required:!1}),pageSize:w.Number({displayName:"Page Size",description:"How many records are returned per page (max 1000).",required:!1}),filter:w.LongText({displayName:"Filter",description:"The filter to apply to the records (see https://bika.ai/help/guide/developer/filter-query-language).",required:!1})},async run(e){let t=e.propsValue.database_id,r=e.propsValue.space_id,n=e.propsValue.maxRecords,i=e.propsValue.pageSize??100,s=e.propsValue.filter,p=await Q(e.auth.props).listRecords(r,t,Ws({pageSize:i,maxRecords:n,filter:s}));if(!p.success)throw new Error(JSON.stringify(p,void 0,2));return p}});var Xs=ie({auth:X,name:"bika_find_record",displayName:"Get Record",description:"Retrieves a record in database by ID.",audience:"both",aiMetadata:{description:"Retrieves a single record from a Bika.ai database by its record ID. Use when you already know the exact record ID; to search by field values or fetch multiple rows use Find Records instead. Read-only and idempotent.",idempotent:!0},props:{space_id:Y.space_id,database_id:Y.database_id,recordId:w.ShortText({displayName:"Record ID",required:!0})},async run(e){let t=e.propsValue.database_id,r=e.propsValue.space_id,n=e.propsValue.recordId,s=await Q(e.auth.props).findRecord(r,t,n);if(!s.success)throw new Error(JSON.stringify(s,void 0,2));return s}});var Ys=ie({auth:X,name:"bika_delete_record",displayName:"Delete Record",description:"Deletes a record in database by ID.",audience:"both",aiMetadata:{description:"Deletes a single record from a Bika.ai database by its record ID, within a given space and database. Use to permanently remove a known record. Idempotent in effect: once removed, repeating the call leaves the record absent.",idempotent:!0},props:{space_id:Y.space_id,database_id:Y.database_id,recordId:w.ShortText({displayName:"Record ID",description:"The ID of the record to delete.",required:!0})},async run(e){let t=e.propsValue.database_id,r=e.propsValue.space_id,n=e.propsValue.recordId,s=await Q(e.auth.props).deleteRecord(r,t,n);if(!s.success)throw new Error(JSON.stringify(s,void 0,2));return s}});var Qs=ie({auth:X,name:"bika_update_record",displayName:"Update Record",description:"Updates an existing record in database.",audience:"both",aiMetadata:{description:"Updates the fields of an existing Bika.ai record identified by its record ID, within a given space and database. Use when modifying a known record; provide only the fields to change (read-only field types are ignored). Idempotent: repeating with the same input leaves the record in the same state.",idempotent:!0},props:{space_id:Y.space_id,database_id:Y.database_id,recordId:w.ShortText({displayName:"Record ID",description:"The ID of the record to update.",required:!0}),fields:Y.fields},async run(e){let t=e.auth,r=e.propsValue.database_id,n=e.propsValue.space_id,i=e.propsValue.recordId,s=e.propsValue.fields,c={},p=Object.entries(s);for(let[I,_]of p)_!==void 0&&_!==""&&(c[I]=_);let f=await ar(t,n,r,c),x=await Q(e.auth.props).updateRecord(n,r,i,{fields:{...f}});if(!x.success)throw new Error(JSON.stringify(x,void 0,2));return x}});var Cd=Oi({displayName:"Bika.ai",auth:X,description:"Interactive spreadsheets with collaboration",minimumSupportedRelease:"0.30.0",logoUrl:"https://cdn.activepieces.com/pieces/bika.png",categories:["PRODUCTIVITY"],authors:["codegino"],actions:[Ks,Js,Xs,Qs,Ys,Gs({baseUrl:o(()=>"https://bika.ai/api/openapi/bika","baseUrl"),auth:X,authMapping:o(async e=>({Authorization:`Bearer ${e.props.token}`}),"authMapping")})],triggers:[]});0&&(module.exports={bika});
|
|
14
|
+
/*! Bundled license information:
|
|
15
|
+
|
|
16
|
+
mime-types/index.js:
|
|
17
|
+
(*!
|
|
18
|
+
* mime-types
|
|
19
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
20
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
21
|
+
* MIT Licensed
|
|
22
|
+
*)
|
|
23
|
+
*/
|
package/src/index.d.ts
DELETED
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,IAAI;;GAyBf,CAAC"}
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAIwC;AACxC,iDAAqD;AACrD,+DAAiE;AACjE,6DAA+D;AAC/D,2DAA4D;AAC5D,+DAAgE;AAChE,+DAAiE;AAEjE,qCAAsC;AAEzB,QAAA,IAAI,GAAG,IAAA,8BAAW,EAAC;IAC9B,WAAW,EAAE,SAAS;IACtB,IAAI,EAAE,eAAQ;IACd,WAAW,EAAE,6CAA6C;IAC1D,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,8CAA8C;IACvD,UAAU,EAAE,CAAC,sBAAa,CAAC,YAAY,CAAC;IACxC,OAAO,EAAE;QACP,UAAU;KACX;IACD,OAAO,EAAE;QACP,kCAAkB;QAClB,gCAAiB;QACjB,8BAAgB;QAChB,kCAAkB;QAClB,kCAAkB;QAClB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,kCAAkC;YACjD,IAAI,EAAE,eAAQ;YACd,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE;iBAC9C,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const createRecordAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
}>, {
|
|
4
|
-
space_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
5
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
-
}>>;
|
|
7
|
-
database_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
9
|
-
}>>;
|
|
10
|
-
fields: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
12
|
-
}>>;
|
|
13
|
-
}>;
|
|
14
|
-
//# sourceMappingURL=create-record.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-record.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-record.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAqD7B,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createRecordAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
const auth_1 = require("../auth");
|
|
8
|
-
exports.createRecordAction = (0, pieces_framework_1.createAction)({
|
|
9
|
-
auth: auth_1.BikaAuth,
|
|
10
|
-
name: 'bika_create_record',
|
|
11
|
-
displayName: 'Create Record',
|
|
12
|
-
description: 'Creates a new record in database.',
|
|
13
|
-
audience: 'both',
|
|
14
|
-
aiMetadata: { description: 'Creates a new record in a Bika.ai database table, populating its fields. Requires a space and database (table) to target; field values must match the database schema (read-only field types like formulas and autonumber are ignored). Not idempotent: each call appends a new record.', idempotent: false },
|
|
15
|
-
props: {
|
|
16
|
-
space_id: common_1.BikaCommon.space_id,
|
|
17
|
-
database_id: common_1.BikaCommon.database_id,
|
|
18
|
-
fields: common_1.BikaCommon.fields,
|
|
19
|
-
},
|
|
20
|
-
run(context) {
|
|
21
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const auth = context.auth;
|
|
23
|
-
const databaseId = context.propsValue.database_id;
|
|
24
|
-
const spaceId = context.propsValue.space_id;
|
|
25
|
-
const dynamicFields = context.propsValue.fields;
|
|
26
|
-
const fields = {};
|
|
27
|
-
const props = Object.entries(dynamicFields);
|
|
28
|
-
for (const [propertyKey, propertyValue] of props) {
|
|
29
|
-
if (propertyValue !== undefined && propertyValue !== '') {
|
|
30
|
-
fields[propertyKey] = propertyValue;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const newFields = yield (0, common_1.createNewFields)(auth, spaceId, databaseId, fields);
|
|
34
|
-
const client = (0, common_1.makeClient)(context.auth.props);
|
|
35
|
-
const response = yield client.createRecord(spaceId, databaseId, {
|
|
36
|
-
records: [
|
|
37
|
-
{
|
|
38
|
-
fields: Object.assign({}, newFields),
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
});
|
|
42
|
-
if (!response.success) {
|
|
43
|
-
throw new Error(JSON.stringify(response, undefined, 2));
|
|
44
|
-
}
|
|
45
|
-
return response;
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=create-record.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-record.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-record.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,sCAAoE;AACpE,kCAAmC;AAEtB,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,eAAQ;IACd,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,yRAAyR,EAAE,UAAU,EAAE,KAAK,EAAE;IACzU,KAAK,EAAE;QACL,QAAQ,EAAE,mBAAU,CAAC,QAAQ;QAC7B,WAAW,EAAE,mBAAU,CAAC,WAAW;QACnC,MAAM,EAAE,mBAAU,CAAC,MAAM;KAC1B;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YAC1B,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;YAClD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC5C,MAAM,aAAa,GAAsB,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;YACnE,MAAM,MAAM,GAER,EAAE,CAAC;YAEP,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;YAC5C,KAAK,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,IAAI,KAAK,EAAE,CAAC;gBACjD,IAAI,aAAa,KAAK,SAAS,IAAI,aAAa,KAAK,EAAE,EAAE,CAAC;oBACxD,MAAM,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC;gBACtC,CAAC;YACH,CAAC;YAED,MAAM,SAAS,GAA4B,MAAM,IAAA,wBAAe,EAC9D,IAAI,EACJ,OAAO,EACP,UAAU,EACV,MAAM,CACP,CAAC;YAEF,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAAI,CAAC,KAAK,CACnB,CAAC;YACF,MAAM,QAAQ,GAAQ,MAAM,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,EAAG;gBACpE,OAAO,EAAE;oBACP;wBACE,MAAM,oBACD,SAAS,CACb;qBACF;iBACF;aACF,CAAC,CAAC;YAEH,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const deleteRecordAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
}>, {
|
|
4
|
-
space_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
5
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
-
}>>;
|
|
7
|
-
database_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
9
|
-
}>>;
|
|
10
|
-
recordId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=delete-record.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-record.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-record.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;;;;;;;;EAoC7B,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteRecordAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
const auth_1 = require("../auth");
|
|
8
|
-
exports.deleteRecordAction = (0, pieces_framework_1.createAction)({
|
|
9
|
-
auth: auth_1.BikaAuth,
|
|
10
|
-
name: 'bika_delete_record',
|
|
11
|
-
displayName: 'Delete Record',
|
|
12
|
-
description: 'Deletes a record in database by ID.',
|
|
13
|
-
audience: 'both',
|
|
14
|
-
aiMetadata: { description: 'Deletes a single record from a Bika.ai database by its record ID, within a given space and database. Use to permanently remove a known record. Idempotent in effect: once removed, repeating the call leaves the record absent.', idempotent: true },
|
|
15
|
-
props: {
|
|
16
|
-
space_id: common_1.BikaCommon.space_id,
|
|
17
|
-
database_id: common_1.BikaCommon.database_id,
|
|
18
|
-
recordId: pieces_framework_1.Property.ShortText({
|
|
19
|
-
displayName: 'Record ID',
|
|
20
|
-
description: 'The ID of the record to delete.',
|
|
21
|
-
required: true,
|
|
22
|
-
}),
|
|
23
|
-
},
|
|
24
|
-
run(context) {
|
|
25
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
const databaseId = context.propsValue.database_id;
|
|
27
|
-
const spaceId = context.propsValue.space_id;
|
|
28
|
-
const recordId = context.propsValue.recordId;
|
|
29
|
-
const client = (0, common_1.makeClient)(context.auth.props);
|
|
30
|
-
const response = yield client.deleteRecord(spaceId, databaseId, recordId);
|
|
31
|
-
if (!response.success) {
|
|
32
|
-
throw new Error(JSON.stringify(response, undefined, 2));
|
|
33
|
-
}
|
|
34
|
-
return response;
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=delete-record.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-record.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-record.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,sCAAmD;AACnD,kCAAmC;AAEtB,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,eAAQ;IACd,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,iOAAiO,EAAE,UAAU,EAAE,IAAI,EAAE;IAChR,KAAK,EAAE;QACL,QAAQ,EAAE,mBAAU,CAAC,QAAQ;QAC7B,WAAW,EAAE,mBAAU,CAAC,WAAW;QACjC,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;YAClD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC5C,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAE7C,MAAM,MAAM,GAAG,IAAA,mBAAU,EACvB,OAAO,CAAC,IAAI,CAAC,KAAK,CACnB,CAAC;YAEF,MAAM,QAAQ,GAAQ,MAAM,MAAM,CAAC,YAAY,CAC7C,OAAO,EACP,UAAU,EACV,QAAQ,CACT,CAAC;YAEF,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const findRecordAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
}>, {
|
|
4
|
-
space_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
5
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
-
}>>;
|
|
7
|
-
database_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
-
token: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
9
|
-
}>>;
|
|
10
|
-
recordId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=find-record.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-record.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-record.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;;;;;;;;;;EAmC3B,CAAC"}
|