@activepieces/piece-digital-pilot 0.1.4 → 0.1.6
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 -22
- package/src/index.js +1 -23
- package/README.md +0 -7
- package/src/index.d.ts +0 -2
- package/src/index.js.map +0 -1
- package/src/lib/actions/add-target-account.d.ts +0 -5
- package/src/lib/actions/add-target-account.js +0 -33
- package/src/lib/actions/add-target-account.js.map +0 -1
- package/src/lib/actions/index.d.ts +0 -2
- package/src/lib/actions/index.js +0 -8
- package/src/lib/actions/index.js.map +0 -1
- package/src/lib/actions/remove-target-account.d.ts +0 -5
- package/src/lib/actions/remove-target-account.js +0 -33
- package/src/lib/actions/remove-target-account.js.map +0 -1
- package/src/lib/common/client.d.ts +0 -12
- package/src/lib/common/client.js +0 -185
- package/src/lib/common/client.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -2
- package/src/lib/common/index.js +0 -9
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/common/props.d.ts +0 -2
- package/src/lib/common/props.js +0 -15
- package/src/lib/common/props.js.map +0 -1
- package/src/lib/triggers/new-high-intent-visit.d.ts +0 -10
- package/src/lib/triggers/new-high-intent-visit.js +0 -47
- package/src/lib/triggers/new-high-intent-visit.js.map +0 -1
- package/src/lib/triggers/new-target-account-visit.d.ts +0 -10
- package/src/lib/triggers/new-target-account-visit.js +0 -51
- package/src/lib/triggers/new-target-account-visit.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-digital-pilot",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
"deepmerge-ts": "7.1.0",
|
|
13
|
-
"form-data": "4.0.4",
|
|
14
|
-
"mime-types": "2.1.35",
|
|
15
|
-
"nanoid": "3.3.8",
|
|
16
|
-
"semver": "7.6.0",
|
|
17
|
-
"socket.io-client": "4.8.1",
|
|
18
|
-
"tslib": "^2.3.0",
|
|
19
|
-
"zod": "4.1.13",
|
|
20
|
-
"@activepieces/pieces-common": "0.11.6",
|
|
21
|
-
"@activepieces/pieces-framework": "0.25.4",
|
|
22
|
-
"@activepieces/shared": "0.37.0"
|
|
23
|
-
},
|
|
24
|
-
"resolutions": {
|
|
25
|
-
"rollup": "npm:@rollup/wasm-node"
|
|
26
|
-
}
|
|
6
|
+
"dependencies": {},
|
|
7
|
+
"files": [
|
|
8
|
+
"src/index.js",
|
|
9
|
+
"package.json",
|
|
10
|
+
"src/i18n"
|
|
11
|
+
]
|
|
27
12
|
}
|
package/src/index.js
CHANGED
|
@@ -1,23 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.digitalPilot = exports.digitalPilotAuth = void 0;
|
|
4
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
-
const add_target_account_1 = require("./lib/actions/add-target-account");
|
|
6
|
-
const remove_target_account_1 = require("./lib/actions/remove-target-account");
|
|
7
|
-
const new_high_intent_visit_1 = require("./lib/triggers/new-high-intent-visit");
|
|
8
|
-
const new_target_account_visit_1 = require("./lib/triggers/new-target-account-visit");
|
|
9
|
-
exports.digitalPilotAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
10
|
-
displayName: 'API Key',
|
|
11
|
-
description: 'Enter your DigitalPilot API key',
|
|
12
|
-
required: true,
|
|
13
|
-
});
|
|
14
|
-
exports.digitalPilot = (0, pieces_framework_1.createPiece)({
|
|
15
|
-
displayName: 'DigitalPilot',
|
|
16
|
-
auth: exports.digitalPilotAuth,
|
|
17
|
-
minimumSupportedRelease: '0.36.1',
|
|
18
|
-
logoUrl: 'https://cdn.activepieces.com/pieces/digital-pilot.png',
|
|
19
|
-
authors: ["onyedikachi-david"],
|
|
20
|
-
actions: [add_target_account_1.addTargetAccountAction, remove_target_account_1.removeTargetAccountAction],
|
|
21
|
-
triggers: [new_high_intent_visit_1.newHighIntentVisitTrigger, new_target_account_visit_1.newTargetAccountVisitTrigger],
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";var Oo=Object.create;var ke=Object.defineProperty;var wo=Object.getOwnPropertyDescriptor;var Ro=Object.getOwnPropertyNames;var Do=Object.getPrototypeOf,No=Object.prototype.hasOwnProperty;var i=(e,t)=>ke(e,"name",{value:t,configurable:!0});var Co=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mr=(e,t)=>{for(var r in t)ke(e,r,{get:t[r],enumerable:!0})},fr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ro(t))!No.call(e,a)&&a!==r&&ke(e,a,{get:()=>t[a],enumerable:!(o=wo(t,a))||o.enumerable});return e};var Qe=(e,t,r)=>(r=e!=null?Oo(Do(e)):{},fr(t||!e||!e.__esModule?ke(r,"default",{value:e,enumerable:!0}):r,e)),Uo=e=>fr(ke({},"__esModule",{value:!0}),e);var wn=Co((On,vt)=>{(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")},o=new RegExp("^0[0-7]+$","i"),a=new RegExp("^0x[a-f0-9]+$","i"),l="%[0-9a-z]{1,}",p="(?:[0-9a-f]+::?)+",m={zoneIndex:new RegExp(l,"i"),native:new RegExp(`^(::)?(${p})?([0-9a-f]+)?(::)?(${l})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${l})?)$`,"i"),transitional:new RegExp(`^((?:${p})|(?:::)(?:${p})?)${t}\\.${t}\\.${t}\\.${t}(${l})?$`,"i")};function x(s,c){if(s.indexOf("::")!==s.lastIndexOf("::"))return null;let g=0,d=-1,y=(s.match(m.zoneIndex)||[])[0],h,C;for(y&&(y=y.substring(1),s=s.replace(/%.+$/,""));(d=s.indexOf(":",d+1))>=0;)g++;if(s.substr(0,2)==="::"&&g--,s.substr(-2,2)==="::"&&g--,g>c)return null;for(C=c-g,h=":";C--;)h+="0:";return s=s.replace("::",h),s[0]===":"&&(s=s.slice(1)),s[s.length-1]===":"&&(s=s.slice(0,-1)),c=function(){let X=s.split(":"),_e=[];for(let Et=0;Et<X.length;Et++)_e.push(parseInt(X[Et],16));return _e}(),{parts:c,zoneId:y}}i(x,"expandIPv6");function _(s,c,g,d){if(s.length!==c.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let y=0,h;for(;d>0;){if(h=g-d,h<0&&(h=0),s[y]>>h!==c[y]>>h)return!1;d-=g,y+=1}return!0}i(_,"matchCIDR");function P(s){if(a.test(s))return parseInt(s,16);if(s[0]==="0"&&!isNaN(parseInt(s[1],10))){if(o.test(s))return parseInt(s,8);throw new Error(`ipaddr: cannot parse ${s} as octal`)}return parseInt(s,10)}i(P,"parseIntAuto");function N(s,c){for(;s.length<c;)s=`0${s}`;return s}i(N,"padPart");let v={};v.IPv4=function(){function s(c){if(c.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let g,d;for(g=0;g<c.length;g++)if(d=c[g],!(0<=d&&d<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=c}return i(s,"IPv4"),s.prototype.SpecialRanges={unspecified:[[new s([0,0,0,0]),8]],broadcast:[[new s([255,255,255,255]),32]],multicast:[[new s([224,0,0,0]),4]],linkLocal:[[new s([169,254,0,0]),16]],loopback:[[new s([127,0,0,0]),8]],carrierGradeNat:[[new s([100,64,0,0]),10]],private:[[new s([10,0,0,0]),8],[new s([172,16,0,0]),12],[new s([192,168,0,0]),16]],reserved:[[new s([192,0,0,0]),24],[new s([192,0,2,0]),24],[new s([192,88,99,0]),24],[new s([198,18,0,0]),15],[new s([198,51,100,0]),24],[new s([203,0,113,0]),24],[new s([240,0,0,0]),4]],as112:[[new s([192,175,48,0]),24],[new s([192,31,196,0]),24]],amt:[[new s([192,52,193,0]),24]]},s.prototype.kind=function(){return"ipv4"},s.prototype.match=function(c,g){let d;if(g===void 0&&(d=c,c=d[0],g=d[1]),c.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return _(this.octets,c.octets,8,g)},s.prototype.prefixLengthFromSubnetMask=function(){let c=0,g=!1,d={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},y,h,C;for(y=3;y>=0;y-=1)if(h=this.octets[y],h in d){if(C=d[h],g&&C!==0)return null;C!==8&&(g=!0),c+=C}else return null;return 32-c},s.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},s.prototype.toByteArray=function(){return this.octets.slice(0)},s.prototype.toIPv4MappedAddress=function(){return v.IPv6.parse(`::ffff:${this.toString()}`)},s.prototype.toNormalizedString=function(){return this.toString()},s.prototype.toString=function(){return this.octets.join(".")},s}(),v.IPv4.broadcastAddressFromCIDR=function(s){try{let c=this.parseCIDR(s),g=c[0].toByteArray(),d=this.subnetMaskFromPrefixLength(c[1]).toByteArray(),y=[],h=0;for(;h<4;)y.push(parseInt(g[h],10)|parseInt(d[h],10)^255),h++;return new this(y)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.isIPv4=function(s){return this.parser(s)!==null},v.IPv4.isValid=function(s){try{return new this(this.parser(s)),!0}catch{return!1}},v.IPv4.isValidCIDR=function(s){try{return this.parseCIDR(s),!0}catch{return!1}},v.IPv4.isValidFourPartDecimal=function(s){return!!(v.IPv4.isValid(s)&&s.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},v.IPv4.isValidCIDRFourPartDecimal=function(s){let c=s.match(/^(.+)\/(\d+)$/);return!v.IPv4.isValidCIDR(s)||!c?!1:v.IPv4.isValidFourPartDecimal(c[1])},v.IPv4.networkAddressFromCIDR=function(s){let c,g,d,y,h;try{for(c=this.parseCIDR(s),d=c[0].toByteArray(),h=this.subnetMaskFromPrefixLength(c[1]).toByteArray(),y=[],g=0;g<4;)y.push(parseInt(d[g],10)&parseInt(h[g],10)),g++;return new this(y)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.parse=function(s){let c=this.parser(s);if(c===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(c)},v.IPv4.parseCIDR=function(s){let c;if(c=s.match(/^(.+)\/(\d+)$/)){let g=parseInt(c[2]);if(g>=0&&g<=32){let d=[this.parse(c[1]),g];return Object.defineProperty(d,"toString",{value:i(function(){return this.join("/")},"value")}),d}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},v.IPv4.parser=function(s){let c,g,d;if(c=s.match(r.fourOctet))return function(){let y=c.slice(1,6),h=[];for(let C=0;C<y.length;C++)g=y[C],h.push(P(g));return h}();if(c=s.match(r.longValue)){if(d=P(c[1]),d>4294967295||d<0)throw new Error("ipaddr: address outside defined range");return function(){let y=[],h;for(h=0;h<=24;h+=8)y.push(d>>h&255);return y}().reverse()}else return(c=s.match(r.twoOctet))?function(){let y=c.slice(1,4),h=[];if(d=P(y[1]),d>16777215||d<0)throw new Error("ipaddr: address outside defined range");return h.push(P(y[0])),h.push(d>>16&255),h.push(d>>8&255),h.push(d&255),h}():(c=s.match(r.threeOctet))?function(){let y=c.slice(1,5),h=[];if(d=P(y[2]),d>65535||d<0)throw new Error("ipaddr: address outside defined range");return h.push(P(y[0])),h.push(P(y[1])),h.push(d>>8&255),h.push(d&255),h}():null},v.IPv4.subnetMaskFromPrefixLength=function(s){if(s=parseInt(s),s<0||s>32)throw new Error("ipaddr: invalid IPv4 prefix length");let c=[0,0,0,0],g=0,d=Math.floor(s/8);for(;g<d;)c[g]=255,g++;return d<4&&(c[d]=Math.pow(2,s%8)-1<<8-s%8),new this(c)},v.IPv6=function(){function s(c,g){let d,y;if(c.length===16)for(this.parts=[],d=0;d<=14;d+=2)this.parts.push(c[d]<<8|c[d+1]);else if(c.length===8)this.parts=c;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(d=0;d<this.parts.length;d++)if(y=this.parts[d],!(0<=y&&y<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");g&&(this.zoneId=g)}return i(s,"IPv6"),s.prototype.SpecialRanges={unspecified:[new s([0,0,0,0,0,0,0,0]),128],linkLocal:[new s([65152,0,0,0,0,0,0,0]),10],multicast:[new s([65280,0,0,0,0,0,0,0]),8],loopback:[new s([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new s([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new s([0,0,0,0,0,65535,0,0]),96],discard:[new s([256,0,0,0,0,0,0,0]),64],rfc6145:[new s([0,0,0,0,65535,0,0,0]),96],rfc6052:[new s([100,65435,0,0,0,0,0,0]),96],"6to4":[new s([8194,0,0,0,0,0,0,0]),16],teredo:[new s([8193,0,0,0,0,0,0,0]),32],benchmarking:[new s([8193,2,0,0,0,0,0,0]),48],amt:[new s([8193,3,0,0,0,0,0,0]),32],as112v6:[[new s([8193,4,274,0,0,0,0,0]),48],[new s([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new s([8193,16,0,0,0,0,0,0]),28],orchid2:[new s([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new s([8193,48,0,0,0,0,0,0]),28],reserved:[[new s([8193,0,0,0,0,0,0,0]),23],[new s([8193,3512,0,0,0,0,0,0]),32]]},s.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},s.prototype.kind=function(){return"ipv6"},s.prototype.match=function(c,g){let d;if(g===void 0&&(d=c,c=d[0],g=d[1]),c.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return _(this.parts,c.parts,16,g)},s.prototype.prefixLengthFromSubnetMask=function(){let c=0,g=!1,d={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},y,h;for(let C=7;C>=0;C-=1)if(y=this.parts[C],y in d){if(h=d[y],g&&h!==0)return null;h!==16&&(g=!0),c+=h}else return null;return 128-c},s.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},s.prototype.toByteArray=function(){let c,g=[],d=this.parts;for(let y=0;y<d.length;y++)c=d[y],g.push(c>>8),g.push(c&255);return g},s.prototype.toFixedLengthString=function(){let c=function(){let d=[];for(let y=0;y<this.parts.length;y++)d.push(N(this.parts[y].toString(16),4));return d}.call(this).join(":"),g="";return this.zoneId&&(g=`%${this.zoneId}`),c+g},s.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let c=this.parts.slice(-2),g=c[0],d=c[1];return new v.IPv4([g>>8,g&255,d>>8,d&255])},s.prototype.toNormalizedString=function(){let c=function(){let d=[];for(let y=0;y<this.parts.length;y++)d.push(this.parts[y].toString(16));return d}.call(this).join(":"),g="";return this.zoneId&&(g=`%${this.zoneId}`),c+g},s.prototype.toRFC5952String=function(){let c=/((^|:)(0(:|$)){2,})/g,g=this.toNormalizedString(),d=0,y=-1,h;for(;h=c.exec(g);)h[0].length>y&&(d=h.index,y=h[0].length);return y<0?g:`${g.substring(0,d)}::${g.substring(d+y)}`},s.prototype.toString=function(){return this.toRFC5952String()},s}(),v.IPv6.broadcastAddressFromCIDR=function(s){try{let c=this.parseCIDR(s),g=c[0].toByteArray(),d=this.subnetMaskFromPrefixLength(c[1]).toByteArray(),y=[],h=0;for(;h<16;)y.push(parseInt(g[h],10)|parseInt(d[h],10)^255),h++;return new this(y)}catch(c){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${c})`)}},v.IPv6.isIPv6=function(s){return this.parser(s)!==null},v.IPv6.isValid=function(s){if(typeof s=="string"&&s.indexOf(":")===-1)return!1;try{let c=this.parser(s);return new this(c.parts,c.zoneId),!0}catch{return!1}},v.IPv6.isValidCIDR=function(s){if(typeof s=="string"&&s.indexOf(":")===-1)return!1;try{return this.parseCIDR(s),!0}catch{return!1}},v.IPv6.networkAddressFromCIDR=function(s){let c,g,d,y,h;try{for(c=this.parseCIDR(s),d=c[0].toByteArray(),h=this.subnetMaskFromPrefixLength(c[1]).toByteArray(),y=[],g=0;g<16;)y.push(parseInt(d[g],10)&parseInt(h[g],10)),g++;return new this(y)}catch(C){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${C})`)}},v.IPv6.parse=function(s){let c=this.parser(s);if(c.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(c.parts,c.zoneId)},v.IPv6.parseCIDR=function(s){let c,g,d;if((g=s.match(/^(.+)\/(\d+)$/))&&(c=parseInt(g[2]),c>=0&&c<=128))return d=[this.parse(g[1]),c],Object.defineProperty(d,"toString",{value:i(function(){return this.join("/")},"value")}),d;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},v.IPv6.parser=function(s){let c,g,d,y,h,C;if(d=s.match(m.deprecatedTransitional))return this.parser(`::ffff:${d[1]}`);if(m.native.test(s))return x(s,8);if((d=s.match(m.transitional))&&(C=d[6]||"",c=d[1],d[1].endsWith("::")||(c=c.slice(0,-1)),c=x(c+C,6),c.parts)){for(h=[parseInt(d[2]),parseInt(d[3]),parseInt(d[4]),parseInt(d[5])],g=0;g<h.length;g++)if(y=h[g],!(0<=y&&y<=255))return null;return c.parts.push(h[0]<<8|h[1]),c.parts.push(h[2]<<8|h[3]),{parts:c.parts,zoneId:c.zoneId}}return null},v.IPv6.subnetMaskFromPrefixLength=function(s){if(s=parseInt(s),s<0||s>128)throw new Error("ipaddr: invalid IPv6 prefix length");let c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g=0,d=Math.floor(s/8);for(;g<d;)c[g]=255,g++;return d<16&&(c[d]=Math.pow(2,s%8)-1<<8-s%8),new this(c)},v.fromByteArray=function(s){let c=s.length;if(c===4)return new v.IPv4(s);if(c===16)return new v.IPv6(s);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},v.isValid=function(s){return v.IPv6.isValid(s)||v.IPv4.isValid(s)},v.isValidCIDR=function(s){return v.IPv6.isValidCIDR(s)||v.IPv4.isValidCIDR(s)},v.parse=function(s){if(v.IPv6.isValid(s))return v.IPv6.parse(s);if(v.IPv4.isValid(s))return v.IPv4.parse(s);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},v.parseCIDR=function(s){try{return v.IPv6.parseCIDR(s)}catch{try{return v.IPv4.parseCIDR(s)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},v.process=function(s){let c=this.parse(s);return c.kind()==="ipv6"&&c.isIPv4MappedAddress()?c.toIPv4Address():c},v.subnetMatch=function(s,c,g){let d,y,h,C;g==null&&(g="unicast");for(y in c)if(Object.prototype.hasOwnProperty.call(c,y)){for(h=c[y],h[0]&&!(h[0]instanceof Array)&&(h=[h]),d=0;d<h.length;d++)if(C=h[d],s.kind()===C[0].kind()&&s.match.apply(s,C))return y}return g},typeof vt<"u"&&vt.exports?vt.exports=v:e.ipaddr=v})(On)});var fs={};mr(fs,{digitalPilot:()=>ms});module.exports=Uo(fs);var Mo=Object.freeze({status:"aborted"});function I(e,t,r){function o(m,x){if(m._zod||Object.defineProperty(m,"_zod",{value:{def:x,constr:p,traits:new Set},enumerable:!1}),m._zod.traits.has(e))return;m._zod.traits.add(e),t(m,x);let _=p.prototype,P=Object.keys(_);for(let N=0;N<P.length;N++){let v=P[N];v in m||(m[v]=_[v].bind(m))}}i(o,"init");let a=r?.Parent??Object;class l extends a{static{i(this,"Definition")}}Object.defineProperty(l,"name",{value:e});function p(m){var x;let _=r?.Parent?new l:this;o(_,m),(x=_._zod).deferred??(x.deferred=[]);for(let P of _._zod.deferred)P();return _}return i(p,"_"),Object.defineProperty(p,"init",{value:o}),Object.defineProperty(p,Symbol.hasInstance,{value:i(m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e),"value")}),Object.defineProperty(p,"name",{value:e}),p}i(I,"$constructor");var jo=Symbol("zod_brand"),Y=class extends Error{static{i(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},et=class extends Error{static{i(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},zt={};function te(e){return e&&Object.assign(zt,e),zt}i(te,"config");function At(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,a])=>t.indexOf(+o)===-1).map(([o,a])=>a)}i(At,"getEnumValues");function yr(e,t){return typeof t=="bigint"?t.toString():t}i(yr,"jsonStringifyReplacer");function rt(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}i(rt,"cached");function hr(e){return e==null}i(hr,"nullish");function nt(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}i(nt,"cleanRegex");var gr=Symbol("evaluating");function B(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==gr)return o===void 0&&(o=gr,o=r()),o},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}i(B,"defineLazy");var kt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Oe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(Oe,"isObject");var Lo=rt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function vr(e){if(Oe(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Oe(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}i(vr,"isPlainObject");var xr=new Set(["string","number","symbol"]);function Pe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}i(Pe,"escapeRegex");function ot(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}i(ot,"clone");function L(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:i(()=>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:i(()=>t.error,"error")}:t}i(L,"normalizeParams");function _r(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}i(_r,"optionalKeys");var Zo={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 Ie(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}i(Ie,"aborted");function ce(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}i(ce,"prefixIssues");function tt(e){return typeof e=="string"?e:e?.message}i(tt,"unwrapMessage");function le(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let a=tt(e.inst?._zod.def?.error?.(e))??tt(t?.error?.(e))??tt(r.customError?.(e))??tt(r.localeError?.(e))??"Invalid input";o.message=a}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}i(le,"finalizeIssue");function Pr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}i(Pr,"getLengthableOrigin");function Ot(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}i(Ot,"issue");var Ir=i((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,yr,2),Object.defineProperty(e,"toString",{value:i(()=>e.message,"value"),enumerable:!1})},"initializer"),br=I("$ZodError",Ir),we=I("$ZodError",Ir,{Parent:Error});var Bo=i(e=>(t,r,o,a)=>{let l=o?Object.assign(o,{async:!1}):{async:!1},p=t._zod.run({value:r,issues:[]},l);if(p instanceof Promise)throw new Y;if(p.issues.length){let m=new(a?.Err??e)(p.issues.map(x=>le(x,l,te())));throw kt(m,a?.callee),m}return p.value},"_parse"),it=Bo(we),Vo=i(e=>async(t,r,o,a)=>{let l=o?Object.assign(o,{async:!0}):{async:!0},p=t._zod.run({value:r,issues:[]},l);if(p instanceof Promise&&(p=await p),p.issues.length){let m=new(a?.Err??e)(p.issues.map(x=>le(x,l,te())));throw kt(m,a?.callee),m}return p.value},"_parseAsync"),at=Vo(we),Ho=i(e=>(t,r,o)=>{let a=o?{...o,async:!1}:{async:!1},l=t._zod.run({value:r,issues:[]},a);if(l instanceof Promise)throw new Y;return l.issues.length?{success:!1,error:new(e??br)(l.issues.map(p=>le(p,a,te())))}:{success:!0,data:l.value}},"_safeParse"),Re=Ho(we),Wo=i(e=>async(t,r,o)=>{let a=o?Object.assign(o,{async:!0}):{async:!0},l=t._zod.run({value:r,issues:[]},a);return l instanceof Promise&&(l=await l),l.issues.length?{success:!1,error:new e(l.issues.map(p=>le(p,a,te())))}:{success:!0,data:l.value}},"_safeParseAsync"),De=Wo(we);var Go="(?:(?:\\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])))",Ko=new RegExp(`^${Go}$`);var Tr=i(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),$r=/^-?\d+n?$/;var wt=/^-?\d+(?:\.\d+)?$/,Er=/^(?:true|false)$/i;var be=I("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var zr=I("$ZodCheckMinLength",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let a=o.value;return!hr(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{let a=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let a=o.value;if(a.length>=t.minimum)return;let p=Pr(a);o.issues.push({origin:p,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}});var Rt=I("$ZodCheckStringFormat",(e,t)=>{var r,o;be.init(e,t),e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,t.pattern&&(l.patterns??(l.patterns=new Set),l.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Sr=I("$ZodCheckRegex",(e,t)=>{Rt.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 kr={major:4,minor:3,patch:6};var Z=I("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kr;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let a of o)for(let l of a._zod.onattach)l(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let a=i((p,m,x)=>{let _=Ie(p),P;for(let N of m){if(N._zod.def.when){if(!N._zod.def.when(p))continue}else if(_)continue;let v=p.issues.length,s=N._zod.check(p);if(s instanceof Promise&&x?.async===!1)throw new Y;if(P||s instanceof Promise)P=(P??Promise.resolve()).then(async()=>{await s,p.issues.length!==v&&(_||(_=Ie(p,v)))});else{if(p.issues.length===v)continue;_||(_=Ie(p,v))}}return P?P.then(()=>p):p},"runChecks"),l=i((p,m,x)=>{if(Ie(p))return p.aborted=!0,p;let _=a(m,o,x);if(_ instanceof Promise){if(x.async===!1)throw new Y;return _.then(P=>e._zod.parse(P,x))}return e._zod.parse(_,x)},"handleCanaryResult");e._zod.run=(p,m)=>{if(m.skipChecks)return e._zod.parse(p,m);if(m.direction==="backward"){let _=e._zod.parse({value:p.value,issues:[]},{...m,skipChecks:!0});return _ instanceof Promise?_.then(P=>l(P,p,m)):l(_,p,m)}let x=e._zod.parse(p,m);if(x instanceof Promise){if(m.async===!1)throw new Y;return x.then(_=>a(_,o,m))}return a(x,o,m)}}B(e,"~standard",()=>({validate:i(a=>{try{let l=Re(e,a);return l.success?{value:l.data}:{issues:l.error?.issues}}catch{return De(e,a).then(p=>p.success?{value:p.data}:{issues:p.error?.issues})}},"validate"),vendor:"zod",version:1}))}),ct=I("$ZodString",(e,t)=>{Z.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Tr(e._zod.bag),e._zod.parse=(r,o)=>{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}}),Dt=I("$ZodStringFormat",(e,t)=>{Rt.init(e,t),ct.init(e,t)});var Nr=I("$ZodURL",(e,t)=>{Dt.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),a=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.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(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.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=a.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var Cr=I("$ZodNumber",(e,t)=>{Z.init(e,t),e._zod.pattern=e._zod.bag.pattern??wt,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let a=r.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return r;let l=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...l?{received:l}:{}}),r}});var Nt=I("$ZodBoolean",(e,t)=>{Z.init(e,t),e._zod.pattern=Er,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let a=r.value;return typeof a=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),r}}),Ur=I("$ZodBigInt",(e,t)=>{Z.init(e,t),e._zod.pattern=$r,e._zod.parse=(r,o)=>{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 Mr=I("$ZodAny",(e,t)=>{Z.init(e,t),e._zod.parse=r=>r}),jr=I("$ZodUnknown",(e,t)=>{Z.init(e,t),e._zod.parse=r=>r});var Lr=I("$ZodVoid",(e,t)=>{Z.init(e,t),e._zod.parse=(r,o)=>{let a=r.value;return typeof a>"u"||r.issues.push({expected:"void",code:"invalid_type",input:a,inst:e}),r}}),Zr=I("$ZodDate",(e,t)=>{Z.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let a=r.value,l=a instanceof Date;return l&&!Number.isNaN(a.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:a,...l?{received:"Invalid Date"}:{},inst:e}),r}});function Or(e,t,r){e.issues.length&&t.issues.push(...ce(r,e.issues)),t.value[r]=e.value}i(Or,"handleArrayResult");var Fr=I("$ZodArray",(e,t)=>{Z.init(e,t),e._zod.parse=(r,o)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),r;r.value=Array(a.length);let l=[];for(let p=0;p<a.length;p++){let m=a[p],x=t.element._zod.run({value:m,issues:[]},o);x instanceof Promise?l.push(x.then(_=>Or(_,r,p))):Or(x,r,p)}return l.length?Promise.all(l).then(()=>r):r}});function ut(e,t,r,o,a){if(e.issues.length){if(a&&!(r in o))return;t.issues.push(...ce(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}i(ut,"handlePropertyResult");function Jo(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=_r(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}i(Jo,"normalizeDef");function qo(e,t,r,o,a,l){let p=[],m=a.keySet,x=a.catchall._zod,_=x.def.type,P=x.optout==="optional";for(let N in t){if(m.has(N))continue;if(_==="never"){p.push(N);continue}let v=x.run({value:t[N],issues:[]},o);v instanceof Promise?e.push(v.then(s=>ut(s,r,N,t,P))):ut(v,r,N,t,P)}return p.length&&r.issues.push({code:"unrecognized_keys",keys:p,input:t,inst:l}),e.length?Promise.all(e).then(()=>r):r}i(qo,"handleCatchall");var Br=I("$ZodObject",(e,t)=>{if(Z.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let m=t.shape;Object.defineProperty(t,"shape",{get:i(()=>{let x={...m};return Object.defineProperty(t,"shape",{value:x}),x},"get")})}let o=rt(()=>Jo(t));B(e._zod,"propValues",()=>{let m=t.shape,x={};for(let _ in m){let P=m[_]._zod;if(P.values){x[_]??(x[_]=new Set);for(let N of P.values)x[_].add(N)}}return x});let a=Oe,l=t.catchall,p;e._zod.parse=(m,x)=>{p??(p=o.value);let _=m.value;if(!a(_))return m.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),m;m.value={};let P=[],N=p.shape;for(let v of p.keys){let s=N[v],c=s._zod.optout==="optional",g=s._zod.run({value:_[v],issues:[]},x);g instanceof Promise?P.push(g.then(d=>ut(d,m,v,_,c))):ut(g,m,v,_,c)}return l?qo(P,_,m,x,o.value,e):P.length?Promise.all(P).then(()=>m):m}});function wr(e,t,r,o){for(let l of e)if(l.issues.length===0)return t.value=l.value,t;let a=e.filter(l=>!Ie(l));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(l=>l.issues.map(p=>le(p,o,te())))}),t)}i(wr,"handleUnionResults");var Ct=I("$ZodUnion",(e,t)=>{Z.init(e,t),B(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),B(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),B(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),B(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){let a=t.options.map(l=>l._zod.pattern);return new RegExp(`^(${a.map(l=>nt(l.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(a,l)=>{if(r)return o(a,l);let p=!1,m=[];for(let x of t.options){let _=x._zod.run({value:a.value,issues:[]},l);if(_ instanceof Promise)m.push(_),p=!0;else{if(_.issues.length===0)return _;m.push(_)}}return p?Promise.all(m).then(x=>wr(x,a,e,l)):wr(m,a,e,l)}});var Vr=I("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ct.init(e,t);let r=e._zod.parse;B(e._zod,"propValues",()=>{let a={};for(let l of t.options){let p=l._zod.propValues;if(!p||Object.keys(p).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(let[m,x]of Object.entries(p)){a[m]||(a[m]=new Set);for(let _ of x)a[m].add(_)}}return a});let o=rt(()=>{let a=t.options,l=new Map;for(let p of a){let m=p._zod.propValues?.[t.discriminator];if(!m||m.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(p)}"`);for(let x of m){if(l.has(x))throw new Error(`Duplicate discriminator value "${String(x)}"`);l.set(x,p)}}return l});e._zod.parse=(a,l)=>{let p=a.value;if(!Oe(p))return a.issues.push({code:"invalid_type",expected:"object",input:p,inst:e}),a;let m=o.value.get(p?.[t.discriminator]);return m?m._zod.run(a,l):t.unionFallback?r(a,l):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:p,path:[t.discriminator],inst:e}),a)}});var Hr=I("$ZodRecord",(e,t)=>{Z.init(e,t),e._zod.parse=(r,o)=>{let a=r.value;if(!vr(a))return r.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),r;let l=[],p=t.keyType._zod.values;if(p){r.value={};let m=new Set;for(let _ of p)if(typeof _=="string"||typeof _=="number"||typeof _=="symbol"){m.add(typeof _=="number"?_.toString():_);let P=t.valueType._zod.run({value:a[_],issues:[]},o);P instanceof Promise?l.push(P.then(N=>{N.issues.length&&r.issues.push(...ce(_,N.issues)),r.value[_]=N.value})):(P.issues.length&&r.issues.push(...ce(_,P.issues)),r.value[_]=P.value)}let x;for(let _ in a)m.has(_)||(x=x??[],x.push(_));x&&x.length>0&&r.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:x})}else{r.value={};for(let m of Reflect.ownKeys(a)){if(m==="__proto__")continue;let x=t.keyType._zod.run({value:m,issues:[]},o);if(x instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof m=="string"&&wt.test(m)&&x.issues.length){let N=t.keyType._zod.run({value:Number(m),issues:[]},o);if(N instanceof Promise)throw new Error("Async schemas not supported in object keys currently");N.issues.length===0&&(x=N)}if(x.issues.length){t.mode==="loose"?r.value[m]=a[m]:r.issues.push({code:"invalid_key",origin:"record",issues:x.issues.map(N=>le(N,o,te())),input:m,path:[m],inst:e});continue}let P=t.valueType._zod.run({value:a[m],issues:[]},o);P instanceof Promise?l.push(P.then(N=>{N.issues.length&&r.issues.push(...ce(m,N.issues)),r.value[x.value]=N.value})):(P.issues.length&&r.issues.push(...ce(m,P.issues)),r.value[x.value]=P.value)}}return l.length?Promise.all(l).then(()=>r):r}});var Wr=I("$ZodEnum",(e,t)=>{Z.init(e,t);let r=At(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(a=>xr.has(typeof a)).map(a=>typeof a=="string"?Pe(a):a.toString()).join("|")})$`),e._zod.parse=(a,l)=>{let p=a.value;return o.has(p)||a.issues.push({code:"invalid_value",values:r,input:p,inst:e}),a}}),Gr=I("$ZodLiteral",(e,t)=>{if(Z.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(o=>typeof o=="string"?Pe(o):o?Pe(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,a)=>{let l=o.value;return r.has(l)||o.issues.push({code:"invalid_value",values:t.values,input:l,inst:e}),o}});var Kr=I("$ZodTransform",(e,t)=>{Z.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new et(e.constructor.name);let a=t.transform(r.value,r);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(p=>(r.value=p,r));if(a instanceof Promise)throw new Y;return r.value=a,r}});function Rr(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}i(Rr,"handleOptionalResult");var Jr=I("$ZodOptional",(e,t)=>{Z.init(e,t),e._zod.optin="optional",e._zod.optout="optional",B(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),B(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${nt(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let a=t.innerType._zod.run(r,o);return a instanceof Promise?a.then(l=>Rr(l,r.value)):Rr(a,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}});var qr=I("$ZodNullable",(e,t)=>{Z.init(e,t),B(e._zod,"optin",()=>t.innerType._zod.optin),B(e._zod,"optout",()=>t.innerType._zod.optout),B(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${nt(r.source)}|null)$`):void 0}),B(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)});var Xr=I("$ZodPipe",(e,t)=>{Z.init(e,t),B(e._zod,"values",()=>t.in._zod.values),B(e._zod,"optin",()=>t.in._zod.optin),B(e._zod,"optout",()=>t.out._zod.optout),B(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let l=t.out._zod.run(r,o);return l instanceof Promise?l.then(p=>st(p,t.in,o)):st(l,t.in,o)}let a=t.in._zod.run(r,o);return a instanceof Promise?a.then(l=>st(l,t.out,o)):st(a,t.out,o)}});function st(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}i(st,"handlePipeResult");var Yr=I("$ZodCustom",(e,t)=>{be.init(e,t),Z.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,a=t.fn(o);if(a instanceof Promise)return a.then(l=>Dr(l,r,o,e));Dr(a,r,o,e)}});function Dr(e,t,r,o){if(!e){let a={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(a.params=o._zod.def.params),t.issues.push(Ot(a))}}i(Dr,"handleRefineResult");var en,ei=Symbol("ZodOutput"),ti=Symbol("ZodInput"),Ut=class{static{i(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.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 o={...this.get(r)??{}};delete o.id;let a={...o,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function tn(){return new Ut}i(tn,"registry");(en=globalThis).__zod_globalRegistry??(en.__zod_globalRegistry=tn());var Mt=globalThis.__zod_globalRegistry;function rn(e,t){return new e({type:"string",...L(t)})}i(rn,"_string");function nn(e,t){return new e({type:"string",coerce:!0,...L(t)})}i(nn,"_coercedString");function on(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...L(t)})}i(on,"_url");function an(e,t){return new e({type:"number",checks:[],...L(t)})}i(an,"_number");function sn(e,t){return new e({type:"number",coerce:!0,checks:[],...L(t)})}i(sn,"_coercedNumber");function un(e,t){return new e({type:"boolean",...L(t)})}i(un,"_boolean");function cn(e,t){return new e({type:"boolean",coerce:!0,...L(t)})}i(cn,"_coercedBoolean");function ln(e,t){return new e({type:"bigint",coerce:!0,...L(t)})}i(ln,"_coercedBigint");function pn(e){return new e({type:"any"})}i(pn,"_any");function dn(e){return new e({type:"unknown"})}i(dn,"_unknown");function mn(e,t){return new e({type:"void",...L(t)})}i(mn,"_void");function fn(e,t){return new e({type:"date",coerce:!0,...L(t)})}i(fn,"_coercedDate");function J(e,t){return new zr({check:"min_length",...L(t),minimum:e})}i(J,"_minLength");function pe(e,t){return new Sr({check:"string_format",format:"regex",...L(t),pattern:e})}i(pe,"_regex");function gn(e,t,r){let o=L(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}i(gn,"_custom");var V=I("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");Z.init(e,t),e.def=t,e.type=t.type,e.parse=(r,o)=>it(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Re(e,r,o),e.parseAsync=async(r,o)=>at(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>De(e,r,o),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),e.with=e.check,e.clone=(r,o)=>ot(e,r,o),e.brand=()=>e,e.register=(r,o)=>(r.add(e,o),e),e.apply=r=>r(e)}),pt=I("ZodMiniString",(e,t)=>{ct.init(e,t),V.init(e,t)});function n(e){return rn(pt,e)}i(n,"string");var yn=I("ZodMiniStringFormat",(e,t)=>{Dt.init(e,t),pt.init(e,t)});var pi=I("ZodMiniURL",(e,t)=>{Nr.init(e,t),yn.init(e,t)});function hn(e){return on(pi,e)}i(hn,"url");var jt=I("ZodMiniNumber",(e,t)=>{Cr.init(e,t),V.init(e,t)});function H(e){return an(jt,e)}i(H,"number");var Lt=I("ZodMiniBoolean",(e,t)=>{Nt.init(e,t),V.init(e,t)});function M(e){return un(Lt,e)}i(M,"boolean");var vn=I("ZodMiniBigInt",(e,t)=>{Ur.init(e,t),V.init(e,t)});var di=I("ZodMiniAny",(e,t)=>{Mr.init(e,t),V.init(e,t)});function Ce(){return pn(di)}i(Ce,"any");var mi=I("ZodMiniUnknown",(e,t)=>{jr.init(e,t),V.init(e,t)});function S(){return dn(mi)}i(S,"unknown");var fi=I("ZodMiniVoid",(e,t)=>{Lr.init(e,t),V.init(e,t)});function xn(e){return mn(fi,e)}i(xn,"_void");var _n=I("ZodMiniDate",(e,t)=>{Zr.init(e,t),V.init(e,t)});var gi=I("ZodMiniArray",(e,t)=>{Fr.init(e,t),V.init(e,t)});function O(e,t){return new gi({type:"array",element:e,...L(t)})}i(O,"array");var yi=I("ZodMiniObject",(e,t)=>{Br.init(e,t),V.init(e,t),B(e,"shape",()=>t.shape)});function u(e,t){let r={type:"object",shape:e??{},...L(t)};return new yi(r)}i(u,"object");var hi=I("ZodMiniUnion",(e,t)=>{Ct.init(e,t),V.init(e,t)});function w(e,t){return new hi({type:"union",options:e,...L(t)})}i(w,"union");var vi=I("ZodMiniDiscriminatedUnion",(e,t)=>{Vr.init(e,t),V.init(e,t)});function Te(e,t,r){return new vi({type:"union",options:t,discriminator:e,...L(r)})}i(Te,"discriminatedUnion");var xi=I("ZodMiniRecord",(e,t)=>{Hr.init(e,t),V.init(e,t)});function A(e,t,r){return new xi({type:"record",keyType:e,valueType:t,...L(r)})}i(A,"record");var _i=I("ZodMiniEnum",(e,t)=>{Wr.init(e,t),V.init(e,t),e.options=Object.values(t.entries)});function D(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new _i({type:"enum",entries:r,...L(t)})}i(D,"_enum");var Pi=I("ZodMiniLiteral",(e,t)=>{Gr.init(e,t),V.init(e,t)});function T(e,t){return new Pi({type:"literal",values:Array.isArray(e)?e:[e],...L(t)})}i(T,"literal");var Ii=I("ZodMiniTransform",(e,t)=>{Kr.init(e,t),V.init(e,t)});function de(e){return new Ii({type:"transform",transform:e})}i(de,"transform");var bi=I("ZodMiniOptional",(e,t)=>{Jr.init(e,t),V.init(e,t)});function f(e){return new bi({type:"optional",innerType:e})}i(f,"optional");var Ti=I("ZodMiniNullable",(e,t)=>{qr.init(e,t),V.init(e,t)});function Ue(e){return new Ti({type:"nullable",innerType:e})}i(Ue,"nullable");var $i=I("ZodMiniPipe",(e,t)=>{Xr.init(e,t),V.init(e,t)});function me(e,t){return new $i({type:"pipe",in:e,out:t})}i(me,"pipe");var Ei=I("ZodMiniCustom",(e,t)=>{Yr.init(e,t),V.init(e,t)});function dt(e,t){return gn(Ei,e??(()=>!0),t)}i(dt,"custom");var Me={};mr(Me,{bigint:()=>Ri,boolean:()=>wi,date:()=>Di,number:()=>Oi,string:()=>ki});function ki(e){return nn(pt,e)}i(ki,"string");function Oi(e){return sn(jt,e)}i(Oi,"number");function wi(e){return cn(Lt,e)}i(wi,"boolean");function Ri(e){return ln(vn,e)}i(Ri,"bigint");function Di(e){return fn(_n,e)}i(Di,"date");var Ft=u({retryOnFailure:u({defaultValue:f(M()),hide:f(M())}),continueOnFailure:u({defaultValue:f(M()),hide:f(M())})}),Zt=class{constructor(t,r,o,a,l,p,m,x,_,P,N){this.name=t;this.displayName=r;this.description=o;this.props=a;this.run=l;this.test=p;this.requireAuth=m;this.errorHandlingOptions=x;this.outputSchema=_;this.audience=P;this.aiMetadata=N}static{i(this,"IAction")}},mt=i(e=>new Zt(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 U=u({displayName:n(),description:f(n())}),R=i((e,t)=>u({type:T(t),required:M(),defaultValue:f(Ce())}),"TPropertyValue");var W=u({...U.shape,...R(n(),"SHORT_TEXT").shape}),re=u({...U.shape,...R(n(),"LONG_TEXT").shape});var In=u({label:n(),value:S()}),ft=u({disabled:f(M()),placeholder:f(n()),options:O(In)});var G=u({...U.shape,options:ft,...R(S(),"STATIC_DROPDOWN").shape}),ne=u({...U.shape,options:ft,...R(O(S()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Bt=u({...U.shape,...R(S(),"DROPDOWN").shape,refreshers:O(n())}),je=u({...U.shape,...R(O(S()),"MULTI_SELECT_DROPDOWN").shape,refreshers:O(n())});var oe=u({...U.shape,...R(M(),"CHECKBOX").shape});var ie=u({...U.shape,...R(H(),"NUMBER").shape});var Le=u({...U.shape,...R(S(),"FILE").shape});var Ze=u({...U.shape,...R(n(),"DATE_TIME").shape});var bn=A(n(),w([W,re,G,je,ne,oe,ie,Le,Ze])),Fe=u({...U.shape,properties:bn,...R(O(S()),"ARRAY").shape});var Be=u({...U.shape,...R(w([A(n(),S())]),"JSON").shape});var Tn=w([W,G,Be,Fe,ne]),Ci=A(n(),Tn),Vt=u({refreshers:O(n()),...U.shape,...R(S(),"DYNAMIC").shape});var gt=u({...U.shape,...R(xn(),"MARKDOWN").shape});var Ve=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(Ve||{}),$e=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))($e||{}),He=(y=>(y.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",y.COMMUNICATION="COMMUNICATION",y.COMMERCE="COMMERCE",y.CORE="CORE",y.UNIVERSAL_AI="UNIVERSAL_AI",y.FLOW_CONTROL="FLOW_CONTROL",y.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",y.ACCOUNTING="ACCOUNTING",y.PRODUCTIVITY="PRODUCTIVITY",y.CONTENT_AND_FILES="CONTENT_AND_FILES",y.DEVELOPER_TOOLS="DEVELOPER_TOOLS",y.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",y.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",y.HUMAN_RESOURCES="HUMAN_RESOURCES",y.PAYMENT_PROCESSING="PAYMENT_PROCESSING",y.MARKETING="MARKETING",y.SALES_AND_CRM="SALES_AND_CRM",y))(He||{});var We=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(We||{}),Ht="both_client_credentials_and_authorization_code";var ae=(a=>(a.POLLING="POLLING",a.WEBHOOK="WEBHOOK",a.APP_WEBHOOK="APP_WEBHOOK",a.MANUAL="MANUAL",a))(ae||{}),Ge=(l=>(l.NONE="NONE",l.HEADER_PRESENT="HEADER_PRESENT",l.QUERY_PRESENT="QUERY_PRESENT",l.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",l.HEAD_REQUEST="HEAD_REQUEST",l))(Ge||{}),Ui=u({strategy:D(Ge),paramName:f(n())}),Ke=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(Ke||{});var yt=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(yt||{}),$n=u({status:f(H()),body:f(S()),headers:f(A(n(),n()))}),En=u({type:T("DELAY"),resumeDateTime:n(),requestIdToReply:f(n()),handlerId:f(n()),streamStepProgress:f(D(yt))}),zn=u({type:T("WEBHOOK"),requestId:n(),requestIdToReply:f(n()),response:$n,handlerId:f(n()),streamStepProgress:f(D(yt))}),Mi=w([En,zn]);var ji=u({body:S(),rawBody:f(S()),headers:A(n(),n()),queryParams:A(n(),n())});function fe(e){return e==null}i(fe,"isNil");var Wt=Qe(require("crypto"),1);var Li=128,he,Ee,Zi=i(e=>{!he||he.length<e?(he=Buffer.allocUnsafe(e*Li),Wt.default.randomFillSync(he),Ee=0):Ee+e>he.length&&(Wt.default.randomFillSync(he),Ee=0),Ee+=e},"fillPool"),Fi=i(e=>(Zi(e|=0),he.subarray(Ee-e,Ee)),"random"),Bi=i((e,t,r)=>{let o=(2<<31-Math.clz32(e.length-1|1))-1,a=Math.ceil(1.6*o*t/e.length);return(l=t)=>{let p="";for(;;){let m=r(a),x=a;for(;x--;)if(p+=e[m[x]&o]||"",p.length===l)return p}}},"customRandom"),An=i((e,t=21)=>Bi(e,t,Fi),"customAlphabet");var Vi="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",kn=21,Xy=n().check(pe(new RegExp(`^[0-9a-zA-Z]{${kn}}$`))),Hi=An(Vi,kn);var ge=me(de(e=>e instanceof Date?e.toISOString():e),n()),K={id:n(),created:ge,updated:ge},j=i(e=>f(Ue(e)),"Nullable");function Gt(e){return f(Ue(D(e)))}i(Gt,"NullableEnum");var eh=me(de(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),f(M())),ht=i(e=>me(de(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),f(O(e))),"OptionalArrayFromQuery");var nh=A(n(),S());var Je=(P=>(P.OPENAI="openai",P.OPENROUTER="openrouter",P.ANTHROPIC="anthropic",P.AZURE="azure",P.GOOGLE="google",P.ACTIVEPIECES="activepieces",P.CLOUDFLARE_GATEWAY="cloudflare-gateway",P.CUSTOM="custom",P.BEDROCK="bedrock",P.MISTRAL="mistral",P))(Je||{});var gh=n().check(pe(/^#[0-9A-Fa-f]{6}$/));var hh=u({filename:n(),data:S(),type:T("file"),mimetype:f(n())});var Wi=Qe(wn());var Th=u({...K,name:n(),permissions:O(n()),platformId:j(n()),type:n(),userCount:f(H())});var Rn=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(Rn||{}),Kt=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Kt||{}),Jt=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(Jt||{});var qt=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(qt||{});var Xt=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Xt||{});var Gi=u({mode:D(Rn),value:S()}),Ki=u({auth:f(n()),fields:A(n(),Gi)}),Ji=u({pieceName:n(),pieceVersion:n(),actionName:n(),predefinedInput:f(Ki)}),qi=u({type:T("PIECE"),toolName:n().check(J(1)),pieceMetadata:Ji}),Xi=u({type:T("none")}),Yi=u({type:T("access_token"),accessToken:n()}),Qi=u({type:T("api_key"),apiKey:n(),apiKeyHeader:n()}),ea=u({type:T("headers"),headers:A(n(),n())}),ta=Te("type",[Xi,Yi,Qi,ea]),Dn=u({type:T("FLOW"),toolName:n().check(J(1)),externalFlowId:n(),flowDisplayName:f(n())}),Nn=u({type:T("MCP"),toolName:n().check(J(1)),serverUrl:hn(),protocol:D(Jt),auth:ta}),Cn=u({type:T("KNOWLEDGE_BASE"),toolName:n().check(J(1)),sourceType:D(Kt),sourceId:n(),sourceName:n()}),ra=Te("type",[qi,Dn,Nn,Cn]),na=u({displayName:n(),description:f(n()),type:D(qt)}),Un=u({type:T("MARKDOWN"),markdown:n()}),ze={type:T("TOOL_CALL"),input:j(A(n(),S())),output:f(S()),toolName:n(),status:D(Xt),toolCallId:n(),startTime:n(),endTime:f(n())},Xh=u(ze),Mn=Te("toolCallType",[u({...ze,toolCallType:T("PIECE"),pieceName:n(),pieceVersion:n(),actionName:n()}),u({...ze,toolCallType:T("FLOW"),displayName:n(),externalFlowId:n()}),u({...ze,toolCallType:T("MCP"),displayName:n(),serverUrl:n()}),u({...ze,toolCallType:T("KNOWLEDGE_BASE"),displayName:n(),sourceType:n()}),u({...ze,toolCallType:T("UNKNOWN"),displayName:n()})]),oa=w([Un,Mn]);var Yt=(r=>(r.IMAGE="image",r.TEXT="text",r))(Yt||{}),se=u({apiKey:n()}),ia=se,aa=u({apiKey:n(),apiKeyHash:n()}),sa=se,ua=se,ca=se,la=se,pa=se,da=se,ma=se,jn=u({accessKeyId:n().check(J(1)),secretAccessKey:n().check(J(1))}),fa=u({}),ga=u({}),ya=u({}),ha=u({}),va=u({}),xa=u({}),Ln=u({modelId:n(),modelName:n(),modelType:D(Yt)}),Zn=u({apiKeyHeader:n(),baseUrl:n(),models:O(Ln),defaultHeaders:f(A(n(),n()))}),Fn=u({accountId:n(),gatewayId:n(),models:O(Ln),vertexProject:f(n()),vertexRegion:f(n())}),Bn=u({resourceName:n(),apiVersion:me(de(e=>typeof e=="string"&&e.trim().length===0?void 0:e),f(n()))}),Vn=u({region:n().check(J(1))}),_a=w([ia,ca,la,pa,da,ua,sa,aa,jn,ma]),Hn=w([Zn,Fn,Bn,Vn,fa,ya,ha,va,ga,xa]),Pa=u({id:n(),name:n(),type:D(Yt)}),Ia=u({id:n(),name:n(),provider:D(Je),config:Hn,enabledForChat:M()}),ba=u({provider:D(Je),config:Hn,auth:_a,platformId:n()});var tv={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"};var Ta=u({base64Url:n(),fileName:n(),extension:f(n())}),$a=u({mimeType:n(),url:n(),fileName:f(n())}),Qt=w([Ta,$a]);var Ea=w([u({type:T("file"),value:Qt}),u({type:T("markdown"),value:n(),files:f(O(Qt))})]),za=u({sessionId:n(),message:n(),files:f(O(n()))});var Gn=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(Gn||{}),Kn=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(Kn||{}),er=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(er||{});var Sa=w([u({...K,name:n(),externalId:n(),type:T("STATIC_DROPDOWN"),tableId:n(),projectId:n(),data:u({options:O(u({value:n()}))})}),u({...K,name:n(),externalId:n(),type:w([T("TEXT"),T("NUMBER"),T("DATE")]),tableId:n(),projectId:n()})]),Aa=u({...K,name:n(),folderId:j(n()),projectId:n(),externalId:n(),status:Gt(Kn),trigger:Gt(Gn)}),ka=u({...K,tableId:n(),projectId:n(),cells:A(n(),u({updated:n(),created:n(),value:S(),fieldName:n()}))}),Oa=u({events:O(D(er)),webhookUrl:n(),flowId:n()}),wa=u({fields:O(u({id:n(),name:n()})),rows:O(A(n(),n())),name:n()}),Ra=u({projectId:n(),limit:f(Me.number()),cursor:f(n()),name:f(n()),externalIds:ht(n()),folderId:f(n()),folderIds:ht(n())}),Da=u({records:O(O(u({fieldId:n(),value:qn()}))),tableId:n()}),Na=u({cells:f(O(u({fieldId:n(),value:qn()}))),tableId:n(),agentUpdate:f(M())}),Jn=Te("operator",[ve("eq"),ve("neq"),ve("gt"),ve("gte"),ve("lt"),ve("lte"),ve("co"),Wn("exists"),Wn("not_exists")]),Ca=u({tableId:n(),limit:f(Me.number()),cursor:f(n()),filters:ht(Jn)});function qn(){return me(de(e=>e==null?e:String(e)),Ue(n()))}i(qn,"coerceToString");function ve(e){return u({fieldId:n(),operator:T(e),value:n()})}i(ve,"valueFilter");function Wn(e){return u({fieldId:n(),operator:T(e)})}i(Wn,"existenceFilter");var Ua=u({status:f(H()),body:f(S()),headers:f(A(n(),n()))}),Ma=u({...K,deleted:j(ge),ownerId:n(),displayName:n(),platformId:n(),externalId:j(n())});var Xn=u({name:n(),description:f(n()),type:n(),required:M()}),ja=u({pieceName:n(),triggerName:n(),input:u({toolName:n(),toolDescription:n(),inputSchema:O(Xn),returnsResponse:M()})});var Yn="^[0-9]+\\.[0-9]+\\.[0-9]+$",_v=new RegExp(Yn),Za="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",Pv=n().check(pe(new RegExp(Yn))),Iv=n().check(pe(new RegExp(Za))),Fa=u({packageType:T("ARCHIVE"),pieceType:D($e),pieceName:n(),pieceVersion:n(),archiveId:n(),platformId:n()}),Qn=u({packageType:T("REGISTRY"),pieceType:T("OFFICIAL"),pieceName:n(),pieceVersion:n()}),eo=u({packageType:T("REGISTRY"),pieceType:T("CUSTOM"),pieceName:n(),pieceVersion:n(),platformId:n()}),bv=w([Qn,eo]),Tv=w([Fa,Qn,eo]),to=(t=>(t.CRON_EXPRESSION="CRON_EXPRESSION",t))(to||{}),Ba=u({type:D(to),cronExpression:n(),timezone:n()}),$v=u({...K,type:D(ae),projectId:n(),flowId:n(),triggerName:n(),schedule:j(Ba),flowVersionId:n(),pieceName:n(),pieceVersion:n(),deleted:j(n()),simulate:M()}),ro=(d=>(d.UNKNOWN="UNKNOWN",d.FLOW_RUN_LOG="FLOW_RUN_LOG",d.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",d.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",d.FLOW_STEP_FILE="FLOW_STEP_FILE",d.SAMPLE_DATA="SAMPLE_DATA",d.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",d.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",d.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",d.PROJECT_RELEASE="PROJECT_RELEASE",d.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",d.PLATFORM_ASSET="PLATFORM_ASSET",d.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",d.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",d.KNOWLEDGE_BASE="KNOWLEDGE_BASE",d.FLOW_BUNDLE="FLOW_BUNDLE",d))(ro||{}),no=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(no||{}),oo=(r=>(r.S3="S3",r.DB="DB",r))(oo||{}),Ev=u({...K,projectId:j(n()),platformId:j(n()),type:D(ro),compression:D(no),data:f(S()),location:D(oo),size:j(H()),fileName:j(n()),s3Key:j(n()),metadata:j(A(n(),n()))}),io=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(io||{}),ao=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(ao||{}),zv=u({id:n(),email:n(),firstName:n(),status:D(ao),externalId:j(n()),platformId:j(n()),platformRole:D(io),lastName:n(),created:ge,updated:ge,lastActiveDate:j(ge),imageUrl:j(n())});var tr=u({...U.shape,...R(A(n(),S()),"OBJECT").shape});var lo=u({...U.shape,...R(n(),"COLOR").shape});var rr=w([W,re,gt,oe,G,ne,Bt,je,Vt,ie,Fe,tr,Be,Ze,Le,lo]),ye={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 Q=u({displayName:n(),description:f(n())});var po=u({username:n(),password:n()}),nr=u({...Q.shape,username:u({displayName:n(),description:f(n())}),password:u({displayName:n(),description:f(n())}),...R(po,"BASIC_AUTH").shape});var Ga=A(n(),w([W,re,ie,oe,G])),or=u({...Q.shape,props:Ga,...R(S(),"CUSTOM_AUTH").shape});var xe=u({...Q.shape,...R(u({auth:n()}),"SECRET_TEXT").shape});var Ka=A(n(),w([W,re,xe,ie,oe,G,ne,gt])),mo=u({...Q.shape,props:Ka,...R(S(),"OIDC").shape});var ir=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(ir||{}),fo=w([W,xe,G]),go=A(n(),fo),Ja=u({props:f(A(n(),fo)),authUrl:n(),tokenUrl:n(),scope:O(n()),prompt:f(w([T("none"),T("consent"),T("login"),T("omit")])),pkce:f(M()),pkceMethod:f(w([T("plain"),T("S256")])),authorizationMethod:f(D(ir)),grantType:f(w([D(We),T(Ht)])),extra:f(A(n(),n()))}),yo=u({access_token:n(),props:f(go),data:A(n(),Ce())}),ar=u({...Q.shape,...Ja.shape,...R(yo,"OAUTH2").shape});var Se=w([nr,or,mo,ar,xe]),qe="Connection",sr={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||qe}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||qe,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||qe}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||qe}},None(){}};var i_={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 qa=u({...U.shape,...R(S(),"CUSTOM").shape,code:n()});var Ya=w([rr,Se]),ur=A(n(),Ya),$_=A(n(),rr);var ho=w([u({strategy:T("CRON"),cronExpression:n()}),u({strategy:T("NONE")})]),Ae=class{constructor(t,r,o,a,l,p,m,x,_,P,N,v,s,c,g,d,y,h,C){this.name=t;this.displayName=r;this.description=o;this.requireAuth=a;this.props=l;this.type=p;this.handshakeConfiguration=m;this.onHandshake=x;this.renewConfiguration=_;this.onRenew=P;this.onEnable=N;this.onDisable=v;this.onStart=s;this.run=c;this.test=g;this.sampleData=d;this.testStrategy=y;this.outputSchema=h;this.aiMetadata=C}static{i(this,"ITrigger")}},xt=i(e=>{switch(e.type){case"WEBHOOK":return new Ae(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata);case"POLLING":return new Ae(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"MANUAL":return new Ae(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"APP_WEBHOOK":return new Ae(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,fe(e.sampleData)&&fe(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata)}},"createTrigger");var vo="2",_t="0.82.0";var cr=class{constructor(t,r,o,a,l,p,m,x,_=_t,P,N=""){this.displayName=t;this.logoUrl=r;this.authors=o;this.events=a;this.categories=m;this.auth=x;this.minimumSupportedRelease=_;this.maximumSupportedRelease=P;this.description=N;this._actions={};this._triggers={};this.getContextInfo=i(()=>({version:vo}),"getContextInfo");(!Qa(_)||es(_,_t))&&(this.minimumSupportedRelease=_t),l.forEach(v=>this._actions[v.name]=v),p.forEach(v=>this._triggers[v.name]=v)}static{i(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,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},xo=i(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,o,a)=>o===a.findIndex(l=>l.type===r.type)))throw new Error("Auth properties must be unique by type");return new cr(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description)},"createPiece");function Qa(e){return/^\d+\.\d+\.\d+$/.test(e)}i(Qa,"isValidSimpleSemver");function es(e,t){let[r,o,a]=e.split(".").map(Number),[l,p,m]=t.split(".").map(Number);return r!==l?r<l:o!==p?o<p:a<m}i(es,"isSemverLessThan");var ts=f(A(n(),A(n(),n()))),_o=u({id:f(n()),name:n(),displayName:n(),logoUrl:n(),description:n(),authors:O(n()),platformId:f(n()),directoryPath:f(n()),auth:f(w([Se,O(Se)])),version:n(),categories:f(O(D(He))),minimumSupportedRelease:f(n()),maximumSupportedRelease:f(n()),i18n:ts}),rs=D(["human","ai","both"]),Po=u({description:f(n()),idempotent:f(M())}),Io=u({name:n(),displayName:n(),description:n(),props:ur,requireAuth:M(),errorHandlingOptions:f(Ft),outputSchema:f(dt()),audience:f(rs),aiMetadata:f(Po)}),bo=u({name:n(),displayName:n(),description:n(),props:ur,errorHandlingOptions:f(Ft),type:D(ae),sampleData:S(),handshakeConfiguration:f(dt()),renewConfiguration:f(ho),testStrategy:D(Ke),outputSchema:f(dt()),aiMetadata:f(Po)}),ns=u({..._o.shape,actions:A(n(),Io),triggers:A(n(),bo)}),os=u({..._o.shape,actions:H(),triggers:H(),suggestedActions:f(O(bo)),suggestedTriggers:f(O(Io))}),To=u({projectUsage:H(),tags:f(O(n())),pieceType:D($e),packageType:D(Ve),platformId:f(n()),archiveId:f(n())}),$P=u({...ns.shape,...To.shape}),EP=u({...os.shape,...To.shape}),zP=u({name:n(),version:n()});var is=Qe(require("path")),as=Qe(require("fs/promises"));var ee=sr.SecretText({displayName:"API Key",description:"Enter your DigitalPilot API key",required:!0});var Pt=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{i(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),o=`${r.origin}${r.pathname}`,a=new URLSearchParams;return r.searchParams.forEach((l,p)=>{a.append(p,l)}),{urlWithoutQueryParams:o,queryParams:a}}getHeaders(t){let r={Accept:"application/json"};if(t.authentication&&this.populateAuthentication(t.authentication,r),t.body)switch(t.headers?.["Content-Type"]){case"text/csv":r["Content-Type"]="text/csv";break;default:r["Content-Type"]="application/json";break}return t.headers&&(r={...r,...t.headers}),r}populateAuthentication(t,r){this.authenticationConverter.convert(t,r)}};var It=class{static{i(this,"DelegatingAuthenticationConverter")}constructor(t=new lr,r=new pr){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},lr=class{static{i(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},pr=class{static{i(this,"BasicTokenAuthenticationConverter")}convert(t,r){let o=`${t.username}:${t.password}`,a=Buffer.from(o).toString("base64");return r.Authorization=`Basic ${a}`,r}};var bt=class extends Error{constructor(r,o){let a=o.status||500,l=Buffer.isBuffer(o.responseBody)?o.responseBody.toString():o.responseBody;super(JSON.stringify({response:{status:a,body:l},request:{body:r}}));this.requestBody=r;this.status=a,this.responseBody=l}static{i(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}}};var Tt=class extends Pt{static{i(this,"FetchHttpClient")}constructor(t="",r=new It){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:o,queryParams:a}=this.getUrl(t),l=this.getHeaders(t),p=t.queryParams??{};for(let[C,X]of Object.entries(p))a.append(C,X);let m=a.toString(),x=m?`${o}?${m}`:o,_=t.responseType??"json",P=t.followRedirects??!0,N=t.retries??0,{body:v,extraHeaders:s,isStream:c}=ss(t.body,l),g=cs({...l,...s}),d=await us(async()=>{let C=new AbortController,X=t.timeout&&t.timeout>0?setTimeout(()=>C.abort(),t.timeout):void 0;try{let _e={method:t.method.toString(),headers:g,body:v,redirect:P?"follow":"manual",signal:C.signal};return c&&(_e.duplex="half"),r?.dispatcher!==void 0&&(_e.dispatcher=r.dispatcher),await fetch(x,_e)}finally{X!==void 0&&clearTimeout(X)}},N),y=P?300:400;if(d.status<200||d.status>=y){let C=await $o(d,_),X=new bt(t.body,{status:d.status,responseBody:C});throw console.error("[HttpClient#(sanitized error message)] Request failed:",X),X}let h=await $o(d,_);return{status:d.status,headers:ls(d.headers),body:h}}};function ss(e,t){return ds(e)?{body:void 0,extraHeaders:{},isStream:!1}:ps(e)?{body:e,extraHeaders:e.getHeaders(),isStream:!0}: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}}i(ss,"serializeBody");async function $o(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"blob":return await e.blob();case"text":return await e.text();case"json":default:{let r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}i($o,"parseResponseBody");async function us(e,t){let r;for(let o=0;o<=t;o++)try{let a=await e();if(a.status>=500&&o<t){await Eo(o);continue}return a}catch(a){if(r=a,o<t){await Eo(o);continue}throw a}throw r}i(us,"sendWithRetries");function Eo(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}i(Eo,"backoff");function cs(e){let t={};for(let[r,o]of Object.entries(e))o!==void 0&&(t[r]=Array.isArray(o)?o.join(", "):o);return t}i(cs,"normalizeHeaders");function ls(e){let t={};return e.forEach((r,o)=>{t[o]=r}),t}i(ls,"toHttpHeaders");function ps(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"}i(ps,"isNodeFormData");function ds(e){return e==null}i(ds,"isNil");var Xe=new Tt;var $t="https://api.digitalpilot.app/v1",dr=class{constructor(t){this.apiKey=t}static{i(this,"DigitalPilotClientImpl")}async addTargetAccount(t,r,o){let a={method:"POST",url:`${$t}/tags/${t}/target-accounts/${r}`,headers:{"Content-Type":"application/json"},body:{domain:o},authentication:{type:"BEARER_TOKEN",token:this.apiKey}},l=await Xe.sendRequest(a);if(l.status===200)return;let p="Unknown error occurred";switch(l.status){case 400:p="Invalid input. Please check your parameters.";break;case 401:p="Authentication failed. Please check your API key.";break;case 404:p="Tag or list not found. Please verify your selection.";break;case 429:p="Rate limit exceeded. Please try again later.";break;case 500:p="DigitalPilot server error. Please try again later.";break}throw new Error(p)}async removeTargetAccount(t,r,o){let a={method:"DELETE",url:`${$t}/tags/${t}/target-accounts/${r}`,headers:{"Content-Type":"application/json"},body:{domain:o},authentication:{type:"BEARER_TOKEN",token:this.apiKey}},l=await Xe.sendRequest(a);if(l.status===200)return;let p="Unknown error occurred";switch(l.status){case 400:p="Invalid input. Please check your parameters.";break;case 401:p="Authentication failed. Please check your API key.";break;case 404:p="Tag or list not found. Please verify your selection.";break;case 429:p="Rate limit exceeded. Please try again later.";break;case 500:p="DigitalPilot server error. Please try again later.";break}throw new Error(p)}async createWebhook(t,r,o){let a={method:"POST",url:`${$t}/tags/${t}/webhooks`,headers:{"Content-Type":"application/json"},body:{webhookURL:r,subscriptions:o},authentication:{type:"BEARER_TOKEN",token:this.apiKey}},l=await Xe.sendRequest(a);if(l.status===200)return l.body;let p="Failed to register webhook";switch(l.status){case 400:p="Invalid webhook parameters. Please check your inputs.";break;case 401:p="Authentication failed. Please check your API key.";break;case 404:p="Tag not found. Please verify your selection.";break;case 429:p="Rate limit exceeded. Please try again later.";break;case 500:p="DigitalPilot server error. Please try again later.";break}throw new Error(p)}async deleteWebhook(t,r,o){let a={};r&&(a.webhookURL=r),o&&(a.webhookID=o);let l={method:"DELETE",url:`${$t}/tags/${t}/webhooks`,headers:{"Content-Type":"application/json"},body:a,authentication:{type:"BEARER_TOKEN",token:this.apiKey}},p=await Xe.sendRequest(l);if(p.status===200)return;let m="Failed to delete webhook";switch(p.status){case 400:m="Invalid webhook parameters.";break;case 401:m="Authentication failed. Please check your API key.";break;case 404:m="Webhook not found.";break;case 429:m="Rate limit exceeded.";break;case 500:m="DigitalPilot server error.";break}console.warn(`Webhook deletion warning: ${m}`)}};function q(e){return new dr(e)}i(q,"makeClient");var ue=ye.ShortText({displayName:"Tag ID",description:"The ID of the tag",required:!0}),Ye=ye.ShortText({displayName:"List ID",description:"The ID of the list",required:!0});var zo=mt({auth:ee,name:"add_target_account",displayName:"Add Target Account",description:"Add a target account to a list",audience:"both",aiMetadata:{description:"Adds a company domain as a target account to a specific DigitalPilot list (identified by tag and list IDs) so its website visits are tracked as high-priority. Use to build or grow an account-based marketing target list. Requires the tag ID, list ID, and the account domain (e.g. example.com); idempotent, since re-adding the same domain leaves the list membership unchanged.",idempotent:!0},props:{tagId:ue,listId:Ye,domain:ye.ShortText({displayName:"Domain",description:"Account domain name (e.g., example.com)",required:!0})},async run(e){return await q(e.auth.secret_text).addTargetAccount(e.propsValue.tagId,e.propsValue.listId,e.propsValue.domain),{success:!0,message:"Target account added successfully"}}});var So=mt({auth:ee,name:"remove_target_account",displayName:"Remove Target Account",description:"Remove a target account from a list",audience:"both",aiMetadata:{description:"Removes a company domain from a specific DigitalPilot target-account list (identified by tag and list IDs), stopping it from being tracked as a high-priority account. Use to prune an account-based marketing target list. Requires the tag ID, list ID, and the account domain; idempotent, since removing an already-absent domain leaves the list membership unchanged.",idempotent:!0},props:{tagId:ue,listId:Ye,domain:ye.ShortText({displayName:"Domain",description:"Account domain name (e.g., example.com)",required:!0})},async run(e){return await q(e.auth.secret_text).removeTargetAccount(e.propsValue.tagId,e.propsValue.listId,e.propsValue.domain),{success:!0,message:"Target account removed successfully"}}});var Ao=xt({auth:ee,name:"new_high_intent_visit",displayName:"New High Intent Visit",description:"Triggers when a business exhibits high intent behavior on your website",aiMetadata:{description:"Fires when DigitalPilot detects high-intent browsing behavior (e.g. elevated intent score, repeated page views, extended time on site) from an identified business visitor for the configured tag. Each event represents one such visit and carries the visiting account domain and engagement signals."},type:"WEBHOOK",props:{tagId:ue},sampleData:{domain:"example.com",timestamp:"2024-01-15T10:30:00Z",intent_score:85,page_views:12,time_on_site:450},async onEnable(e){let t=q(e.auth.secret_text),r=e.webhookUrl,o=await t.createWebhook(e.propsValue.tagId,r,"high_intent");await e.store.put("_webhook_id",o.id)},async onDisable(e){let t=q(e.auth.secret_text),r=await e.store.get("_webhook_id");r&&await t.deleteWebhook(e.propsValue.tagId,void 0,r)},async run(e){return[e.payload.body]}});var ko=xt({auth:ee,name:"new_target_account_visit",displayName:"New Target Account Visit",description:"Triggers when a business you've identified as a high-priority target account browses your site",aiMetadata:{description:"Fires when a business already on one of your DigitalPilot target-account lists (for the configured tag) visits your website. Each event represents one such visit and carries the account domain and engagement signals (page views, time on site, pages visited). Use to react to activity from accounts you are specifically targeting, as opposed to any high-intent visitor."},type:"WEBHOOK",props:{tagId:ue},sampleData:{domain:"acme-corp.com",timestamp:"2024-01-15T14:22:00Z",page_views:8,time_on_site:320,pages_visited:["/products","/pricing","/contact"]},async onEnable(e){let t=q(e.auth.secret_text),r=e.webhookUrl,o=await t.createWebhook(e.propsValue.tagId,r,"target_accounts");await e.store.put("_webhook_id",o.id)},async onDisable(e){let t=q(e.auth.secret_text),r=await e.store.get("_webhook_id");r&&await t.deleteWebhook(e.propsValue.tagId,void 0,r)},async run(e){return[e.payload.body]}});var ms=xo({displayName:"DigitalPilot",auth:ee,minimumSupportedRelease:"0.36.1",logoUrl:"https://cdn.activepieces.com/pieces/digital-pilot.png",authors:["onyedikachi-david"],actions:[zo,So],triggers:[Ao,ko]});0&&(module.exports={digitalPilot});
|
package/README.md
DELETED
package/src/index.d.ts
DELETED
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/digital-pilot/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,yEAA0E;AAC1E,+EAAgF;AAChF,gFAAiF;AACjF,sFAAuF;AAE1E,QAAA,gBAAgB,GAAG,4BAAS,CAAC,UAAU,CAAC;IACnD,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,iCAAiC;IAC9C,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,IAAA,8BAAW,EAAC;IACtC,WAAW,EAAE,cAAc;IAC3B,IAAI,EAAE,wBAAgB;IACtB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,uDAAuD;IAChE,OAAO,EAAE,CAAC,mBAAmB,CAAC;IAC9B,OAAO,EAAE,CAAC,2CAAsB,EAAE,iDAAyB,CAAC;IAC5D,QAAQ,EAAE,CAAC,iDAAyB,EAAE,uDAA4B,CAAC;CACpE,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const addTargetAccountAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
tagId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
listId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
}>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addTargetAccountAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const index_1 = require("../../index");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
exports.addTargetAccountAction = (0, pieces_framework_1.createAction)({
|
|
9
|
-
auth: index_1.digitalPilotAuth,
|
|
10
|
-
name: 'add_target_account',
|
|
11
|
-
displayName: 'Add Target Account',
|
|
12
|
-
description: 'Add a target account to a list',
|
|
13
|
-
props: {
|
|
14
|
-
tagId: common_1.tagIdProp,
|
|
15
|
-
listId: common_1.listIdProp,
|
|
16
|
-
domain: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Domain',
|
|
18
|
-
description: 'Account domain name (e.g., example.com)',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
},
|
|
22
|
-
run(context) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const client = (0, common_1.makeClient)(context.auth.secret_text);
|
|
25
|
-
yield client.addTargetAccount(context.propsValue.tagId, context.propsValue.listId, context.propsValue.domain);
|
|
26
|
-
return {
|
|
27
|
-
success: true,
|
|
28
|
-
message: 'Target account added successfully',
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=add-target-account.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-target-account.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/digital-pilot/src/lib/actions/add-target-account.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,uCAA+C;AAC/C,sCAA8D;AAEjD,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,wBAAgB;IACtB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,gCAAgC;IAC7C,KAAK,EAAE;QACL,KAAK,EAAE,kBAAS;QAChB,MAAM,EAAE,mBAAU;QAClB,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACpD,MAAM,MAAM,CAAC,gBAAgB,CAC3B,OAAO,CAAC,UAAU,CAAC,KAAe,EAClC,OAAO,CAAC,UAAU,CAAC,MAAgB,EACnC,OAAO,CAAC,UAAU,CAAC,MAAM,CAC1B,CAAC;YACF,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,mCAAmC;aAC7C,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
package/src/lib/actions/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeTargetAccountAction = exports.addTargetAccountAction = void 0;
|
|
4
|
-
var add_target_account_1 = require("./add-target-account");
|
|
5
|
-
Object.defineProperty(exports, "addTargetAccountAction", { enumerable: true, get: function () { return add_target_account_1.addTargetAccountAction; } });
|
|
6
|
-
var remove_target_account_1 = require("./remove-target-account");
|
|
7
|
-
Object.defineProperty(exports, "removeTargetAccountAction", { enumerable: true, get: function () { return remove_target_account_1.removeTargetAccountAction; } });
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/digital-pilot/src/lib/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAA8D;AAArD,4HAAA,sBAAsB,OAAA;AAC/B,iEAAoE;AAA3D,kIAAA,yBAAyB,OAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const removeTargetAccountAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
tagId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
listId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
}>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeTargetAccountAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const index_1 = require("../../index");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
exports.removeTargetAccountAction = (0, pieces_framework_1.createAction)({
|
|
9
|
-
auth: index_1.digitalPilotAuth,
|
|
10
|
-
name: 'remove_target_account',
|
|
11
|
-
displayName: 'Remove Target Account',
|
|
12
|
-
description: 'Remove a target account from a list',
|
|
13
|
-
props: {
|
|
14
|
-
tagId: common_1.tagIdProp,
|
|
15
|
-
listId: common_1.listIdProp,
|
|
16
|
-
domain: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Domain',
|
|
18
|
-
description: 'Account domain name (e.g., example.com)',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
},
|
|
22
|
-
run(context) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const client = (0, common_1.makeClient)(context.auth.secret_text);
|
|
25
|
-
yield client.removeTargetAccount(context.propsValue.tagId, context.propsValue.listId, context.propsValue.domain);
|
|
26
|
-
return {
|
|
27
|
-
success: true,
|
|
28
|
-
message: 'Target account removed successfully',
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=remove-target-account.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remove-target-account.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/digital-pilot/src/lib/actions/remove-target-account.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,uCAA+C;AAC/C,sCAA8D;AAEjD,QAAA,yBAAyB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,wBAAgB;IACtB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE,qCAAqC;IAClD,KAAK,EAAE;QACL,KAAK,EAAE,kBAAS;QAChB,MAAM,EAAE,mBAAU;QAClB,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACpD,MAAM,MAAM,CAAC,mBAAmB,CAC9B,OAAO,CAAC,UAAU,CAAC,KAAe,EAClC,OAAO,CAAC,UAAU,CAAC,MAAgB,EACnC,OAAO,CAAC,UAAU,CAAC,MAAM,CAC1B,CAAC;YACF,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,qCAAqC;aAC/C,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface DigitalPilotClient {
|
|
2
|
-
addTargetAccount(tagId: string, listId: string, domain: string): Promise<void>;
|
|
3
|
-
removeTargetAccount(tagId: string, listId: string, domain: string): Promise<void>;
|
|
4
|
-
createWebhook(tagId: string, webhookURL: string, subscriptions: 'target_accounts' | 'high_intent'): Promise<WebhookResponse>;
|
|
5
|
-
deleteWebhook(tagId: string, webhookURL?: string, webhookID?: string): Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
export interface WebhookResponse {
|
|
8
|
-
id: string;
|
|
9
|
-
url: string;
|
|
10
|
-
subscriptions: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function makeClient(auth: string): DigitalPilotClient;
|
package/src/lib/common/client.js
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeClient = makeClient;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
|
-
const BASE_URL = 'https://api.digitalpilot.app/v1';
|
|
7
|
-
class DigitalPilotClientImpl {
|
|
8
|
-
constructor(apiKey) {
|
|
9
|
-
this.apiKey = apiKey;
|
|
10
|
-
}
|
|
11
|
-
addTargetAccount(tagId, listId, domain) {
|
|
12
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13
|
-
const request = {
|
|
14
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
15
|
-
url: `${BASE_URL}/tags/${tagId}/target-accounts/${listId}`,
|
|
16
|
-
headers: {
|
|
17
|
-
'Content-Type': 'application/json',
|
|
18
|
-
},
|
|
19
|
-
body: {
|
|
20
|
-
domain,
|
|
21
|
-
},
|
|
22
|
-
authentication: {
|
|
23
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
24
|
-
token: this.apiKey,
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
const response = yield pieces_common_1.httpClient.sendRequest(request);
|
|
28
|
-
if (response.status === 200) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
let errorMessage = 'Unknown error occurred';
|
|
32
|
-
switch (response.status) {
|
|
33
|
-
case 400:
|
|
34
|
-
errorMessage = 'Invalid input. Please check your parameters.';
|
|
35
|
-
break;
|
|
36
|
-
case 401:
|
|
37
|
-
errorMessage = 'Authentication failed. Please check your API key.';
|
|
38
|
-
break;
|
|
39
|
-
case 404:
|
|
40
|
-
errorMessage = 'Tag or list not found. Please verify your selection.';
|
|
41
|
-
break;
|
|
42
|
-
case 429:
|
|
43
|
-
errorMessage = 'Rate limit exceeded. Please try again later.';
|
|
44
|
-
break;
|
|
45
|
-
case 500:
|
|
46
|
-
errorMessage = 'DigitalPilot server error. Please try again later.';
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
throw new Error(errorMessage);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
removeTargetAccount(tagId, listId, domain) {
|
|
53
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
const request = {
|
|
55
|
-
method: pieces_common_1.HttpMethod.DELETE,
|
|
56
|
-
url: `${BASE_URL}/tags/${tagId}/target-accounts/${listId}`,
|
|
57
|
-
headers: {
|
|
58
|
-
'Content-Type': 'application/json',
|
|
59
|
-
},
|
|
60
|
-
body: {
|
|
61
|
-
domain,
|
|
62
|
-
},
|
|
63
|
-
authentication: {
|
|
64
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
65
|
-
token: this.apiKey,
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
const response = yield pieces_common_1.httpClient.sendRequest(request);
|
|
69
|
-
if (response.status === 200) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
let errorMessage = 'Unknown error occurred';
|
|
73
|
-
switch (response.status) {
|
|
74
|
-
case 400:
|
|
75
|
-
errorMessage = 'Invalid input. Please check your parameters.';
|
|
76
|
-
break;
|
|
77
|
-
case 401:
|
|
78
|
-
errorMessage = 'Authentication failed. Please check your API key.';
|
|
79
|
-
break;
|
|
80
|
-
case 404:
|
|
81
|
-
errorMessage = 'Tag or list not found. Please verify your selection.';
|
|
82
|
-
break;
|
|
83
|
-
case 429:
|
|
84
|
-
errorMessage = 'Rate limit exceeded. Please try again later.';
|
|
85
|
-
break;
|
|
86
|
-
case 500:
|
|
87
|
-
errorMessage = 'DigitalPilot server error. Please try again later.';
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
throw new Error(errorMessage);
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
createWebhook(tagId, webhookURL, subscriptions) {
|
|
94
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
const request = {
|
|
96
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
97
|
-
url: `${BASE_URL}/tags/${tagId}/webhooks`,
|
|
98
|
-
headers: {
|
|
99
|
-
'Content-Type': 'application/json',
|
|
100
|
-
},
|
|
101
|
-
body: {
|
|
102
|
-
webhookURL,
|
|
103
|
-
subscriptions,
|
|
104
|
-
},
|
|
105
|
-
authentication: {
|
|
106
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
107
|
-
token: this.apiKey,
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
const response = yield pieces_common_1.httpClient.sendRequest(request);
|
|
111
|
-
if (response.status === 200) {
|
|
112
|
-
return response.body;
|
|
113
|
-
}
|
|
114
|
-
let errorMessage = 'Failed to register webhook';
|
|
115
|
-
switch (response.status) {
|
|
116
|
-
case 400:
|
|
117
|
-
errorMessage = 'Invalid webhook parameters. Please check your inputs.';
|
|
118
|
-
break;
|
|
119
|
-
case 401:
|
|
120
|
-
errorMessage = 'Authentication failed. Please check your API key.';
|
|
121
|
-
break;
|
|
122
|
-
case 404:
|
|
123
|
-
errorMessage = 'Tag not found. Please verify your selection.';
|
|
124
|
-
break;
|
|
125
|
-
case 429:
|
|
126
|
-
errorMessage = 'Rate limit exceeded. Please try again later.';
|
|
127
|
-
break;
|
|
128
|
-
case 500:
|
|
129
|
-
errorMessage = 'DigitalPilot server error. Please try again later.';
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
throw new Error(errorMessage);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
deleteWebhook(tagId, webhookURL, webhookID) {
|
|
136
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
137
|
-
const body = {};
|
|
138
|
-
if (webhookURL) {
|
|
139
|
-
body.webhookURL = webhookURL;
|
|
140
|
-
}
|
|
141
|
-
if (webhookID) {
|
|
142
|
-
body.webhookID = webhookID;
|
|
143
|
-
}
|
|
144
|
-
const request = {
|
|
145
|
-
method: pieces_common_1.HttpMethod.DELETE,
|
|
146
|
-
url: `${BASE_URL}/tags/${tagId}/webhooks`,
|
|
147
|
-
headers: {
|
|
148
|
-
'Content-Type': 'application/json',
|
|
149
|
-
},
|
|
150
|
-
body,
|
|
151
|
-
authentication: {
|
|
152
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
153
|
-
token: this.apiKey,
|
|
154
|
-
},
|
|
155
|
-
};
|
|
156
|
-
const response = yield pieces_common_1.httpClient.sendRequest(request);
|
|
157
|
-
if (response.status === 200) {
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
let errorMessage = 'Failed to delete webhook';
|
|
161
|
-
switch (response.status) {
|
|
162
|
-
case 400:
|
|
163
|
-
errorMessage = 'Invalid webhook parameters.';
|
|
164
|
-
break;
|
|
165
|
-
case 401:
|
|
166
|
-
errorMessage = 'Authentication failed. Please check your API key.';
|
|
167
|
-
break;
|
|
168
|
-
case 404:
|
|
169
|
-
errorMessage = 'Webhook not found.';
|
|
170
|
-
break;
|
|
171
|
-
case 429:
|
|
172
|
-
errorMessage = 'Rate limit exceeded.';
|
|
173
|
-
break;
|
|
174
|
-
case 500:
|
|
175
|
-
errorMessage = 'DigitalPilot server error.';
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
console.warn(`Webhook deletion warning: ${errorMessage}`);
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
function makeClient(auth) {
|
|
183
|
-
return new DigitalPilotClientImpl(auth);
|
|
184
|
-
}
|
|
185
|
-
//# sourceMappingURL=client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/digital-pilot/src/lib/common/client.ts"],"names":[],"mappings":";;AAiOA,gCAEC;;AAnOD,+DAKqC;AAErC,MAAM,QAAQ,GAAG,iCAAiC,CAAC;AAenD,MAAM,sBAAsB;IAC1B,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAEzC,gBAAgB,CACpB,KAAa,EACb,MAAc,EACd,MAAc;;YAEd,MAAM,OAAO,GAAgB;gBAC3B,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,QAAQ,SAAS,KAAK,oBAAoB,MAAM,EAAE;gBAC1D,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE;oBACJ,MAAM;iBACP;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,IAAI,CAAC,MAAM;iBACnB;aACF,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAEvD,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBAC5B,OAAO;YACT,CAAC;YAED,IAAI,YAAY,GAAG,wBAAwB,CAAC;YAC5C,QAAQ,QAAQ,CAAC,MAAM,EAAE,CAAC;gBACxB,KAAK,GAAG;oBACN,YAAY,GAAG,8CAA8C,CAAC;oBAC9D,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,mDAAmD,CAAC;oBACnE,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,sDAAsD,CAAC;oBACtE,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,8CAA8C,CAAC;oBAC9D,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,oDAAoD,CAAC;oBACpE,MAAM;YACV,CAAC;YAED,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;QAChC,CAAC;KAAA;IAEK,mBAAmB,CACvB,KAAa,EACb,MAAc,EACd,MAAc;;YAEd,MAAM,OAAO,GAAgB;gBAC3B,MAAM,EAAE,0BAAU,CAAC,MAAM;gBACzB,GAAG,EAAE,GAAG,QAAQ,SAAS,KAAK,oBAAoB,MAAM,EAAE;gBAC1D,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE;oBACJ,MAAM;iBACP;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,IAAI,CAAC,MAAM;iBACnB;aACF,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAEvD,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBAC5B,OAAO;YACT,CAAC;YAED,IAAI,YAAY,GAAG,wBAAwB,CAAC;YAC5C,QAAQ,QAAQ,CAAC,MAAM,EAAE,CAAC;gBACxB,KAAK,GAAG;oBACN,YAAY,GAAG,8CAA8C,CAAC;oBAC9D,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,mDAAmD,CAAC;oBACnE,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,sDAAsD,CAAC;oBACtE,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,8CAA8C,CAAC;oBAC9D,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,oDAAoD,CAAC;oBACpE,MAAM;YACV,CAAC;YAED,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;QAChC,CAAC;KAAA;IAEK,aAAa,CACjB,KAAa,EACb,UAAkB,EAClB,aAAgD;;YAEhD,MAAM,OAAO,GAAgB;gBAC3B,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,QAAQ,SAAS,KAAK,WAAW;gBACzC,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE;oBACJ,UAAU;oBACV,aAAa;iBACd;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,IAAI,CAAC,MAAM;iBACnB;aACF,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAkB,OAAO,CAAC,CAAC;YAExE,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC;YACvB,CAAC;YAED,IAAI,YAAY,GAAG,4BAA4B,CAAC;YAChD,QAAQ,QAAQ,CAAC,MAAM,EAAE,CAAC;gBACxB,KAAK,GAAG;oBACN,YAAY,GAAG,uDAAuD,CAAC;oBACvE,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,mDAAmD,CAAC;oBACnE,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,8CAA8C,CAAC;oBAC9D,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,8CAA8C,CAAC;oBAC9D,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,oDAAoD,CAAC;oBACpE,MAAM;YACV,CAAC;YAED,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;QAChC,CAAC;KAAA;IAEK,aAAa,CACjB,KAAa,EACb,UAAmB,EACnB,SAAkB;;YAElB,MAAM,IAAI,GAAgD,EAAE,CAAC;YAC7D,IAAI,UAAU,EAAE,CAAC;gBACf,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC/B,CAAC;YACD,IAAI,SAAS,EAAE,CAAC;gBACd,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAC7B,CAAC;YAED,MAAM,OAAO,GAAgB;gBAC3B,MAAM,EAAE,0BAAU,CAAC,MAAM;gBACzB,GAAG,EAAE,GAAG,QAAQ,SAAS,KAAK,WAAW;gBACzC,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI;gBACJ,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,IAAI,CAAC,MAAM;iBACnB;aACF,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAEvD,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBAC5B,OAAO;YACT,CAAC;YAED,IAAI,YAAY,GAAG,0BAA0B,CAAC;YAC9C,QAAQ,QAAQ,CAAC,MAAM,EAAE,CAAC;gBACxB,KAAK,GAAG;oBACN,YAAY,GAAG,6BAA6B,CAAC;oBAC7C,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,mDAAmD,CAAC;oBACnE,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,oBAAoB,CAAC;oBACpC,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,sBAAsB,CAAC;oBACtC,MAAM;gBACR,KAAK,GAAG;oBACN,YAAY,GAAG,4BAA4B,CAAC;oBAC5C,MAAM;YACV,CAAC;YAED,OAAO,CAAC,IAAI,CAAC,6BAA6B,YAAY,EAAE,CAAC,CAAC;QAC5D,CAAC;KAAA;CACF;AAED,SAAgB,UAAU,CAAC,IAAY;IACrC,OAAO,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC"}
|
package/src/lib/common/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listIdProp = exports.tagIdProp = exports.makeClient = void 0;
|
|
4
|
-
var client_1 = require("./client");
|
|
5
|
-
Object.defineProperty(exports, "makeClient", { enumerable: true, get: function () { return client_1.makeClient; } });
|
|
6
|
-
var props_1 = require("./props");
|
|
7
|
-
Object.defineProperty(exports, "tagIdProp", { enumerable: true, get: function () { return props_1.tagIdProp; } });
|
|
8
|
-
Object.defineProperty(exports, "listIdProp", { enumerable: true, get: function () { return props_1.listIdProp; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/digital-pilot/src/lib/common/index.ts"],"names":[],"mappings":";;;AAAA,mCAA+D;AAAtD,oGAAA,UAAU,OAAA;AACnB,iCAAgD;AAAvC,kGAAA,SAAS,OAAA;AAAE,mGAAA,UAAU,OAAA"}
|
package/src/lib/common/props.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listIdProp = exports.tagIdProp = void 0;
|
|
4
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
-
exports.tagIdProp = pieces_framework_1.Property.ShortText({
|
|
6
|
-
displayName: 'Tag ID',
|
|
7
|
-
description: 'The ID of the tag',
|
|
8
|
-
required: true,
|
|
9
|
-
});
|
|
10
|
-
exports.listIdProp = pieces_framework_1.Property.ShortText({
|
|
11
|
-
displayName: 'List ID',
|
|
12
|
-
description: 'The ID of the list',
|
|
13
|
-
required: true,
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=props.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/digital-pilot/src/lib/common/props.ts"],"names":[],"mappings":";;;AAAA,qEAA0D;AAE7C,QAAA,SAAS,GAAG,2BAAQ,CAAC,SAAS,CAAC;IAC1C,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,mBAAmB;IAChC,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,2BAAQ,CAAC,SAAS,CAAC;IAC3C,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,oBAAoB;IACjC,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newHighIntentVisitTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
3
|
-
tagId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
5
|
-
tagId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
7
|
-
tagId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
8
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
9
|
-
tagId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
-
}>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newHighIntentVisitTrigger = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const index_1 = require("../../index");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
exports.newHighIntentVisitTrigger = (0, pieces_framework_1.createTrigger)({
|
|
9
|
-
auth: index_1.digitalPilotAuth,
|
|
10
|
-
name: 'new_high_intent_visit',
|
|
11
|
-
displayName: 'New High Intent Visit',
|
|
12
|
-
description: 'Triggers when a business exhibits high intent behavior on your website',
|
|
13
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
14
|
-
props: {
|
|
15
|
-
tagId: common_1.tagIdProp,
|
|
16
|
-
},
|
|
17
|
-
sampleData: {
|
|
18
|
-
domain: 'example.com',
|
|
19
|
-
timestamp: '2024-01-15T10:30:00Z',
|
|
20
|
-
intent_score: 85,
|
|
21
|
-
page_views: 12,
|
|
22
|
-
time_on_site: 450,
|
|
23
|
-
},
|
|
24
|
-
onEnable(context) {
|
|
25
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
const client = (0, common_1.makeClient)(context.auth.secret_text);
|
|
27
|
-
const webhookUrl = context.webhookUrl;
|
|
28
|
-
const webhook = yield client.createWebhook(context.propsValue.tagId, webhookUrl, 'high_intent');
|
|
29
|
-
yield context.store.put('_webhook_id', webhook.id);
|
|
30
|
-
});
|
|
31
|
-
},
|
|
32
|
-
onDisable(context) {
|
|
33
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
const client = (0, common_1.makeClient)(context.auth.secret_text);
|
|
35
|
-
const webhookId = yield context.store.get('_webhook_id');
|
|
36
|
-
if (webhookId) {
|
|
37
|
-
yield client.deleteWebhook(context.propsValue.tagId, undefined, webhookId);
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
},
|
|
41
|
-
run(context) {
|
|
42
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
return [context.payload.body];
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
//# sourceMappingURL=new-high-intent-visit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-high-intent-visit.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/digital-pilot/src/lib/triggers/new-high-intent-visit.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,uCAA+C;AAC/C,sCAAkD;AAErC,QAAA,yBAAyB,GAAG,IAAA,gCAAa,EAAC;IACrD,IAAI,EAAE,wBAAgB;IACtB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE,wEAAwE;IACrF,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE;QACL,KAAK,EAAE,kBAAS;KACjB;IACD,UAAU,EAAE;QACV,MAAM,EAAE,aAAa;QACrB,SAAS,EAAE,sBAAsB;QACjC,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE,EAAE;QACd,YAAY,EAAE,GAAG;KAClB;IAEK,QAAQ,CAAC,OAAO;;YACpB,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACpD,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;YAEtC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,aAAa,CACxC,OAAO,CAAC,UAAU,CAAC,KAAK,EACxB,UAAU,EACV,aAAa,CACd,CAAC;YAEF,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QACrD,CAAC;KAAA;IAEK,SAAS,CAAC,OAAO;;YACrB,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACpD,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,CAAS,aAAa,CAAC,CAAC;YAEjE,IAAI,SAAS,EAAE,CAAC;gBACd,MAAM,MAAM,CAAC,aAAa,CACxB,OAAO,CAAC,UAAU,CAAC,KAAK,EACxB,SAAS,EACT,SAAS,CACV,CAAC;YACJ,CAAC;QACH,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newTargetAccountVisitTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
3
|
-
tagId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
5
|
-
tagId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
7
|
-
tagId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
8
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
9
|
-
tagId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
-
}>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newTargetAccountVisitTrigger = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const index_1 = require("../../index");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
exports.newTargetAccountVisitTrigger = (0, pieces_framework_1.createTrigger)({
|
|
9
|
-
auth: index_1.digitalPilotAuth,
|
|
10
|
-
name: 'new_target_account_visit',
|
|
11
|
-
displayName: 'New Target Account Visit',
|
|
12
|
-
description: 'Triggers when a business you\'ve identified as a high-priority target account browses your site',
|
|
13
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
14
|
-
props: {
|
|
15
|
-
tagId: common_1.tagIdProp,
|
|
16
|
-
},
|
|
17
|
-
sampleData: {
|
|
18
|
-
domain: 'acme-corp.com',
|
|
19
|
-
timestamp: '2024-01-15T14:22:00Z',
|
|
20
|
-
page_views: 8,
|
|
21
|
-
time_on_site: 320,
|
|
22
|
-
pages_visited: [
|
|
23
|
-
'/products',
|
|
24
|
-
'/pricing',
|
|
25
|
-
'/contact'
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
onEnable(context) {
|
|
29
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
const client = (0, common_1.makeClient)(context.auth.secret_text);
|
|
31
|
-
const webhookUrl = context.webhookUrl;
|
|
32
|
-
const webhook = yield client.createWebhook(context.propsValue.tagId, webhookUrl, 'target_accounts');
|
|
33
|
-
yield context.store.put('_webhook_id', webhook.id);
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
onDisable(context) {
|
|
37
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
const client = (0, common_1.makeClient)(context.auth.secret_text);
|
|
39
|
-
const webhookId = yield context.store.get('_webhook_id');
|
|
40
|
-
if (webhookId) {
|
|
41
|
-
yield client.deleteWebhook(context.propsValue.tagId, undefined, webhookId);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
},
|
|
45
|
-
run(context) {
|
|
46
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
return [context.payload.body];
|
|
48
|
-
});
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
//# sourceMappingURL=new-target-account-visit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-target-account-visit.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/digital-pilot/src/lib/triggers/new-target-account-visit.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,uCAA+C;AAC/C,sCAAkD;AAErC,QAAA,4BAA4B,GAAG,IAAA,gCAAa,EAAC;IACxD,IAAI,EAAE,wBAAgB;IACtB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,iGAAiG;IAC9G,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE;QACL,KAAK,EAAE,kBAAS;KACjB;IACD,UAAU,EAAE;QACV,MAAM,EAAE,eAAe;QACvB,SAAS,EAAE,sBAAsB;QACjC,UAAU,EAAE,CAAC;QACb,YAAY,EAAE,GAAG;QACjB,aAAa,EAAE;YACb,WAAW;YACX,UAAU;YACV,UAAU;SACX;KACF;IAEK,QAAQ,CAAC,OAAO;;YACpB,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACpD,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;YAEtC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,aAAa,CACxC,OAAO,CAAC,UAAU,CAAC,KAAK,EACxB,UAAU,EACV,iBAAiB,CAClB,CAAC;YAEF,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QACrD,CAAC;KAAA;IAEK,SAAS,CAAC,OAAO;;YACrB,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACpD,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,CAAS,aAAa,CAAC,CAAC;YAEjE,IAAI,SAAS,EAAE,CAAC;gBACd,MAAM,MAAM,CAAC,aAAa,CACxB,OAAO,CAAC,UAAU,CAAC,KAAK,EACxB,SAAS,EACT,SAAS,CACV,CAAC;YACJ,CAAC;QACH,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|