agenttwin 0.3.21 → 0.3.23

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.
Files changed (411) hide show
  1. package/dist/api.js +2113 -609
  2. package/dist/dashboard/assets/dashboard/agent-home.css +7 -7
  3. package/dist/dashboard/assets/dashboard/bay-morning.webp +0 -0
  4. package/dist/dashboard/assets/dashboard/golden-gate-afternoon.webp +0 -0
  5. package/dist/dashboard/assets/dashboard/golden-gate-portrait.webp +0 -0
  6. package/dist/dashboard/assets/dashboard/moonlit-coast.webp +0 -0
  7. package/dist/dashboard/assets/next/static/chunks/{1250-7571b1a697f6bb4a.js → 1250-a3c859fd20517500.js} +1 -1
  8. package/dist/dashboard/assets/next/static/chunks/{2743-a0efd6f4aeb11cc5.js → 2743-72610a5d5a3f8462.js} +1 -1
  9. package/dist/dashboard/assets/next/static/chunks/5663-403316746afad10e.js +1 -0
  10. package/dist/dashboard/assets/next/static/chunks/app/dashboard/{page-9c11295678539a5f.js → page-0e0392368e0a891e.js} +1 -1
  11. package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-4981ea4966b19e3e.js +1 -0
  12. package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-dd4ac0f5f36e6bfa.js +1 -0
  13. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/{page-34574448d210c775.js → page-de0fe6d84be21e6a.js} +1 -1
  14. package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-360cbffc57981f6b.js +1 -0
  15. package/dist/dashboard/assets/next/static/chunks/app/v2/page-fc4df4912ce3af44.js +1 -0
  16. package/dist/dashboard/assets/next/static/chunks/{webpack-40324749d289e4a5.js → webpack-9e40ef55e5f2fb53.js} +1 -1
  17. package/dist/dashboard/assets/next/static/css/{42045de5f39b50ca.css → 37d81e1d2804cc5f.css} +1 -1
  18. package/dist/dashboard/assets/next/static/css/69ec1bae997c3bb0.css +1 -0
  19. package/dist/dashboard/assets/next/static/css/ad85402a1595e56e.css +1 -0
  20. package/dist/dashboard/assets/next/static/css/{4bbe78c2fe206b92.css → da981fb878a02b8c.css} +1 -1
  21. package/dist/dashboard/assets/next/static/media/bay-morning.82669113.webp +0 -0
  22. package/dist/dashboard/assets/next/static/media/golden-gate-afternoon.0aa49492.webp +0 -0
  23. package/dist/dashboard/assets/next/static/media/golden-gate-portrait.89fc667a.webp +0 -0
  24. package/dist/dashboard/assets/next/static/media/moonlit-coast.09739ef4.webp +0 -0
  25. package/dist/dashboard/index.html +2 -2
  26. package/dist/engine.js +6386 -4974
  27. package/dist/gateway.js +2194 -604
  28. package/dist/twins/catalog.json +6020 -0
  29. package/dist/twins/engine/v2/THIRD-PARTY.txt +25 -0
  30. package/dist/twins/engine/v2/chunks/2CHBP57N.mjs +8 -0
  31. package/dist/twins/engine/v2/chunks/4CPL6MPF.mjs +30 -0
  32. package/dist/twins/engine/v2/chunks/OYLYKZGD.mjs +2 -0
  33. package/dist/twins/engine/v2/chunks/SQSP35HM.mjs +38 -0
  34. package/dist/twins/engine/v2/chunks/YSJQQVUM.mjs +2 -0
  35. package/dist/twins/engine/v2/react-dom_client.mjs +272 -0
  36. package/dist/twins/engine/v2/react-dom_server.mjs +263 -0
  37. package/dist/twins/engine/v2/react.mjs +2 -0
  38. package/dist/twins/engine/v2/react_jsx-runtime.mjs +31 -0
  39. package/dist/twins/engine/v2/volter_world-core.mjs +195 -0
  40. package/dist/twins/engine/v2/volter_world-core_app-route.mjs +2 -0
  41. package/dist/twins/engine/v2/volter_world-core_network-policy.mjs +2 -0
  42. package/dist/twins/engine/v3/THIRD-PARTY.txt +65 -0
  43. package/dist/twins/engine/v3/chunks/2CHBP57N.mjs +8 -0
  44. package/dist/twins/engine/v3/chunks/2YSSPA5O.mjs +65 -0
  45. package/dist/twins/engine/v3/chunks/5PWRY4UK.mjs +154 -0
  46. package/dist/twins/engine/v3/chunks/7XRKSFFJ.mjs +2 -0
  47. package/dist/twins/engine/v3/chunks/AWOWH2H5.mjs +2 -0
  48. package/dist/twins/engine/v3/chunks/C46M5U3Q.mjs +2 -0
  49. package/dist/twins/engine/v3/chunks/MFH2VZPP.mjs +2 -0
  50. package/dist/twins/engine/v3/chunks/MWCO5UV3.mjs +2 -0
  51. package/dist/twins/engine/v3/chunks/N5BL5RDF.mjs +313 -0
  52. package/dist/twins/engine/v3/chunks/O7HGPMXG.mjs +2 -0
  53. package/dist/twins/engine/v3/chunks/OYLYKZGD.mjs +2 -0
  54. package/dist/twins/engine/v3/chunks/PLB7HTON.mjs +8 -0
  55. package/dist/twins/engine/v3/chunks/TY4LDBVH.mjs +7 -0
  56. package/dist/twins/engine/v3/chunks/VDIRUSCM.mjs +2 -0
  57. package/dist/twins/engine/v3/chunks/WGUCFQK6.mjs +2 -0
  58. package/dist/twins/engine/v3/chunks/WPATONSC.mjs +2 -0
  59. package/dist/twins/engine/v3/react_jsx-runtime.mjs +2 -0
  60. package/dist/twins/engine/v3/volter_world-core.mjs +2 -0
  61. package/dist/twins/engine/v3/volter_world-ui.mjs +559 -0
  62. package/dist/twins/packs/ahrefs/LICENSE +202 -0
  63. package/dist/twins/packs/ahrefs/NOTICE +7 -0
  64. package/dist/twins/packs/ahrefs/index.mjs +2 -0
  65. package/dist/twins/packs/ai-gateway/LICENSE +202 -0
  66. package/dist/twins/packs/ai-gateway/NOTICE +7 -0
  67. package/dist/twins/packs/ai-gateway/index.mjs +14 -0
  68. package/dist/twins/packs/airtable/LICENSE +202 -0
  69. package/dist/twins/packs/airtable/NOTICE +7 -0
  70. package/dist/twins/packs/airtable/index.mjs +2 -0
  71. package/dist/twins/packs/algolia/LICENSE +202 -0
  72. package/dist/twins/packs/algolia/NOTICE +7 -0
  73. package/dist/twins/packs/algolia/index.mjs +2 -0
  74. package/dist/twins/packs/ambientcg/LICENSE +202 -0
  75. package/dist/twins/packs/ambientcg/NOTICE +7 -0
  76. package/dist/twins/packs/ambientcg/index.mjs +2 -0
  77. package/dist/twins/packs/anthropic/LICENSE +202 -0
  78. package/dist/twins/packs/anthropic/NOTICE +7 -0
  79. package/dist/twins/packs/anthropic/index.mjs +18 -0
  80. package/dist/twins/packs/assemblyai/LICENSE +202 -0
  81. package/dist/twins/packs/assemblyai/NOTICE +7 -0
  82. package/dist/twins/packs/assemblyai/index.mjs +11 -0
  83. package/dist/twins/packs/aws/LICENSE +202 -0
  84. package/dist/twins/packs/aws/NOTICE +7 -0
  85. package/dist/twins/packs/aws/index.mjs +2 -0
  86. package/dist/twins/packs/azure/LICENSE +202 -0
  87. package/dist/twins/packs/azure/NOTICE +7 -0
  88. package/dist/twins/packs/azure/index.mjs +38 -0
  89. package/dist/twins/packs/azureformrecognizer/LICENSE +202 -0
  90. package/dist/twins/packs/azureformrecognizer/NOTICE +7 -0
  91. package/dist/twins/packs/azureformrecognizer/index.mjs +3 -0
  92. package/dist/twins/packs/bitly/LICENSE +202 -0
  93. package/dist/twins/packs/bitly/NOTICE +7 -0
  94. package/dist/twins/packs/bitly/index.mjs +2 -0
  95. package/dist/twins/packs/bluesky/LICENSE +202 -0
  96. package/dist/twins/packs/bluesky/NOTICE +7 -0
  97. package/dist/twins/packs/bluesky/index.mjs +30 -0
  98. package/dist/twins/packs/calcom/LICENSE +202 -0
  99. package/dist/twins/packs/calcom/NOTICE +7 -0
  100. package/dist/twins/packs/calcom/index.mjs +2 -0
  101. package/dist/twins/packs/clerk/LICENSE +202 -0
  102. package/dist/twins/packs/clerk/NOTICE +7 -0
  103. package/dist/twins/packs/clerk/index.mjs +5 -0
  104. package/dist/twins/packs/cloudflare/LICENSE +202 -0
  105. package/dist/twins/packs/cloudflare/NOTICE +7 -0
  106. package/dist/twins/packs/cloudflare/index.mjs +79 -0
  107. package/dist/twins/packs/cohere/LICENSE +202 -0
  108. package/dist/twins/packs/cohere/NOTICE +7 -0
  109. package/dist/twins/packs/cohere/index.mjs +2 -0
  110. package/dist/twins/packs/datadog/LICENSE +202 -0
  111. package/dist/twins/packs/datadog/NOTICE +7 -0
  112. package/dist/twins/packs/datadog/index.mjs +3 -0
  113. package/dist/twins/packs/deepinfra/LICENSE +202 -0
  114. package/dist/twins/packs/deepinfra/NOTICE +7 -0
  115. package/dist/twins/packs/deepinfra/index.mjs +13 -0
  116. package/dist/twins/packs/deepseek/LICENSE +202 -0
  117. package/dist/twins/packs/deepseek/NOTICE +7 -0
  118. package/dist/twins/packs/deepseek/index.mjs +12 -0
  119. package/dist/twins/packs/discord/LICENSE +202 -0
  120. package/dist/twins/packs/discord/NOTICE +7 -0
  121. package/dist/twins/packs/discord/index.mjs +2 -0
  122. package/dist/twins/packs/duckduckgo/LICENSE +202 -0
  123. package/dist/twins/packs/duckduckgo/NOTICE +7 -0
  124. package/dist/twins/packs/duckduckgo/index.mjs +532 -0
  125. package/dist/twins/packs/dynadot/LICENSE +202 -0
  126. package/dist/twins/packs/dynadot/NOTICE +7 -0
  127. package/dist/twins/packs/dynadot/index.mjs +2 -0
  128. package/dist/twins/packs/e2b/LICENSE +202 -0
  129. package/dist/twins/packs/e2b/NOTICE +7 -0
  130. package/dist/twins/packs/e2b/index.mjs +2 -0
  131. package/dist/twins/packs/elevenlabs/LICENSE +202 -0
  132. package/dist/twins/packs/elevenlabs/NOTICE +7 -0
  133. package/dist/twins/packs/elevenlabs/index.mjs +4 -0
  134. package/dist/twins/packs/expo/LICENSE +202 -0
  135. package/dist/twins/packs/expo/NOTICE +7 -0
  136. package/dist/twins/packs/expo/index.mjs +2 -0
  137. package/dist/twins/packs/fal/LICENSE +202 -0
  138. package/dist/twins/packs/fal/NOTICE +7 -0
  139. package/dist/twins/packs/fal/index.mjs +2 -0
  140. package/dist/twins/packs/figma/LICENSE +202 -0
  141. package/dist/twins/packs/figma/NOTICE +7 -0
  142. package/dist/twins/packs/figma/index.mjs +2 -0
  143. package/dist/twins/packs/firecrawl/LICENSE +202 -0
  144. package/dist/twins/packs/firecrawl/NOTICE +7 -0
  145. package/dist/twins/packs/firecrawl/index.mjs +9 -0
  146. package/dist/twins/packs/fireworks/LICENSE +202 -0
  147. package/dist/twins/packs/fireworks/NOTICE +7 -0
  148. package/dist/twins/packs/fireworks/index.mjs +13 -0
  149. package/dist/twins/packs/fly/LICENSE +202 -0
  150. package/dist/twins/packs/fly/NOTICE +7 -0
  151. package/dist/twins/packs/fly/index.mjs +2 -0
  152. package/dist/twins/packs/gcs/LICENSE +202 -0
  153. package/dist/twins/packs/gcs/NOTICE +7 -0
  154. package/dist/twins/packs/gcs/index.mjs +8 -0
  155. package/dist/twins/packs/gemini/LICENSE +202 -0
  156. package/dist/twins/packs/gemini/NOTICE +7 -0
  157. package/dist/twins/packs/gemini/index.mjs +7 -0
  158. package/dist/twins/packs/github/LICENSE +202 -0
  159. package/dist/twins/packs/github/NOTICE +7 -0
  160. package/dist/twins/packs/github/index.mjs +75153 -0
  161. package/dist/twins/packs/googleads/LICENSE +202 -0
  162. package/dist/twins/packs/googleads/NOTICE +7 -0
  163. package/dist/twins/packs/googleads/index.mjs +3 -0
  164. package/dist/twins/packs/googlemaps/LICENSE +202 -0
  165. package/dist/twins/packs/googlemaps/NOTICE +7 -0
  166. package/dist/twins/packs/googlemaps/index.mjs +2 -0
  167. package/dist/twins/packs/googleoauth/LICENSE +202 -0
  168. package/dist/twins/packs/googleoauth/NOTICE +7 -0
  169. package/dist/twins/packs/googleoauth/index.mjs +2 -0
  170. package/dist/twins/packs/hackernews/LICENSE +202 -0
  171. package/dist/twins/packs/hackernews/NOTICE +7 -0
  172. package/dist/twins/packs/hackernews/index.mjs +35 -0
  173. package/dist/twins/packs/huggingface/LICENSE +202 -0
  174. package/dist/twins/packs/huggingface/NOTICE +7 -0
  175. package/dist/twins/packs/huggingface/index.mjs +9 -0
  176. package/dist/twins/packs/inngest/LICENSE +202 -0
  177. package/dist/twins/packs/inngest/NOTICE +7 -0
  178. package/dist/twins/packs/inngest/index.mjs +2 -0
  179. package/dist/twins/packs/instagram/LICENSE +202 -0
  180. package/dist/twins/packs/instagram/NOTICE +7 -0
  181. package/dist/twins/packs/instagram/index.mjs +2 -0
  182. package/dist/twins/packs/jira/LICENSE +202 -0
  183. package/dist/twins/packs/jira/NOTICE +7 -0
  184. package/dist/twins/packs/jira/index.mjs +2 -0
  185. package/dist/twins/packs/langfuse/LICENSE +202 -0
  186. package/dist/twins/packs/langfuse/NOTICE +7 -0
  187. package/dist/twins/packs/langfuse/index.mjs +2 -0
  188. package/dist/twins/packs/linear/LICENSE +202 -0
  189. package/dist/twins/packs/linear/NOTICE +7 -0
  190. package/dist/twins/packs/linear/index.mjs +52866 -0
  191. package/dist/twins/packs/linkedin/LICENSE +202 -0
  192. package/dist/twins/packs/linkedin/NOTICE +7 -0
  193. package/dist/twins/packs/linkedin/index.mjs +78 -0
  194. package/dist/twins/packs/livekit/LICENSE +202 -0
  195. package/dist/twins/packs/livekit/NOTICE +7 -0
  196. package/dist/twins/packs/livekit/index.mjs +2 -0
  197. package/dist/twins/packs/mailgun/LICENSE +202 -0
  198. package/dist/twins/packs/mailgun/NOTICE +7 -0
  199. package/dist/twins/packs/mailgun/index.mjs +13 -0
  200. package/dist/twins/packs/mapbox/LICENSE +202 -0
  201. package/dist/twins/packs/mapbox/NOTICE +7 -0
  202. package/dist/twins/packs/mapbox/index.mjs +2 -0
  203. package/dist/twins/packs/merge/LICENSE +202 -0
  204. package/dist/twins/packs/merge/NOTICE +7 -0
  205. package/dist/twins/packs/merge/index.mjs +4 -0
  206. package/dist/twins/packs/mistral/LICENSE +202 -0
  207. package/dist/twins/packs/mistral/NOTICE +7 -0
  208. package/dist/twins/packs/mistral/index.mjs +6 -0
  209. package/dist/twins/packs/mixpanel/LICENSE +202 -0
  210. package/dist/twins/packs/mixpanel/NOTICE +8 -0
  211. package/dist/twins/packs/mixpanel/index.mjs +2 -0
  212. package/dist/twins/packs/mongodb/LICENSE +202 -0
  213. package/dist/twins/packs/mongodb/NOTICE +7 -0
  214. package/dist/twins/packs/mongodb/index.mjs +8 -0
  215. package/dist/twins/packs/moonshot/LICENSE +202 -0
  216. package/dist/twins/packs/moonshot/NOTICE +7 -0
  217. package/dist/twins/packs/moonshot/index.mjs +18 -0
  218. package/dist/twins/packs/notion/LICENSE +202 -0
  219. package/dist/twins/packs/notion/NOTICE +7 -0
  220. package/dist/twins/packs/notion/index.mjs +2 -0
  221. package/dist/twins/packs/npm-registry/LICENSE +202 -0
  222. package/dist/twins/packs/npm-registry/NOTICE +7 -0
  223. package/dist/twins/packs/npm-registry/index.mjs +2 -0
  224. package/dist/twins/packs/oa-treasury/LICENSE +202 -0
  225. package/dist/twins/packs/oa-treasury/NOTICE +8 -0
  226. package/dist/twins/packs/oa-treasury/index.mjs +16 -0
  227. package/dist/twins/packs/openai/LICENSE +202 -0
  228. package/dist/twins/packs/openai/NOTICE +7 -0
  229. package/dist/twins/packs/openai/index.mjs +3473 -0
  230. package/dist/twins/packs/openrouter/LICENSE +202 -0
  231. package/dist/twins/packs/openrouter/NOTICE +7 -0
  232. package/dist/twins/packs/openrouter/index.mjs +2 -0
  233. package/dist/twins/packs/openweather/LICENSE +202 -0
  234. package/dist/twins/packs/openweather/NOTICE +7 -0
  235. package/dist/twins/packs/openweather/index.mjs +2 -0
  236. package/dist/twins/packs/paypal/LICENSE +202 -0
  237. package/dist/twins/packs/paypal/NOTICE +7 -0
  238. package/dist/twins/packs/paypal/index.mjs +51 -0
  239. package/dist/twins/packs/pinecone/LICENSE +202 -0
  240. package/dist/twins/packs/pinecone/NOTICE +7 -0
  241. package/dist/twins/packs/pinecone/index.mjs +2 -0
  242. package/dist/twins/packs/plain/LICENSE +202 -0
  243. package/dist/twins/packs/plain/NOTICE +8 -0
  244. package/dist/twins/packs/plain/index.mjs +18426 -0
  245. package/dist/twins/packs/planetscale/LICENSE +202 -0
  246. package/dist/twins/packs/planetscale/NOTICE +7 -0
  247. package/dist/twins/packs/planetscale/index.mjs +18 -0
  248. package/dist/twins/packs/polar/LICENSE +202 -0
  249. package/dist/twins/packs/polar/NOTICE +7 -0
  250. package/dist/twins/packs/polar/index.mjs +2 -0
  251. package/dist/twins/packs/polyhaven/LICENSE +202 -0
  252. package/dist/twins/packs/polyhaven/NOTICE +7 -0
  253. package/dist/twins/packs/polyhaven/index.mjs +3 -0
  254. package/dist/twins/packs/postmark/LICENSE +202 -0
  255. package/dist/twins/packs/postmark/NOTICE +7 -0
  256. package/dist/twins/packs/postmark/index.mjs +12 -0
  257. package/dist/twins/packs/reddit/LICENSE +202 -0
  258. package/dist/twins/packs/reddit/NOTICE +7 -0
  259. package/dist/twins/packs/reddit/index.mjs +324 -0
  260. package/dist/twins/packs/redis/LICENSE +202 -0
  261. package/dist/twins/packs/redis/NOTICE +7 -0
  262. package/dist/twins/packs/redis/index.mjs +2 -0
  263. package/dist/twins/packs/replicate/LICENSE +202 -0
  264. package/dist/twins/packs/replicate/NOTICE +7 -0
  265. package/dist/twins/packs/replicate/index.mjs +2 -0
  266. package/dist/twins/packs/resend/LICENSE +202 -0
  267. package/dist/twins/packs/resend/NOTICE +7 -0
  268. package/dist/twins/packs/resend/index.mjs +139 -0
  269. package/dist/twins/packs/runhuman/LICENSE +202 -0
  270. package/dist/twins/packs/runhuman/NOTICE +7 -0
  271. package/dist/twins/packs/runhuman/index.mjs +3 -0
  272. package/dist/twins/packs/scrapecreators/LICENSE +202 -0
  273. package/dist/twins/packs/scrapecreators/NOTICE +7 -0
  274. package/dist/twins/packs/scrapecreators/index.mjs +2 -0
  275. package/dist/twins/packs/segment/LICENSE +202 -0
  276. package/dist/twins/packs/segment/NOTICE +8 -0
  277. package/dist/twins/packs/segment/index.mjs +2 -0
  278. package/dist/twins/packs/sendblue/LICENSE +202 -0
  279. package/dist/twins/packs/sendblue/NOTICE +7 -0
  280. package/dist/twins/packs/sendblue/index.mjs +2 -0
  281. package/dist/twins/packs/sendgrid/LICENSE +202 -0
  282. package/dist/twins/packs/sendgrid/NOTICE +8 -0
  283. package/dist/twins/packs/sendgrid/index.mjs +4 -0
  284. package/dist/twins/packs/sentry/LICENSE +202 -0
  285. package/dist/twins/packs/sentry/NOTICE +7 -0
  286. package/dist/twins/packs/sentry/index.mjs +5 -0
  287. package/dist/twins/packs/sigstore/LICENSE +202 -0
  288. package/dist/twins/packs/sigstore/NOTICE +7 -0
  289. package/dist/twins/packs/sigstore/index.mjs +12 -0
  290. package/dist/twins/packs/slack/LICENSE +202 -0
  291. package/dist/twins/packs/slack/NOTICE +7 -0
  292. package/dist/twins/packs/slack/index.mjs +66 -0
  293. package/dist/twins/packs/smtp/LICENSE +202 -0
  294. package/dist/twins/packs/smtp/NOTICE +7 -0
  295. package/dist/twins/packs/smtp/index.mjs +3 -0
  296. package/dist/twins/packs/snowflake/LICENSE +202 -0
  297. package/dist/twins/packs/snowflake/NOTICE +8 -0
  298. package/dist/twins/packs/snowflake/index.mjs +30 -0
  299. package/dist/twins/packs/stigg/LICENSE +202 -0
  300. package/dist/twins/packs/stigg/NOTICE +8 -0
  301. package/dist/twins/packs/stigg/index.mjs +22194 -0
  302. package/dist/twins/packs/stream/LICENSE +202 -0
  303. package/dist/twins/packs/stream/NOTICE +7 -0
  304. package/dist/twins/packs/stream/index.mjs +2 -0
  305. package/dist/twins/packs/stripe/LICENSE +202 -0
  306. package/dist/twins/packs/stripe/NOTICE +7 -0
  307. package/dist/twins/packs/stripe/index.mjs +211 -0
  308. package/dist/twins/packs/supabase/LICENSE +202 -0
  309. package/dist/twins/packs/supabase/NOTICE +7 -0
  310. package/dist/twins/packs/supabase/index.mjs +2 -0
  311. package/dist/twins/packs/supermemory/LICENSE +202 -0
  312. package/dist/twins/packs/supermemory/NOTICE +7 -0
  313. package/dist/twins/packs/supermemory/index.mjs +2 -0
  314. package/dist/twins/packs/svix/LICENSE +202 -0
  315. package/dist/twins/packs/svix/NOTICE +7 -0
  316. package/dist/twins/packs/svix/index.mjs +2 -0
  317. package/dist/twins/packs/tavily/LICENSE +202 -0
  318. package/dist/twins/packs/tavily/NOTICE +7 -0
  319. package/dist/twins/packs/tavily/index.mjs +2 -0
  320. package/dist/twins/packs/telegram/LICENSE +202 -0
  321. package/dist/twins/packs/telegram/NOTICE +7 -0
  322. package/dist/twins/packs/telegram/index.mjs +11 -0
  323. package/dist/twins/packs/temporal/LICENSE +202 -0
  324. package/dist/twins/packs/temporal/NOTICE +7 -0
  325. package/dist/twins/packs/temporal/index.mjs +44 -0
  326. package/dist/twins/packs/tiktok/LICENSE +202 -0
  327. package/dist/twins/packs/tiktok/NOTICE +7 -0
  328. package/dist/twins/packs/tiktok/index.mjs +2 -0
  329. package/dist/twins/packs/tinybird/LICENSE +202 -0
  330. package/dist/twins/packs/tinybird/NOTICE +7 -0
  331. package/dist/twins/packs/tinybird/index.mjs +50 -0
  332. package/dist/twins/packs/togetherai/LICENSE +202 -0
  333. package/dist/twins/packs/togetherai/NOTICE +7 -0
  334. package/dist/twins/packs/togetherai/index.mjs +11 -0
  335. package/dist/twins/packs/tremendous/LICENSE +202 -0
  336. package/dist/twins/packs/tremendous/NOTICE +7 -0
  337. package/dist/twins/packs/tremendous/index.mjs +2 -0
  338. package/dist/twins/packs/tripo/LICENSE +202 -0
  339. package/dist/twins/packs/tripo/NOTICE +7 -0
  340. package/dist/twins/packs/tripo/index.mjs +9 -0
  341. package/dist/twins/packs/tunnel/LICENSE +202 -0
  342. package/dist/twins/packs/tunnel/NOTICE +7 -0
  343. package/dist/twins/packs/tunnel/index.mjs +2 -0
  344. package/dist/twins/packs/twelvelabs/LICENSE +202 -0
  345. package/dist/twins/packs/twelvelabs/NOTICE +7 -0
  346. package/dist/twins/packs/twelvelabs/index.mjs +5 -0
  347. package/dist/twins/packs/twilio/LICENSE +202 -0
  348. package/dist/twins/packs/twilio/NOTICE +7 -0
  349. package/dist/twins/packs/twilio/index.mjs +2 -0
  350. package/dist/twins/packs/twitch/LICENSE +202 -0
  351. package/dist/twins/packs/twitch/NOTICE +7 -0
  352. package/dist/twins/packs/twitch/index.mjs +68 -0
  353. package/dist/twins/packs/upstash/LICENSE +202 -0
  354. package/dist/twins/packs/upstash/NOTICE +7 -0
  355. package/dist/twins/packs/upstash/index.mjs +14 -0
  356. package/dist/twins/packs/upstashvector/LICENSE +202 -0
  357. package/dist/twins/packs/upstashvector/NOTICE +7 -0
  358. package/dist/twins/packs/upstashvector/index.mjs +3 -0
  359. package/dist/twins/packs/vercel/LICENSE +202 -0
  360. package/dist/twins/packs/vercel/NOTICE +7 -0
  361. package/dist/twins/packs/vercel/index.mjs +10 -0
  362. package/dist/twins/packs/veriff/LICENSE +202 -0
  363. package/dist/twins/packs/veriff/NOTICE +7 -0
  364. package/dist/twins/packs/veriff/index.mjs +2 -0
  365. package/dist/twins/packs/vgauth/LICENSE +202 -0
  366. package/dist/twins/packs/vgauth/NOTICE +7 -0
  367. package/dist/twins/packs/vgauth/index.mjs +2 -0
  368. package/dist/twins/packs/vital/LICENSE +202 -0
  369. package/dist/twins/packs/vital/NOTICE +7 -0
  370. package/dist/twins/packs/vital/index.mjs +2 -0
  371. package/dist/twins/packs/volteridentity/LICENSE +202 -0
  372. package/dist/twins/packs/volteridentity/NOTICE +7 -0
  373. package/dist/twins/packs/volteridentity/index.mjs +2 -0
  374. package/dist/twins/packs/webrisk/LICENSE +202 -0
  375. package/dist/twins/packs/webrisk/NOTICE +7 -0
  376. package/dist/twins/packs/webrisk/index.mjs +2 -0
  377. package/dist/twins/packs/worldlabs/LICENSE +202 -0
  378. package/dist/twins/packs/worldlabs/NOTICE +7 -0
  379. package/dist/twins/packs/worldlabs/index.mjs +2 -0
  380. package/dist/twins/packs/x/LICENSE +202 -0
  381. package/dist/twins/packs/x/NOTICE +7 -0
  382. package/dist/twins/packs/x/index.mjs +63 -0
  383. package/dist/twins/packs/xai/LICENSE +202 -0
  384. package/dist/twins/packs/xai/NOTICE +7 -0
  385. package/dist/twins/packs/xai/index.mjs +4 -0
  386. package/dist/twins/packs/xidentity/LICENSE +202 -0
  387. package/dist/twins/packs/xidentity/NOTICE +8 -0
  388. package/dist/twins/packs/xidentity/index.mjs +209 -0
  389. package/dist/twins/packs/youtube/LICENSE +202 -0
  390. package/dist/twins/packs/youtube/NOTICE +7 -0
  391. package/dist/twins/packs/youtube/index.mjs +5 -0
  392. package/dist/worker.js +442 -18
  393. package/dist/world-host.js +928 -91
  394. package/package.json +6 -5
  395. package/dist/dashboard/assets/dashboard/bay-morning.png +0 -0
  396. package/dist/dashboard/assets/dashboard/golden-gate-afternoon.png +0 -0
  397. package/dist/dashboard/assets/dashboard/golden-gate-portrait.png +0 -0
  398. package/dist/dashboard/assets/dashboard/moonlit-coast.png +0 -0
  399. package/dist/dashboard/assets/next/static/chunks/2868-424d32cfc8ae81c9.js +0 -1
  400. package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-f9fca2c08f779fa0.js +0 -1
  401. package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-bc480c9258e5cc4d.js +0 -1
  402. package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-f04c0b236abaead3.js +0 -1
  403. package/dist/dashboard/assets/next/static/chunks/app/v2/page-07c8054d57c9089b.js +0 -1
  404. package/dist/dashboard/assets/next/static/css/4af3c8ca0da0f48b.css +0 -1
  405. package/dist/dashboard/assets/next/static/css/6b8edde77e493a51.css +0 -1
  406. package/dist/dashboard/assets/next/static/media/bay-morning.1a9f358c.png +0 -0
  407. package/dist/dashboard/assets/next/static/media/golden-gate-afternoon.3e7cea58.png +0 -0
  408. package/dist/dashboard/assets/next/static/media/golden-gate-portrait.7941528f.png +0 -0
  409. package/dist/dashboard/assets/next/static/media/moonlit-coast.bbe901a1.png +0 -0
  410. /package/dist/dashboard/assets/next/static/{5ub3D2yzS8DE7w2qZd1nv → GTd0IQ6HYyhE_2HqcgFno}/_buildManifest.js +0 -0
  411. /package/dist/dashboard/assets/next/static/{5ub3D2yzS8DE7w2qZd1nv → GTd0IQ6HYyhE_2HqcgFno}/_ssgManifest.js +0 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,7 @@
1
+ @agenttwin/twin-googleads
2
+
3
+ Contains @volter/twin-googleads 0.1.37 by Volter (https://github.com/volter-ai),
4
+ licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ Modified by AgentTwin: bundled and minified into one file; only code reachable from the pack's
7
+ fetch factory is included; shared modules are imported from the AgentTwin twin engine.
@@ -0,0 +1,3 @@
1
+ import{createRequire as __atReq}from'node:module';const require=__atReq(import.meta.url);
2
+ import{applyTwinWrite as Ke,ownFields as Xe,twinResources as ve}from"../../engine/v2/volter_world-core.mjs";function Y(e){switch(e){case 400:return"INVALID_ARGUMENT";case 401:return"UNAUTHENTICATED";case 403:return"PERMISSION_DENIED";case 404:return"NOT_FOUND";case 409:return"ALREADY_EXISTS";case 405:return"FAILED_PRECONDITION";case 429:return"RESOURCE_EXHAUSTED";case 501:return"UNIMPLEMENTED";default:return"INTERNAL"}}function k(e,t,o,n){if(t.length===0)throw new Error("googleAdsFailure: at least one error spec is required");return{error:{code:e,message:t[0].message,status:Y(e),details:[{"@type":`type.googleapis.com/google.ads.googleads.${n}.errors.GoogleAdsFailure`,errors:t.map(i=>({errorCode:{[i.code]:i.value},message:i.message,...i.trigger?{trigger:i.trigger}:{},...i.fieldPath?{location:{fieldPathElements:i.fieldPath}}:{}})),requestId:o}]}}}function z(){return{error:{code:401,message:"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",status:"UNAUTHENTICATED"}}}function y(e,t,o){return{error:{code:e,message:t,status:Y(e),...o?{details:[{"@type":"type.googleapis.com/google.rpc.ErrorInfo",reason:o,domain:"datamanager.googleapis.com"}]}:{}}}}var K=new Set(["accessible_bidding_strategy","account_budget","account_budget_proposal","account_link","ad","ad_group","ad_group_ad","ad_group_ad_asset_combination_view","ad_group_ad_asset_view","ad_group_ad_label","ad_group_asset","ad_group_asset_set","ad_group_audience_view","ad_group_bid_modifier","ad_group_criterion","ad_group_criterion_customizer","ad_group_criterion_label","ad_group_criterion_simulation","ad_group_customizer","ad_group_label","ad_group_simulation","ad_parameter","ad_schedule_view","age_range_view","ai_max_search_term_ad_combination_view","android_privacy_shared_key_google_ad_group","android_privacy_shared_key_google_campaign","android_privacy_shared_key_google_network_type","asset","asset_field_type_view","asset_group","asset_group_asset","asset_group_listing_group_filter","asset_group_product_group_view","asset_group_signal","asset_group_top_combination_view","asset_set","asset_set_asset","asset_set_type_view","audience","batch_job","bidding_data_exclusion","bidding_seasonality_adjustment","bidding_strategy","bidding_strategy_simulation","billing_setup","call_view","campaign","campaign_aggregate_asset_view","campaign_asset","campaign_asset_set","campaign_audience_view","campaign_bid_modifier","campaign_budget","campaign_conversion_goal","campaign_criterion","campaign_customizer","campaign_draft","campaign_goal_config","campaign_group","campaign_label","campaign_lifecycle_goal","campaign_search_term_insight","campaign_search_term_view","campaign_shared_set","campaign_simulation","carrier_constant","change_event","change_status","channel_aggregate_asset_view","click_view","combined_audience","content_criterion_view","conversion_action","conversion_custom_variable","conversion_goal_campaign_config","conversion_value_rule","conversion_value_rule_set","currency_constant","custom_audience","custom_conversion_goal","custom_interest","customer","customer_asset","customer_asset_set","customer_client","customer_client_link","customer_conversion_goal","customer_customizer","customer_label","customer_lifecycle_goal","customer_manager_link","customer_negative_criterion","customer_search_term_insight","customer_sk_ad_network_conversion_value_schema","customer_user_access","customer_user_access_invitation","customizer_attribute","data_link","detail_content_suitability_placement_view","detail_placement_view","detailed_demographic","display_keyword_view","distance_view","domain_category","dynamic_search_ads_search_term_view","expanded_landing_page_view","experiment","experiment_arm","final_url_expansion_asset_view","gender_view","geo_target_constant","geographic_view","goal","google_ads_field","group_content_suitability_placement_view","group_placement_view","hotel_group_view","hotel_performance_view","hotel_reconciliation","income_range_view","invoice","keyword_plan","keyword_plan_ad_group","keyword_plan_ad_group_keyword","keyword_plan_campaign","keyword_plan_campaign_keyword","keyword_theme_constant","keyword_view","label","landing_page_view","language_constant","lead_form_submission_data","life_event","local_services_employee","local_services_lead","local_services_lead_conversation","local_services_verification_artifact","location_interest_view","location_view","managed_placement_view","media_file","mobile_app_category_constant","mobile_device_constant","multi_party_auth_review","offline_conversion_upload_client_summary","offline_conversion_upload_conversion_action_summary","offline_user_data_job","operating_system_version_constant","paid_organic_search_term_view","parental_status_view","payments_account","per_store_view","performance_max_placement_view","product_category_constant","product_group_view","product_link","product_link_invitation","qualifying_question","recommendation","recommendation_subscription","remarketing_action","search_term_view","shared_criterion","shared_set","shopping_performance_view","shopping_product","smart_campaign_search_term_view","smart_campaign_setting","targeting_expansion_view","third_party_app_analytics_link","topic_constant","topic_view","travel_activity_group_view","travel_activity_performance_view","user_interest","user_list","user_list_customer_type","user_location_view","video","webpage_view"]),ue={customer:new Set(["auto_tagging_enabled","call_reporting_setting","contains_eu_political_advertising","conversion_tracking_setting","currency_code","customer_agreement_setting","descriptive_name","final_url_suffix","has_partners_badge","id","image_asset_auto_migration_done","image_asset_auto_migration_done_date_time","local_services_settings","location_asset_auto_migration_done","location_asset_auto_migration_done_date_time","manager","optimization_score","optimization_score_weight","pay_per_conversion_eligibility_failure_reasons","remarketing_setting","resource_name","status","test_account","time_zone","tracking_url_template","video_brand_safety_suitability","video_customer"]),customer_client:new Set(["applied_labels","client_customer","currency_code","descriptive_name","hidden","id","level","manager","resource_name","status","test_account","time_zone"]),customer_client_link:new Set(["client_customer","hidden","manager_link_id","resource_name","status"]),conversion_action:new Set(["app_id","attribution_model_settings","attribution_model_settings.attribution_model","attribution_model_settings.data_driven_model_status","category","click_through_lookback_window_days","counting_type","firebase_settings","firebase_settings.event_name","firebase_settings.project_id","firebase_settings.property_id","firebase_settings.property_name","google_analytics_4_settings","google_analytics_4_settings.event_name","google_analytics_4_settings.property_id","google_analytics_4_settings.property_name","id","include_in_conversions_metric","mobile_app_vendor","name","origin","owner_customer","phone_call_duration_seconds","primary_for_goal","resource_name","status","tag_snippets","third_party_app_analytics_settings","third_party_app_analytics_settings.event_name","third_party_app_analytics_settings.provider_name","type","value_settings","value_settings.always_use_default_value","value_settings.default_currency_code","value_settings.default_value","view_through_lookback_window_days"])};var m=class extends Error{queryError;constructor(t,o){super(o),this.name="GaqlError",this.queryError=t}},G={customer:{joins:[],fields:{resource_name:"resource_name",id:"int64",descriptive_name:"string",currency_code:"string",time_zone:"string",tracking_url_template:"string",final_url_suffix:"string",auto_tagging_enabled:"bool",manager:"bool",test_account:"bool",status:"enum",optimization_score:"double"}},customer_client:{joins:["customer"],fields:{resource_name:"resource_name",client_customer:"resource_name",id:"int64",descriptive_name:"string",currency_code:"string",time_zone:"string",manager:"bool",test_account:"bool",hidden:"bool",level:"int64",status:"enum"}},customer_client_link:{joins:["customer"],fields:{resource_name:"resource_name",client_customer:"resource_name",manager_link_id:"int64",status:"enum",hidden:"bool"}},conversion_action:{joins:["customer"],fields:{resource_name:"resource_name",id:"int64",name:"string",status:"enum",type:"enum",category:"enum",origin:"enum",owner_customer:"resource_name",primary_for_goal:"bool",include_in_conversions_metric:"bool",click_through_lookback_window_days:"int64",view_through_lookback_window_days:"int64",counting_type:"enum","value_settings.default_value":"double","value_settings.default_currency_code":"string","value_settings.always_use_default_value":"bool","attribution_model_settings.attribution_model":"enum"}}},qe=["metrics.","segments."],xe=new Set(["=","!","<",">"]);function He(e){let t=[],o=0;for(;o<e.length;){let n=e[o];if(/\s/.test(n)){o+=1;continue}if(n==="("||n===")"||n===","){t.push({kind:"punct",value:n}),o+=1;continue}if(n==="'"||n==='"'){let i=n,r=o+1,s="";for(;r<e.length&&e[r]!==i;){if(e[r]==="\\"&&r+1<e.length){s+=e[r+1],r+=2;continue}if(e[r]===`
3
+ `)throw new m("STRING_NOT_TERMINATED","A string literal may not contain a newline.");s+=e[r],r+=1}if(r>=e.length)throw new m("STRING_NOT_TERMINATED",`Unterminated string literal starting at offset ${o}.`);t.push({kind:"string",value:s}),o=r+1;continue}if(xe.has(n)){let i=e.slice(o,o+2);if(i==="!="||i===">="||i==="<="){t.push({kind:"op",value:i}),o+=2;continue}if(n==="="||n===">"||n==="<"){t.push({kind:"op",value:n}),o+=1;continue}throw new m("BAD_SYMBOL",`Unexpected symbol '${n}' at offset ${o}.`)}if(/[0-9]/.test(n)||n==="-"&&/[0-9]/.test(e[o+1]??"")){let i=o+1;for(;i<e.length&&/[0-9.]/.test(e[i]);)i+=1;t.push({kind:"number",value:e.slice(o,i)}),o=i;continue}if(/[A-Za-z_]/.test(n)){let i=o;for(;i<e.length&&/[A-Za-z0-9_.@]/.test(e[i]);)i+=1;t.push({kind:"word",value:e.slice(o,i)}),o=i;continue}throw new m("BAD_SYMBOL",`Unexpected symbol '${n}' at offset ${o}.`)}return t}var We=new Set(["=","!=",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","IS NULL","IS NOT NULL","REGEXP_MATCH","NOT REGEXP_MATCH"]),je=new Set(["DURING","BETWEEN","CONTAINS ANY","CONTAINS ALL","CONTAINS NONE"]);function X(e){if(typeof e!="string"||e.trim()==="")throw new m("UNEXPECTED_END_OF_QUERY","The query is empty.");let t=He(e),o=0,n=()=>t[o],i=()=>n()?.kind==="word"?n().value:void 0,r=()=>(i()??"").toUpperCase();if(r()!=="SELECT")throw new m("EXPECTED_SELECT","The query must start with a SELECT clause.");o+=1;let s=[];for(;;){let u=n();if(u===void 0)throw new m("UNEXPECTED_END_OF_QUERY","The SELECT clause is not followed by a FROM clause.");if(u.kind!=="word")throw new m("BAD_FIELD_NAME",`Expected a field name in the SELECT clause, found '${u.value}'.`);if(u.value.toUpperCase()==="FROM")break;s.push(u.value),o+=1;let g=n();if(g!==void 0&&g.kind==="punct"&&g.value===","){o+=1;continue}if(g===void 0)throw new m("EXPECTED_FROM","The query has no FROM clause.");if(g.kind!=="word"||g.value.toUpperCase()!=="FROM")throw new m("UNEXPECTED_INPUT",`Expected ',' or FROM after '${u.value}', found '${String(g.value)}'.`)}if(s.length===0)throw new m("EXPECTED_SELECT","The SELECT clause names no fields.");if(r()!=="FROM")throw new m("EXPECTED_FROM","The query has no FROM clause.");o+=1;let a=i();if(a===void 0)throw new m("EXPECTED_FROM","The FROM clause names no resource.");o+=1;let c=[],d=[],_;if(r()==="WHERE")for(o+=1;;){let u=n();if(u===void 0||u.kind!=="word")throw new m("UNEXPECTED_END_OF_QUERY","The WHERE clause is incomplete.");let g=u.value;o+=1;let A=n();if(A===void 0)throw new m("UNEXPECTED_END_OF_QUERY",`The condition on '${g}' has no operator.`);let f;if(A.kind==="op")f=A.value,o+=1;else if(A.kind==="word"){let S=A.value.toUpperCase(),v=t[o+1],E=v!==void 0&&v.kind==="word"?v.value.toUpperCase():"",b=`${S} ${E}`;if(S==="NOT"&&(E==="IN"||E==="LIKE"||E==="REGEXP_MATCH"))f=b,o+=2;else if(S==="IS"&&E==="NOT"){let I=t[o+2],Q=I!==void 0&&I.kind==="word"?I.value.toUpperCase():"";if(Q!=="NULL")throw new m("BAD_VALUE",`The IS NOT operator on '${g}' takes NULL; found '${Q===""?"end of query":Q}'.`);f="IS NOT NULL",o+=3}else S==="IS"&&E==="NULL"?(f="IS NULL",o+=2):S==="CONTAINS"?(f=b,o+=2):(f=S,o+=1)}else throw new m("BAD_OPERATOR",`Expected an operator after '${g}', found '${A.value}'.`);if(je.has(f))throw new m("QUERY_ERROR",`[twin gap] the GAQL operator '${f}' is real Google Ads behavior this twin does not evaluate yet (googleads.reporting.operators).`);if(!We.has(f))throw new m("BAD_OPERATOR",`'${f}' is not a valid GAQL operator.`);let h=[];if(f!=="IS NULL"&&f!=="IS NOT NULL")if(f==="IN"||f==="NOT IN"){let v=n();if(v===void 0||v.kind!=="punct"||v.value!=="(")throw new m("EXPECTED_LIST",`The ${f} operator on '${g}' requires a parenthesised list.`);for(o+=1;;){let E=n();if(E===void 0)throw new m("UNEXPECTED_END_OF_QUERY",`The ${f} list on '${g}' is not closed.`);if(E.kind==="punct"&&E.value===")"){o+=1;break}if(E.kind==="punct"&&E.value===","){o+=1;continue}h.push(de(E)),o+=1}if(h.length===0)throw new m("EXPECTED_LIST",`The ${f} list on '${g}' is empty.`)}else{let v=n();if(v===void 0)throw new m("UNEXPECTED_END_OF_QUERY",`The condition on '${g}' has no value.`);if(v.kind==="punct")throw new m("EXPECTED_SINGLE_VALUE",`The ${f} operator on '${g}' takes a single value.`);h.push(de(v)),o+=1}c.push({field:g,operator:f,values:h});let T=r();if(T==="AND"){o+=1;continue}if(T==="OR")throw new m("EXPECTED_AND","GAQL supports only AND between WHERE conditions.");break}if(r()==="ORDER"){if(o+=1,r()!=="BY")throw new m("EXPECTED_BY","ORDER must be followed by BY.");for(o+=1;;){let u=n();if(u===void 0||u.kind!=="word")throw new m("UNEXPECTED_END_OF_QUERY","The ORDER BY clause names no field.");let g=u.value;o+=1;let A=!1,f=r();f==="ASC"?o+=1:f==="DESC"&&(A=!0,o+=1),d.push({field:g,descending:A});let h=n();if(h!==void 0&&h.kind==="punct"&&h.value===","){o+=1;continue}break}}if(r()==="LIMIT"){o+=1;let u=n();if(u===void 0||u.kind!=="number")throw new m("BAD_LIMIT_VALUE","LIMIT must be followed by a number.");let g=Number(u.value);if(!Number.isInteger(g))throw new m("BAD_LIMIT_VALUE",`'${u.value}' is not a valid LIMIT.`);if(g<1)throw new m("LIMIT_VALUE_TOO_LOW","LIMIT must be at least 1.");_=g,o+=1}if(r()==="PARAMETERS")throw new m("QUERY_ERROR","[twin gap] the PARAMETERS clause is real GAQL this twin does not evaluate yet (googleads.reporting.parameters).");let l=n();if(l!==void 0)throw new m("UNEXPECTED_INPUT",`Unexpected input '${String(l.value)}' after the end of the query.`);return{select:s,from:a,where:c,orderBy:d,..._===void 0?{}:{limit:_}}}function de(e){if(e.kind==="string")return{kind:"string",raw:e.value};if(e.kind==="number")return{kind:"number",raw:e.value};if(e.kind==="word"){if(/^(true|false)$/i.test(e.value))return{kind:"enum",raw:e.value.toLowerCase()};if(!/^[A-Z][A-Z0-9_]*$/.test(e.value))throw new m("BAD_VALUE",`'${e.value}' is not a valid value; enum constants are UPPER_SNAKE_CASE, booleans are true/false, and strings are quoted.`);return{kind:"enum",raw:e.value}}throw new m("BAD_VALUE",`'${String(e.value)}' is not a valid value.`)}function B(e){return e.split(".").map(t=>t.replace(/_([a-z0-9])/g,(o,n)=>n.toUpperCase())).join(".")}function me(e){let t=e.indexOf(".");if(t<=0)throw new m("BAD_FIELD_NAME",`'${e}' is not a valid field name; fields are '<resource>.<attribute>'.`);return{resource:e.slice(0,t),attribute:e.slice(t+1)}}function Z(e){let t=G[e.from];if(t===void 0)throw K.has(e.from)?new m("QUERY_ERROR",`[twin gap] '${e.from}' is a real Google Ads v22 resource this twin does not store yet (googleads.reporting.resources).`):new m("BAD_RESOURCE_TYPE_IN_FROM_CLAUSE",`'${e.from}' is not a valid resource name in the FROM clause.`);let o=new Set([e.from,...t.joins]),n=(r,s)=>{for(let _ of qe)if(r.startsWith(_))throw new m("QUERY_ERROR",`[twin gap] '${r}' is a real Google Ads ${_.slice(0,-1)} field this twin does not compute yet (googleads.reporting.${_.slice(0,-1)}).`);let{resource:a,attribute:c}=me(r);if(!o.has(a))throw G[a]!==void 0||K.has(a)?new m(s==="WHERE"?"PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE":"PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE",`'${a}' cannot be selected together with '${e.from}'.`):new m("UNRECOGNIZED_FIELD",`'${r}' is not a recognized field.`);let d=G[a].fields;if(d[c]===void 0)throw ue[a]?.has(c)===!0?new m("QUERY_ERROR",`[twin gap] '${r}' is a real Google Ads v22 field this twin does not project yet (googleads.reporting.fields).`):new m("UNRECOGNIZED_FIELD",`'${r}' is not a recognized field.`);if(s==="WHERE"){let _=e.where.find(u=>u.field===r),l=d[c];if(_!==void 0&&Qe.has(_.operator)&&l!=="string"&&l!=="resource_name")throw new m("OPERATOR_FIELD_MISMATCH",`The ${_.operator} operator cannot be applied to '${r}', which is not a string field.`)}};for(let r of e.select)n(r,"SELECT");for(let r of e.where)n(r.field,"WHERE");for(let r of e.orderBy)n(r.field,"ORDER BY");let i=[...new Set([...e.select,...e.where.map(r=>r.field),...e.orderBy.map(r=>r.field)])];return{query:e,touched:i,fieldMask:e.select.map(B).join(",")}}function ge(e){let{resource:t,attribute:o}=me(e);return G[t].fields[o]}function U(e,t){return typeof e=="number"&&typeof t=="number"?e-t:String(e??"").localeCompare(String(t??""))}function le(e,t){if(/[[\]]/.test(t))throw new m("INVALID_VALUE_WITH_LIKE_OPERATOR",`[twin gap] the LIKE pattern ${JSON.stringify(t)} uses square brackets, whose GAQL meaning this twin does not model - refusing rather than answering an empty page (googleads.reporting.like_brackets).`);let o=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/%/g,".*").replace(/_/g,".");return new RegExp(`^${o}$`).test(e)}var Qe=new Set(["LIKE","NOT LIKE","REGEXP_MATCH","NOT REGEXP_MATCH"]);function M(e,t,o){return o==="int64"?String(e??"")===t.raw:o==="double"?Number(e)===Number(t.raw):o==="bool"?!!e==(t.raw.toLowerCase()==="true"):String(e??"")===t.raw}function Ye(e,t){let o=e[t.field],n=ge(t.field);switch(t.operator){case"IS NULL":return o==null;case"IS NOT NULL":return o!=null;case"=":return M(o,t.values[0],n);case"!=":return!M(o,t.values[0],n);case"IN":return t.values.some(i=>M(o,i,n));case"NOT IN":return!t.values.some(i=>M(o,i,n));case"LIKE":return le(String(o??""),t.values[0].raw);case"NOT LIKE":return!le(String(o??""),t.values[0].raw);case"REGEXP_MATCH":return new RegExp(t.values[0].raw).test(String(o??""));case"NOT REGEXP_MATCH":return!new RegExp(t.values[0].raw).test(String(o??""));case">":return U(o,F(t.values[0],n))>0;case">=":return U(o,F(t.values[0],n))>=0;case"<":return U(o,F(t.values[0],n))<0;case"<=":return U(o,F(t.values[0],n))<=0;default:throw new m("BAD_OPERATOR",`'${t.operator}' is not a valid GAQL operator.`)}}function F(e,t){return t==="int64"||t==="double"?Number(e.raw):e.raw}function _e(e,t,o){let n=t.split("."),i=e;for(let r=0;r<n.length-1;r+=1){let s=n[r];(typeof i[s]!="object"||i[s]===null)&&(i[s]={}),i=i[s]}i[n[n.length-1]]=o}function ze(e,t){if(e!=null)return t==="int64"?String(e):t==="double"?Number(e):t==="bool"?!!e:String(e)}function J(e,t,o){let{query:n}=e,i=t.filter(r=>n.where.every(s=>Ye(r,s)));for(let r of[...n.orderBy].reverse())i=[...i].sort((s,a)=>(r.descending?-1:1)*U(s[r.field],a[r.field]));return n.limit!==void 0&&(i=i.slice(0,n.limit)),i.map(r=>{let s={};_e(s,`${B(n.from)}.resourceName`,o(r));for(let a of n.select){let c=ze(r[a],ge(a));c!==void 0&&_e(s,B(a),c)}return s})}var te="googleads",R="v22",H="v1";function oe(e,t,o){let n="";for(let i=0;n.length<t;i+=1){let r=2166136261,s=`${e}#${i}`;for(let a=0;a<s.length;a+=1)r^=s.charCodeAt(a),r=Math.imul(r,16777619)>>>0;for(let a=0;a<6&&n.length<t;a+=1)n+=o[(r>>>a*5)%o.length],r=Math.imul(r^a+1,16777619)>>>0}return n}var Ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function Je(e){return oe(`${e.method} ${e.path} ${e.body??""} ${e.occurredAt??""} #${et(e.root)}`,22,Ze)}function et(e){return q("ingest_request",e).size+q("click_conversion",e).size}var tt=[{id:"1234567890",descriptiveName:"Twin Manager Account",currencyCode:"USD",timeZone:"America/Los_Angeles",manager:!0,testAccount:!1,status:"ENABLED",autoTaggingEnabled:!0,trackingUrlTemplate:"",finalUrlSuffix:"",optimizationScore:0,directlyAccessible:!0},{id:"2345678901",descriptiveName:"Twin Advertiser",currencyCode:"USD",timeZone:"America/Los_Angeles",manager:!1,testAccount:!1,status:"ENABLED",autoTaggingEnabled:!0,trackingUrlTemplate:"",finalUrlSuffix:"",optimizationScore:.81,directlyAccessible:!0},{id:"3456789012",descriptiveName:"Twin Managed Client",currencyCode:"EUR",timeZone:"Europe/Berlin",manager:!1,testAccount:!1,status:"ENABLED",autoTaggingEnabled:!0,trackingUrlTemplate:"",finalUrlSuffix:"",optimizationScore:.64,directlyAccessible:!1}],Ae=[{id:"1234567890~2345678901",managerCustomerId:"1234567890",clientCustomerId:"2345678901",managerLinkId:"1",status:"ACTIVE",hidden:!1},{id:"1234567890~3456789012",managerCustomerId:"1234567890",clientCustomerId:"3456789012",managerLinkId:"2",status:"ACTIVE",hidden:!1}],ot=new Set(["AD_CALL","CLICK_TO_CALL","GOOGLE_PLAY_DOWNLOAD","GOOGLE_PLAY_IN_APP_PURCHASE","UPLOAD_CALLS","UPLOAD_CLICKS","WEBPAGE","WEBSITE_CALL","STORE_SALES_DIRECT_UPLOAD","STORE_SALES","FIREBASE_ANDROID_FIRST_OPEN","FIREBASE_ANDROID_IN_APP_PURCHASE","FIREBASE_ANDROID_CUSTOM","FIREBASE_IOS_FIRST_OPEN","FIREBASE_IOS_IN_APP_PURCHASE","FIREBASE_IOS_CUSTOM","THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN","THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN","ANDROID_APP_PRE_REGISTRATION","ANDROID_INSTALLS_ALL_OTHER_APPS","FLOODLIGHT_ACTION","FLOODLIGHT_TRANSACTION","GOOGLE_HOSTED","LEAD_FORM_SUBMIT","SALESFORCE","SEARCH_ADS_360","SMART_CAMPAIGN_AD_CLICKS_TO_CALL","SMART_CAMPAIGN_MAP_CLICKS_TO_CALL","SMART_CAMPAIGN_MAP_DIRECTIONS","SMART_CAMPAIGN_TRACKED_CALLS","STORE_VISITS","WEBPAGE_CODELESS","UNIVERSAL_ANALYTICS_GOAL","UNIVERSAL_ANALYTICS_TRANSACTION","GOOGLE_ANALYTICS_4_CUSTOM","GOOGLE_ANALYTICS_4_PURCHASE"]),fe=new Set(["ENABLED","REMOVED","HIDDEN"]),pe=new Set(["DEFAULT","PAGE_VIEW","PURCHASE","SIGNUP","LEAD","DOWNLOAD","ADD_TO_CART","BEGIN_CHECKOUT","SUBSCRIBE_PAID","PHONE_CALL_LEAD","IMPORTED_LEAD","SUBMIT_LEAD_FORM","BOOK_APPOINTMENT","REQUEST_QUOTE","GET_DIRECTIONS","OUTBOUND_CLICK","CONTACT","ENGAGEMENT","STORE_VISIT","STORE_SALE","QUALIFIED_LEAD","CONVERTED_LEAD"]),nt=new Set(["ONE_PER_CLICK","MANY_PER_CLICK"]);function P(e,t){return ve(te,t).filter(o=>o.type===e).map(o=>{let n=Xe(o);return{...n,id:n.id??o.id}}).filter(o=>o.removed!==!0)}function q(e,t){return new Set(ve(te,t).filter(o=>o.type===e).map(o=>String(o.id)))}async function w(e,t,o,n,i){await Ke(te,{operation:o,subjectType:e,subjectId:t,fields:n,...i.occurredAt?{occurredAt:i.occurredAt}:{},actor:{kind:"agent"}},i.root)}function O(e){let t=new Map;for(let o of tt)t.set(o.id,o);for(let o of P("customer",e)){let n=String(o.id),i=t.get(n);t.set(n,{...i??{},...o,id:n})}return[...t.values()].sort((o,n)=>o.id.localeCompare(n.id))}function C(e){let t=new Map;for(let o of Ae)t.set(o.id,o);for(let o of P("customer_client_link",e)){let n=String(o.id);t.set(n,{...t.get(n)??{},...o,id:n})}return[...t.values()].filter(o=>o.status!=="INACTIVE").sort((o,n)=>o.id.localeCompare(n.id))}function W(e,t){return P("conversion_action",t).filter(o=>String(o.customerId)===e).sort((o,n)=>String(o.id).localeCompare(String(n.id)))}function x(e,t){let o=t;for(;e.has(String(o));)o+=1;return String(o)}function rt(e,t){return t.filter(o=>o.managerCustomerId===e&&o.status==="ACTIVE").map(o=>o.clientCustomerId)}function ne(e,t){let o=[{id:e,level:0}],n=new Set([e]);for(let i=0;i<o.length;i+=1){let r=o[i];for(let s of rt(r.id,t))n.has(s)||(n.add(s),o.push({id:s,level:r.level+1}))}return o}function re(e,t,o,n){let i=o.find(a=>a.id===e);if(i===void 0)return{ok:!1,reason:`The caller does not have permission to access customer ${e}.`};if(t===null)return i.directlyAccessible?{ok:!0}:{ok:!1,reason:`Customer ${e} is only reachable through a manager account; set the login-customer-id header.`};let r=o.find(a=>a.id===t);return r===void 0||!r.directlyAccessible?{ok:!1,reason:`The caller does not have permission to use login-customer-id ${t}.`}:!r.manager&&t!==e?{ok:!1,reason:`login-customer-id ${t} is not a manager account.`}:ne(t,n).some(a=>a.id===e)?{ok:!0}:{ok:!1,reason:`Customer ${e} is not managed by login-customer-id ${t}.`}}function V(e,t){let o=e.headers??{},n=Object.keys(o).find(i=>i.toLowerCase()===t);return n===void 0?void 0:o[n]}function it(e){if(!e)return{};try{let t=JSON.parse(e);return t!==null&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{return{}}}function p(e,t,o){return{status:t,body:k(t,o,e.requestId,e.apiVersion),headers:{"request-id":e.requestId}}}function Ee(e,t,o){let n=p(e,t,o);return{...n,body:[n.body]}}function Ie(e){return[{code:"authorizationError",value:"USER_PERMISSION_DENIED",message:e}]}function N(e,t,o=200){return{status:o,body:t,headers:{"request-id":e.requestId}}}function ee(e,t){return{status:404,body:{error:{code:404,message:`[twin gap] ${t} is a real Google Ads operation this twin does not model yet.`,status:"NOT_FOUND"}},headers:{"request-id":e.requestId}}}function st(e){return{"customer.resource_name":`customers/${e.id}`,"customer.id":e.id,"customer.descriptive_name":e.descriptiveName,"customer.currency_code":e.currencyCode,"customer.time_zone":e.timeZone,"customer.tracking_url_template":e.trackingUrlTemplate,"customer.final_url_suffix":e.finalUrlSuffix,"customer.auto_tagging_enabled":e.autoTaggingEnabled,"customer.manager":e.manager,"customer.test_account":e.testAccount,"customer.status":e.status,"customer.optimization_score":e.optimizationScore}}function at(e,t,o){let n=O(o),i=C(o),r=n.find(c=>c.id===t),s=st(r);return e==="customer"?{rows:[s],resourceName:()=>`customers/${t}`}:e==="customer_client"?{rows:ne(t,i).flatMap(({id:d,level:_})=>{let l=n.find(g=>g.id===d);if(l===void 0)return[];let u=i.find(g=>g.managerCustomerId===t&&g.clientCustomerId===d);return[{...s,"customer_client.resource_name":`customers/${t}/customerClients/${d}`,"customer_client.client_customer":`customers/${d}`,"customer_client.id":d,"customer_client.descriptive_name":l.descriptiveName,"customer_client.currency_code":l.currencyCode,"customer_client.time_zone":l.timeZone,"customer_client.manager":l.manager,"customer_client.test_account":l.testAccount,"customer_client.hidden":u?.hidden??!1,"customer_client.level":String(_),"customer_client.status":l.status}]}),resourceName:d=>String(d["customer_client.resource_name"])}:e==="customer_client_link"?{rows:i.filter(d=>d.managerCustomerId===t).map(d=>({...s,"customer_client_link.resource_name":`customers/${t}/customerClientLinks/${d.clientCustomerId}~${d.managerLinkId}`,"customer_client_link.client_customer":`customers/${d.clientCustomerId}`,"customer_client_link.manager_link_id":d.managerLinkId,"customer_client_link.status":d.status,"customer_client_link.hidden":d.hidden})),resourceName:d=>String(d["customer_client_link.resource_name"])}:{rows:W(t,o).map(c=>({...s,"conversion_action.resource_name":`customers/${t}/conversionActions/${String(c.id)}`,"conversion_action.id":c.id,"conversion_action.name":c.name,"conversion_action.status":c.status,"conversion_action.type":c.type,"conversion_action.category":c.category,"conversion_action.origin":c.origin,"conversion_action.owner_customer":`customers/${t}`,"conversion_action.primary_for_goal":c.primaryForGoal,"conversion_action.include_in_conversions_metric":c.includeInConversionsMetric,"conversion_action.click_through_lookback_window_days":c.clickThroughLookbackWindowDays,"conversion_action.view_through_lookback_window_days":c.viewThroughLookbackWindowDays,"conversion_action.counting_type":c.countingType,"conversion_action.value_settings.default_value":c.valueSettings?.defaultValue,"conversion_action.value_settings.default_currency_code":c.valueSettings?.defaultCurrencyCode,"conversion_action.value_settings.always_use_default_value":c.valueSettings?.alwaysUseDefaultValue,"conversion_action.attribution_model_settings.attribution_model":c.attributionModelSettings?.attributionModel})),resourceName:c=>String(c["conversion_action.resource_name"])}}function ct(e,t,o){try{let n=Z(X(typeof o=="string"?o:"")),{rows:i,resourceName:r}=at(n.query.from,t,e.req.root);return{results:J(n,i,r),fieldMask:n.fieldMask}}catch(n){if(n instanceof m)return[{code:"queryError",value:n.queryError,message:n.message}];throw n}}async function ut(e,t){let o=Array.isArray(e.body.operations)?e.body.operations:void 0;if(o===void 0)return p(e,400,[{code:"requestError",value:"REQUIRED_FIELD_MISSING",message:"The required field `operations` was not provided.",fieldPath:[{fieldName:"operations"}]}]);let n=e.body.partialFailure===!0,i=e.body.validateOnly===!0,r=e.body.responseContentType==="MUTABLE_RESOURCE",s=W(t,e.req.root),a=q("conversion_action",e.req.root),c=[];for(let u of o)c.push(dt(e,t,u,s,a));let d=c.flatMap((u,g)=>"error"in u?[{index:g,error:u.error}]:[]);if(d.length>0&&!n)return p(e,400,d.map(u=>({...u.error,fieldPath:[{fieldName:"operations",index:u.index},...u.error.fieldPath??[]]})));if(!i)for(let u of c)!("error"in u)&&u.apply&&await u.apply();if(i)return N(e,{results:[]});let _=c.map(u=>"error"in u?{}:{resourceName:u.resourceName,...r&&u.resource?{conversionAction:u.resource}:{}}),l=d.length>0?k(400,d.map(u=>({...u.error,fieldPath:[{fieldName:"operations",index:u.index},...u.error.fieldPath??[]]})),e.requestId,e.apiVersion).error:void 0;return N(e,{results:_,...l?{partialFailureError:l}:{}})}function dt(e,t,o,n,i){let r=`customers/${t}/conversionActions/`;if(typeof o.remove=="string"){let s=o.remove.startsWith(r)?o.remove.slice(r.length):null;return s===null?{error:{code:"requestError",value:"RESOURCE_NAME_MALFORMED",message:`'${o.remove}' is not a valid ConversionAction resource name for customer ${t}.`}}:n.some(a=>String(a.id)===s)?{resourceName:o.remove,apply:()=>w("conversion_action",s,"conversion_action.remove",{removed:!0},e.req)}:{error:{code:"mutateError",value:"RESOURCE_NOT_FOUND",message:`Resource ${o.remove} was not found.`}}}if(o.update!==void 0&&o.update!==null&&typeof o.update=="object"){let s=o.update,a=typeof s.resourceName=="string"?s.resourceName:"",c=a.startsWith(r)?a.slice(r.length):null;if(c===null)return{error:{code:"requestError",value:"RESOURCE_NAME_MISSING",message:"An update operation must carry the resource name of the resource to update."}};let d=n.find(u=>String(u.id)===c);if(d===void 0)return{error:{code:"mutateError",value:"RESOURCE_NOT_FOUND",message:`Resource ${a} was not found.`}};if(typeof o.updateMask!="string"||o.updateMask.trim()==="")return{error:{code:"fieldMaskError",value:"FIELD_MASK_MISSING",message:"An update operation requires an updateMask."}};let _=o.updateMask.split(",").map(u=>u.trim()).filter(Boolean);if(_.includes("type"))return{error:{code:"requestError",value:"IMMUTABLE_FIELD",message:"ConversionAction.type is immutable and cannot be updated.",fieldPath:[{fieldName:"type"}]}};let l={};for(let u of _)if(u==="name"){if(typeof s.name!="string"||s.name.trim()==="")return{error:{code:"requestError",value:"REQUIRED_FIELD_MISSING",message:"The updateMask names `name` but no name was supplied.",fieldPath:[{fieldName:"name"}]}};l.name=s.name}else if(u==="status"){let g=L(s.status,fe,"status");if(g)return{error:g};l.status=s.status}else if(u==="category"){let g=L(s.category,pe,"category");if(g)return{error:g};l.category=s.category}else if(u==="primaryForGoal")l.primaryForGoal=s.primaryForGoal===!0;else if(u.startsWith("valueSettings"))l.valueSettings={...d.valueSettings,...s.valueSettings};else return{error:{code:"fieldMaskError",value:"FIELD_NOT_FOUND",message:`[twin gap] '${u}' is a real ConversionAction field this twin does not accept in an updateMask yet (googleads.conversion_actions.update_fields).`,fieldPath:[{fieldName:u}]}};return{resourceName:a,resource:he({...d,...l},t),apply:()=>w("conversion_action",c,"conversion_action.update",l,e.req)}}if(o.create!==void 0&&o.create!==null&&typeof o.create=="object"){let s=o.create;if(typeof s.name!="string"||s.name.trim()==="")return{error:{code:"requestError",value:"REQUIRED_FIELD_MISSING",message:"The required field `name` was not provided.",fieldPath:[{fieldName:"name"}]}};if(typeof s.type!="string"||s.type.trim()==="")return{error:{code:"requestError",value:"REQUIRED_FIELD_MISSING",message:"The required field `type` was not provided.",fieldPath:[{fieldName:"type"}]}};let a=L(s.type,ot,"type");if(a)return{error:a};let c=s.status===void 0?null:L(s.status,fe,"status");if(c)return{error:c};let d=s.category===void 0?null:L(s.category,pe,"category");if(d)return{error:d};let _=s.countingType===void 0?null:L(s.countingType,nt,"countingType");if(_)return{error:_};if(n.some(A=>A.name===s.name))return{error:{code:"conversionActionError",value:"DUPLICATE_NAME",message:`A conversion action named '${String(s.name)}' already exists in customer ${t}.`,fieldPath:[{fieldName:"name"}]}};let l=x(i,7e8);i.add(l);let u=`${r}${l}`,g={id:l,customerId:t,resourceName:u,name:s.name,status:s.status??"ENABLED",type:s.type,category:s.category??"DEFAULT",origin:"CONVERSION_ORIGIN_UNSPECIFIED",primaryForGoal:s.primaryForGoal===void 0?!0:s.primaryForGoal===!0,includeInConversionsMetric:s.includeInConversionsMetric===void 0?!0:s.includeInConversionsMetric===!0,clickThroughLookbackWindowDays:s.clickThroughLookbackWindowDays??30,viewThroughLookbackWindowDays:s.viewThroughLookbackWindowDays??1,countingType:s.countingType??"ONE_PER_CLICK",valueSettings:{defaultValue:s.valueSettings?.defaultValue??0,defaultCurrencyCode:s.valueSettings?.defaultCurrencyCode??"",alwaysUseDefaultValue:s.valueSettings?.alwaysUseDefaultValue===!0},attributionModelSettings:{attributionModel:s.attributionModelSettings?.attributionModel??"GOOGLE_SEARCH_ATTRIBUTED_CONVERSION"}};return{resourceName:u,resource:he(g,t),apply:()=>w("conversion_action",l,"conversion_action.create",g,e.req)}}return{error:{code:"mutateError",value:"MUTATE_NOT_ALLOWED",message:"A mutate operation must carry exactly one of create, update or remove."}}}function he(e,t){let{__subjectId:o,customerId:n,removed:i,...r}=e;return{...r,resourceName:`customers/${t}/conversionActions/${String(e.id)}`,ownerCustomer:`customers/${t}`}}function L(e,t,o){return typeof e=="string"&&t.has(e)?null:{code:"requestError",value:"INVALID_ENUM_VALUE",message:`'${String(e)}' is not a valid value for ${o}.`,fieldPath:[{fieldName:o}]}}async function $(e){let t=Je(e),o;try{o=new URL(e.path,"http://twin.local")}catch{return{status:400,body:{error:{code:400,message:"Invalid request path.",status:"INVALID_ARGUMENT"}}}}let n=o.pathname,r=(V(e,"host")??"").toLowerCase().includes("datamanager")||/^\/v1\//.test(n),s=/^\/(v\d+)\//.exec(n),a=r?H:s?.[1]??R,c=it(e.body),d=e.readOnly??!1,_=e.method!=="GET"&&e.method!=="HEAD",l=V(e,"login-customer-id"),u={req:e,requestId:t,apiVersion:a,loginCustomerId:l===void 0||l===""?null:l,body:c};if(!/^Bearer\s+(.+)$/i.exec(V(e,"authorization")??"")?.[1]?.trim())return{status:401,body:z(),headers:{"www-authenticate":"Bearer"}};if(r)return pt(u,n,o,d,_);if(!V(e,"developer-token"))return p(u,401,[{code:"requestError",value:"DEVELOPER_TOKEN_PARAMETER_MISSING",message:"The developer-token parameter is required."}]);if(u.loginCustomerId!==null&&!/^\d{1,12}$/.test(u.loginCustomerId))return p(u,400,[{code:"requestError",value:"INVALID_CUSTOMER_ID",message:`'${u.loginCustomerId}' is not a valid customer ID; the login-customer-id header carries digits only.`}]);if(d&&_)return p(u,405,[{code:"requestError",value:"UNKNOWN",message:"This twin was started read-only; omit readOnly to accept writes."}]);let A=n.replace(/^\/+|\/+$/g,"").split("/");if(s===null)return ee(u,`${e.method} ${n}`);let f=A.slice(1);if(e.method==="GET"&&f.length===1&&f[0]==="customers:listAccessibleCustomers"){let h=O(e.root).filter(T=>T.directlyAccessible).map(T=>`customers/${T.id}`);return N(u,{resourceNames:h})}if(f.length>=2&&f[0]==="customers"){let[h,T]=lt(f[1]),S=f.length===3&&f[2]==="googleAds:searchStream",v=e.method!=="POST"?null:f.length===3&&(f[2]==="googleAds:search"||S)?"search":f.length===3&&f[2]==="conversionActions:mutate"?"conversionActions:mutate":f.length===3&&f[2]==="customerClientLinks:mutate"?"customerClientLinks:mutate":f.length===2&&T==="createCustomerClient"?"createCustomerClient":f.length===2&&T==="uploadClickConversions"?"uploadClickConversions":null;if(v===null)return ee(u,`${e.method} ${n}`);if(!/^\d{1,12}$/.test(h))return p(u,400,[{code:"requestError",value:"INVALID_CUSTOMER_ID",message:`'${h}' is not a valid customer ID.`}]);let E=h,b=re(E,u.loginCustomerId,O(e.root),C(e.root));if(!b.ok){let I=Ie(b.reason);return S?Ee(u,403,I):p(u,403,I)}if(v==="search"){let I=ct(u,E,u.body.query);return Array.isArray(I)?S?Ee(u,400,I):p(u,400,I):S?N(u,[{results:I.results,fieldMask:I.fieldMask,requestId:t}]):_t(u,I)}return v==="conversionActions:mutate"?ut(u,E):v==="createCustomerClient"?mt(u,E):v==="uploadClickConversions"?ft(u,E):gt(u,E)}return ee(u,`${e.method} ${n}`)}function lt(e){let t=e.indexOf(":");return t===-1?[e,null]:[e.slice(0,t),e.slice(t+1)]}function _t(e,t){let o=e.body.pageSize;if(o!==void 0&&(typeof o!="number"||!Number.isInteger(o)||o<=0))return p(e,400,[{code:"requestError",value:"INVALID_PAGE_SIZE",message:`'${String(o)}' is not a valid page size.`,fieldPath:[{fieldName:"pageSize"}]}]);let n=typeof o=="number"?Math.min(o,1e4):1e4,i=e.body.pageToken;if(i!==void 0&&(typeof i!="string"||!/^\d+$/.test(i)))return p(e,400,[{code:"requestError",value:"INVALID_PAGE_TOKEN",message:"The page token is not one this service issued.",fieldPath:[{fieldName:"pageToken"}]}]);let r=typeof i=="string"?Number(i):0,s=t.results.slice(r,r+n),a=r+n<t.results.length?String(r+n):void 0;return N(e,{results:s,fieldMask:t.fieldMask,requestId:e.requestId,...a?{nextPageToken:a}:{},...e.body.returnTotalResultsCount===!0?{totalResultsCount:String(t.results.length)}:{}})}async function mt(e,t){let o=O(e.req.root),n=o.find(l=>l.id===t);if(n===void 0||!n.manager)return p(e,400,[{code:"customerError",value:"CREATION_DENIED_INELIGIBLE_MCC",message:`Customer ${t} is not a manager account; only a manager can create client customers.`}]);let i=e.body.customerClient;if(i==null||typeof i!="object")return p(e,400,[{code:"requestError",value:"REQUIRED_FIELD_MISSING",message:"The required field `customerClient` was not provided.",fieldPath:[{fieldName:"customerClient"}]}]);let r=i;for(let l of["descriptiveName","currencyCode","timeZone"])if(typeof r[l]!="string"||r[l].trim()==="")return p(e,400,[{code:"requestError",value:"REQUIRED_FIELD_MISSING",message:`The required field \`customerClient.${l}\` was not provided.`,fieldPath:[{fieldName:"customerClient"},{fieldName:l}]}]);let s=new Set([...o.map(l=>l.id),...q("customer",e.req.root)]),a=x(s,3e9),c={id:a,descriptiveName:String(r.descriptiveName),currencyCode:String(r.currencyCode),timeZone:String(r.timeZone),manager:r.manager===!0,testAccount:r.testAccount===!0,status:"ENABLED",autoTaggingEnabled:!0,trackingUrlTemplate:typeof r.trackingUrlTemplate=="string"?r.trackingUrlTemplate:"",finalUrlSuffix:typeof r.finalUrlSuffix=="string"?r.finalUrlSuffix:"",optimizationScore:0,directlyAccessible:!1},d=new Set([...C(e.req.root).map(l=>l.managerLinkId),...Ae.map(l=>l.managerLinkId)]),_=x(d,1);return await w("customer",a,"customer.create_client",c,e.req),await w("customer_client_link",`${t}~${a}`,"customer_client_link.create",{managerCustomerId:t,clientCustomerId:a,managerLinkId:_,status:"ACTIVE",hidden:!1},e.req),N(e,{resourceName:`customers/${t}/customerClients/${a}`,...typeof r.emailAddress=="string"?{invitationLink:`https://ads.google.com/nav/selectaccount?authuser=0&sf=mcc&mcccid=${t}&cid=${a}`}:{}})}async function gt(e,t){let o=e.body.operation;if(o==null||typeof o!="object")return p(e,400,[{code:"requestError",value:"REQUIRED_FIELD_MISSING",message:"The required field `operation` was not provided.",fieldPath:[{fieldName:"operation"}]}]);let n=O(e.req.root).find(s=>s.id===t);if(n===void 0||!n.manager)return p(e,400,[{code:"customerError",value:"CREATION_DENIED_INELIGIBLE_MCC",message:`Customer ${t} is not a manager account.`}]);let i=o.create,r=o.update;if(i!==void 0){let s=typeof i.clientCustomer=="string"?i.clientCustomer.replace(/^customers\//,""):"";if(!/^\d{1,12}$/.test(s))return p(e,400,[{code:"requestError",value:"RESOURCE_NAME_MALFORMED",message:`'${String(i.clientCustomer)}' is not a valid customer resource name.`,fieldPath:[{fieldName:"clientCustomer"}]}]);if(!O(e.req.root).some(c=>c.id===s))return p(e,403,Ie(`The caller does not have permission to access customer ${s}.`));if(C(e.req.root).some(c=>c.managerCustomerId===t&&c.clientCustomerId===s))return p(e,400,[{code:"customerClientLinkError",value:"CLIENT_ALREADY_INVITED_BY_THIS_MANAGER",message:`Customer ${s} is already linked to manager ${t}.`}]);let a=x(new Set(C(e.req.root).map(c=>c.managerLinkId)),1);return await w("customer_client_link",`${t}~${s}`,"customer_client_link.create",{managerCustomerId:t,clientCustomerId:s,managerLinkId:a,status:"PENDING",hidden:i.hidden===!0},e.req),N(e,{result:{resourceName:`customers/${t}/customerClientLinks/${s}~${a}`}})}if(r!==void 0){let s=typeof r.resourceName=="string"?r.resourceName:"",a=/^customers\/(\d+)\/customerClientLinks\/(\d+)~(\d+)$/.exec(s);if(a===null||a[1]!==t)return p(e,400,[{code:"requestError",value:"RESOURCE_NAME_MALFORMED",message:`'${s}' is not a valid CustomerClientLink resource name for customer ${t}.`}]);let c=a[2];if(C(e.req.root).find(l=>l.managerCustomerId===t&&l.clientCustomerId===c)===void 0)return p(e,400,[{code:"mutateError",value:"RESOURCE_NOT_FOUND",message:`Resource ${s} was not found.`}]);let _=typeof r.status=="string"?r.status:"";return["ACTIVE","INACTIVE","PENDING","REFUSED","CANCELED"].includes(_)?(await w("customer_client_link",`${t}~${c}`,"customer_client_link.update",{status:_,...r.hidden===void 0?{}:{hidden:r.hidden===!0}},e.req),N(e,{result:{resourceName:s}})):p(e,400,[{code:"requestError",value:"INVALID_ENUM_VALUE",message:`'${_}' is not a valid ManagerLinkStatus.`,fieldPath:[{fieldName:"status"}]}])}return p(e,400,[{code:"mutateError",value:"MUTATE_NOT_ALLOWED",message:"A CustomerClientLink operation must carry create or update."}])}async function ft(e,t){let o=Array.isArray(e.body.conversions)?e.body.conversions:void 0;if(o===void 0)return p(e,400,[{code:"requestError",value:"REQUIRED_FIELD_MISSING",message:"The required field `conversions` was not provided.",fieldPath:[{fieldName:"conversions"}]}]);if(e.body.partialFailure!==!0)return p(e,400,[{code:"requestError",value:"REQUIRED_FIELD_MISSING",message:"partialFailure must be true for uploadClickConversions.",fieldPath:[{fieldName:"partialFailure"}]}]);let n=W(t,e.req.root),i=[],r=[],s=[];o.forEach((c,d)=>{let _=typeof c.conversionAction=="string"?c.conversionAction:"",l=_.replace(`customers/${t}/conversionActions/`,""),u=n.find(h=>String(h.id)===l),g=["gclid","gbraid","wbraid"].find(h=>typeof c[h]=="string"&&c[h]!=="");if(u===void 0){r.push({code:"conversionUploadError",value:"NO_CONVERSION_ACTION_FOUND",message:`Conversion action '${_}' does not exist in customer ${t}.`,fieldPath:[{fieldName:"conversions",index:d},{fieldName:"conversionAction"}]}),i.push({});return}if(u.type!=="UPLOAD_CLICKS"){r.push({code:"conversionUploadError",value:"INVALID_CONVERSION_ACTION_TYPE",message:`Conversion action '${_}' is type ${String(u.type)}; offline click uploads require UPLOAD_CLICKS.`,fieldPath:[{fieldName:"conversions",index:d},{fieldName:"conversionAction"}]}),i.push({});return}if(g===void 0){r.push({code:"requestError",value:"REQUIRED_FIELD_MISSING",message:"A click conversion must carry one of gclid, gbraid or wbraid.",fieldPath:[{fieldName:"conversions",index:d},{fieldName:"gclid"}]}),i.push({});return}if(typeof c.conversionDateTime!="string"||c.conversionDateTime.trim()===""){r.push({code:"requestError",value:"REQUIRED_FIELD_MISSING",message:'conversionDateTime is required and must be "yyyy-MM-dd HH:mm:ss+|-HH:mm".',fieldPath:[{fieldName:"conversions",index:d},{fieldName:"conversionDateTime"}]}),i.push({});return}let A=oe(`${e.requestId}|${t}|${String(c[g])}|${String(c.conversionDateTime)}|${l}|${d}`,20,"abcdefghijklmnopqrstuvwxyz0123456789"),f={customerId:t,conversionAction:_,conversionActionId:l,lane:"conversion_upload_service",clickIdKind:g,clickId:c[g],conversionDateTime:c.conversionDateTime,conversionValue:c.conversionValue??null,currencyCode:c.currencyCode??null,orderId:c.orderId??null};s.push(()=>w("click_conversion",A,"click_conversion.upload",f,e.req)),i.push({[g]:c[g],conversionAction:_,conversionDateTime:c.conversionDateTime})});for(let c of s)await c();let a=r.length>0?k(400,r,e.requestId,e.apiVersion).error:void 0;return N(e,{results:i,...a?{partialFailureError:a}:{}})}async function pt(e,t,o,n,i){return n&&i?{status:405,body:y(405,"This twin was started read-only; omit readOnly to accept writes.","PERMISSION_DENIED")}:e.req.method==="POST"&&t==="/v1/events:ingest"?ht(e):e.req.method==="GET"&&t==="/v1/requestStatus:retrieve"?vt(e,o):{status:404,body:{error:{code:404,message:`[twin gap] ${e.req.method} ${t} is a real Data Manager API operation this twin does not model yet.`,status:"NOT_FOUND"}}}}function Et(e){let t=Array.isArray(e.destinations)?e.destinations:null;if(t===null||t.length===0)return null;let o=[];for(let n of t){let i=n.operatingAccount;if(i===void 0||typeof i.accountId!="string"||typeof i.accountType!="string")return null;let r=n.loginAccount;o.push({...typeof n.reference=="string"?{reference:n.reference}:{},operatingAccountId:i.accountId,operatingAccountType:i.accountType,productDestinationId:typeof n.productDestinationId=="string"?n.productDestinationId:"",loginAccountId:r!==void 0&&typeof r.accountId=="string"?r.accountId:null})}return o}async function ht(e){let t=Et(e.body);if(t===null)return{status:400,body:y(400,"destinations is required and each destination must carry an operatingAccount with accountId and accountType.","REQUIRED_FIELD_MISSING")};let o=Array.isArray(e.body.events)?e.body.events:null;if(o===null||o.length===0)return{status:400,body:y(400,"events is required and must not be empty.","REQUIRED_FIELD_MISSING")};let n=O(e.req.root),i=C(e.req.root);for(let s of t){if(s.operatingAccountType!=="GOOGLE_ADS")return{status:400,body:y(400,`[twin gap] operatingAccount.accountType ${s.operatingAccountType} is a real Data Manager destination type this twin does not model yet; only GOOGLE_ADS is served.`,"INVALID_DESTINATION")};let a=re(s.operatingAccountId,s.loginAccountId,n,i);if(!a.ok)return{status:403,body:y(403,a.reason,"PERMISSION_DENIED")};let c=W(s.operatingAccountId,e.req.root).find(d=>String(d.id)===s.productDestinationId);if(c===void 0)return{status:400,body:y(400,`productDestinationId ${s.productDestinationId} is not a conversion action in Google Ads account ${s.operatingAccountId}.`,"INVALID_CONVERSION_ACTION_ID")};if(c.type!=="UPLOAD_CLICKS")return{status:400,body:y(400,`Conversion action ${s.productDestinationId} is type ${String(c.type)}; event ingestion requires UPLOAD_CLICKS.`,"INVALID_CONVERSION_ACTION_TYPE")}}for(let[s,a]of o.entries()){if(typeof a.eventTimestamp!="string"||Number.isNaN(Date.parse(a.eventTimestamp)))return{status:400,body:y(400,`events[${s}].eventTimestamp must be an RFC 3339 timestamp.`,"EVENT_TIME_INVALID")};let c=a.adIdentifiers,d=c!==void 0&&["gclid","gbraid","wbraid","dclid"].some(l=>typeof c[l]=="string"&&c[l]!==""),_=a.userData!==void 0&&a.userData!==null;if(!d&&!_)return{status:400,body:y(400,`events[${s}] carries neither adIdentifiers nor userData; at least one identifier is required.`,"NO_IDENTIFIERS_PROVIDED")}}let r=e.requestId;if(e.body.validateOnly===!0)return{status:200,body:{requestId:r}};for(let[s,a]of o.entries()){let c=a.adIdentifiers??{},d=["gclid","gbraid","wbraid","dclid"].find(l=>typeof c[l]=="string"&&c[l]!=="")??null,_=oe(`${r}|${s}`,20,"abcdefghijklmnopqrstuvwxyz0123456789");await w("click_conversion",_,"click_conversion.ingest",{lane:"data_manager",requestId:r,customerId:t[0].operatingAccountId,conversionActionId:t[0].productDestinationId,conversionAction:`customers/${t[0].operatingAccountId}/conversionActions/${t[0].productDestinationId}`,transactionId:a.transactionId??null,eventTimestamp:a.eventTimestamp,eventSource:a.eventSource??"EVENT_SOURCE_UNSPECIFIED",clickIdKind:d,clickId:d===null?null:c[d],conversionValue:a.conversionValue??null,currency:a.currency??null,conversionCount:a.conversionCount??null},e.req)}return await w("ingest_request",r,"ingest_request.create",{requestId:r,kind:"events",recordCount:o.length,destinations:t.map(s=>({...s.reference===void 0?{}:{reference:s.reference},operatingAccount:{accountType:s.operatingAccountType,accountId:s.operatingAccountId},productDestinationId:s.productDestinationId,...s.loginAccountId===null?{}:{loginAccount:{accountType:"GOOGLE_ADS",accountId:s.loginAccountId}}}))},e.req),{status:200,body:{requestId:r}}}function vt(e,t){let o=t.searchParams.get("requestId");if(o===null||o==="")return{status:400,body:y(400,"requestId is required.","REQUIRED_FIELD_MISSING")};let n=P("ingest_request",e.req.root).find(r=>String(r.requestId)===o);return n===void 0?{status:404,body:y(404,`No ingestion request with id ${o}.`,"INVALID_REQUEST_ID")}:{status:200,body:{requestStatusPerDestination:(Array.isArray(n.destinations)?n.destinations:[]).map(r=>({destination:r,requestStatus:"SUCCESS",ingestEventsStatus:{recordCount:String(n.recordCount??0)}}))}}}function ie(e){return P("click_conversion",e)}import{createTwinFetchFromHandler as At,serveHttp as Ht,statefulTwinManifest as It}from"../../engine/v2/volter_world-core.mjs";var ye={authorization:"Bearer twin-store-door","developer-token":"twin-store-door"};async function Se(e,t,o,n){let i=await $({method:"POST",path:`/${R}/customers/${t}/googleAds:searchStream`,body:JSON.stringify({query:o}),headers:{...ye,...n===void 0?{}:{"login-customer-id":n}},...e===void 0?{}:{root:e}});return i.status!==200||!Array.isArray(i.body)?[]:i.body.flatMap(r=>r.results??[])}async function we(e){let o=(await $({method:"GET",path:`/${R}/customers:listAccessibleCustomers`,headers:ye,...e===void 0?{}:{root:e}})).body?.resourceNames??[],n=[],i=new Set;for(let r of o){let s=r.replace(/^customers\//,""),a=await Se(e,s,"SELECT customer_client.id, customer_client.descriptive_name, customer_client.manager, customer_client.level, customer_client.currency_code, customer_client.status FROM customer_client",s);for(let c of a){let d=c.customerClient??{},_=String(d.id??"");_===""||i.has(_)||(i.add(_),n.push({...d,loginCustomerId:s===_?null:s}))}}return{accounts:n.sort((r,s)=>String(r.id).localeCompare(String(s.id)))}}async function yt(e){let t=(await we(e)).accounts,o=[];for(let n of t){let i=String(n.id),r=n.loginCustomerId===null?void 0:String(n.loginCustomerId),s=await Se(e,i,"SELECT conversion_action.id, conversion_action.name, conversion_action.status, conversion_action.type, conversion_action.category FROM conversion_action WHERE conversion_action.type = UPLOAD_CLICKS",r);for(let a of s){let c=a.conversionAction??{};o.push({...c,customerId:i,customerName:n.descriptiveName??null})}}return{conversionActions:o}}function se(e={}){return At($,{...e,manifest:It({vendor:"googleads",twinOf:"the Google Ads API (googleads.googleapis.com) and the Data Manager API (datamanager.googleapis.com)",stores:"customer accounts and their manager hierarchy, conversion actions, and uploaded offline conversions"}),stores:{accounts:()=>we(e.root),conversion_actions:()=>yt(e.root),conversions:()=>({conversions:ie(e.root)})},responseHeaders:{"x-twin-vendor":"googleads"}})}import{assertBudgetGuardIntact as eo,observeResources as Ct}from"../../engine/v2/volter_world-core.mjs";import{declareRateBudget as St,rateBudgetPath as Yt,rateBudgetWeight as zt,RateBudget as Kt}from"../../engine/v2/volter_world-core.mjs";import{RateBudgetError as Re}from"../../engine/v2/volter_world-core.mjs";var wt="googleads",Te=36e5,Ne=100,Ce=20,Oe=300,D={write:5,keywordIdeas:20,other:1},j={windowMs:Te,ceiling:Ne,burstCeiling:Ce,defaultWeight:D.other,maxRetryAfterSeconds:Oe,rules:[{match:":mutate$",weight:D.write},{match:":upload[A-Za-z]*Conversions$",weight:D.write},{match:":uploadUserData$",weight:D.write},{match:":ingest$",weight:D.write},{match:":generateKeyword[A-Za-z]*$",weight:D.keywordIdeas}],reason:'Google Ads publishes a DAILY OPERATION quota, not a rate: developers.google.com/google-ads/api/docs/best-practices/quotas (read 2026-09-13) documents "2,880 API operations per day against production accounts" at the Explorer access level a fresh developer token starts on, and "15,000 API operations per day" at Basic. The kernel caps a window at one hour, so the Explorer figure is carried as its hourly share (120/hour) and the ceiling sits UNDER it at 100 weighted units/hour \u2014 far tighter than the kernel fallback (30 calls/min), which is the direction that needs no justification. burstCeiling 20/60s keeps the hour from being spent in one instant. The same page publishes "1 QPS ... 60 requests per 60 seconds" for KeywordPlanIdeaService (hence weight 20 on generateKeyword*), "10,000 mutate operations per request" and "2,000 conversions per request" \u2014 those two are per-request CAPS on the number of operations, not prices, so the weight 5 on mutate/upload/ingest is a JUDGEMENT that one operation-carrying call is worth several reads, not a published cost. No X-RateLimit-* headers are documented for this API; the guard reads the conventional spellings IF PRESENT and never assumes them.'};St(wt,j);var De="googleads";var Le=0;function Ot(){let e=Math.max(Date.now(),Le+1);return Le=e,new Date(e).toISOString()}function ae(e,t){if(e.status<200||e.status>=300)throw new Error(`googleads pull refused (${e.status}) reading ${t}: ${JSON.stringify(e.data).slice(0,300)}`);let o=Array.isArray(e.data)?e.data:[e.data],n=[];for(let i of o){if(i!==null&&typeof i=="object"&&"error"in i)throw new Error(`googleads pull refused reading ${t}: ${JSON.stringify(i.error).slice(0,300)}`);let r=i?.results;Array.isArray(r)&&n.push(...r)}return n}function be(e){let t=e.customerClient??{},o=String(t.id??"");return{type:"customer",id:o,fields:{id:o,descriptiveName:t.descriptiveName??`Account ${o}`,currencyCode:t.currencyCode??"USD",timeZone:t.timeZone??"America/Los_Angeles",manager:t.manager===!0,testAccount:t.testAccount===!0,status:t.status??"ENABLED",autoTaggingEnabled:!0,trackingUrlTemplate:"",finalUrlSuffix:"",optimizationScore:0,directlyAccessible:String(t.level??"")==="0"}}}function ke(e,t){let o=e.conversionAction??{},n=String(o.id??""),i=o.valueSettings??{};return{type:"conversion_action",id:n,fields:{id:n,customerId:t,resourceName:o.resourceName??`customers/${t}/conversionActions/${n}`,name:o.name??"",status:o.status??"ENABLED",type:o.type??"UPLOAD_CLICKS",category:o.category??"DEFAULT",origin:o.origin??"CONVERSION_ORIGIN_UNSPECIFIED",primaryForGoal:o.primaryForGoal!==!1,includeInConversionsMetric:o.includeInConversionsMetric!==!1,clickThroughLookbackWindowDays:o.clickThroughLookbackWindowDays??30,viewThroughLookbackWindowDays:o.viewThroughLookbackWindowDays??1,countingType:o.countingType??"ONE_PER_CLICK",valueSettings:{defaultValue:i.defaultValue??0,defaultCurrencyCode:i.defaultCurrencyCode??"",alwaysUseDefaultValue:i.alwaysUseDefaultValue===!0},attributionModelSettings:{attributionModel:(o.attributionModelSettings??{}).attributionModel??"GOOGLE_SEARCH_ATTRIBUTED_CONVERSION"}}}}var Ue="SELECT customer_client.id, customer_client.descriptive_name, customer_client.currency_code, customer_client.time_zone, customer_client.manager, customer_client.test_account, customer_client.level, customer_client.status FROM customer_client",Rt="SELECT conversion_action.id, conversion_action.name, conversion_action.resource_name, conversion_action.status, conversion_action.type, conversion_action.category, conversion_action.primary_for_goal, conversion_action.counting_type, conversion_action.click_through_lookback_window_days, conversion_action.view_through_lookback_window_days, conversion_action.origin, conversion_action.include_in_conversions_metric, conversion_action.attribution_model_settings.attribution_model, conversion_action.value_settings.default_value, conversion_action.value_settings.default_currency_code, conversion_action.value_settings.always_use_default_value FROM conversion_action";async function Ge(e,t){let o=await e({method:"GET",path:"/customers:listAccessibleCustomers"});if(o.status<200||o.status>=300)throw new Error(`googleads could not resolve a login-customer-id for ${t} (${o.status}): ${JSON.stringify(o.data).slice(0,300)}`);let n=o.data?.resourceNames??[];for(let i of n)if(i.replace(/^customers\//,"")===t)return null;for(let i of n){let r=i.replace(/^customers\//,""),s=ae(await e({method:"POST",path:`/customers/${r}/googleAds:searchStream`,body:{query:Ue},loginCustomerId:r}),`the account hierarchy under ${r}`);for(let a of s)if(String((a.customerClient??{}).id??"")===t)return r}}async function Pe(e){let t=await e({method:"GET",path:"/customers:listAccessibleCustomers"});if(t.status<200||t.status>=300)throw new Error(`googleads pull refused (${t.status}) listing accessible customers: ${JSON.stringify(t.data).slice(0,300)}`);let o=t.data?.resourceNames??[],n=[],i=new Map;for(let r of o){let s=r.replace(/^customers\//,""),a=ae(await e({method:"POST",path:`/customers/${s}/googleAds:searchStream`,body:{query:Ue},loginCustomerId:s}),`the account hierarchy under ${s}`);for(let c of a){let d=be(c);d.id===""||i.has(d.id)||(i.set(d.id,d.id===s?null:s),n.push(d))}}for(let r of n.filter(s=>s.type==="customer"&&s.fields.manager!==!0)){let s=ae(await e({method:"POST",path:`/customers/${r.id}/googleAds:searchStream`,body:{query:Rt},loginCustomerId:i.get(r.id)??null}),`the conversion actions of ${r.id}`);for(let a of s)n.push(ke(a,r.id))}return n}async function $e(e,t={}){let o=t.occurredAt??Ot(),n=await Pe(e),i=Ct(De,n.map(r=>({type:r.type,id:r.id,fields:r.fields})),{...t.root!==void 0?{root:t.root}:{},at:o,batch:`obs:${De}:${o}`});return{observed:i.observed,deltasAppended:i.appended}}var Dt=new Set(["ingest_request"]);function Me(e){if(Dt.has(e.subject.type))return null;let t=e.fields??{},o=e.operation??"";if(e.subject.type==="conversion_action"){let n=String(t.customerId??"");if(n==="")return null;let i=`/customers/${n}/conversionActions:mutate`;if(o.endsWith(".remove"))return{method:"POST",path:i,body:{operations:[{remove:`customers/${n}/conversionActions/${e.subject.id}`}]}};if(o.endsWith(".update")){let _=Object.keys(t).filter(l=>l!=="customerId").join(",");return{method:"POST",path:i,body:{operations:[{update:{resourceName:`customers/${n}/conversionActions/${e.subject.id}`,...t},updateMask:_}]}}}let{customerId:r,id:s,resourceName:a,origin:c,...d}=t;return{method:"POST",path:i,body:{operations:[{create:d}],responseContentType:"MUTABLE_RESOURCE"}}}if(e.subject.type==="customer_client_link"){let n=String(t.managerCustomerId??""),i=String(t.clientCustomerId??"");return n===""||i===""?null:{method:"POST",path:`/customers/${n}/customerClientLinks:mutate`,body:{operation:{create:{clientCustomer:`customers/${i}`,status:t.status??"PENDING",hidden:t.hidden===!0}}}}}if(e.subject.type==="click_conversion"&&t.lane==="data_manager")return{method:"POST",host:"datamanager",path:"/events:ingest",body:{destinations:[{operatingAccount:{accountType:"GOOGLE_ADS",accountId:String(t.customerId??"")},productDestinationId:String(t.conversionActionId??"")}],events:[{eventTimestamp:t.eventTimestamp,...t.transactionId?{transactionId:t.transactionId}:{},eventSource:t.eventSource??"WEB",adIdentifiers:t.clickIdKind?{[String(t.clickIdKind)]:t.clickId}:{},...t.conversionValue===null||t.conversionValue===void 0?{}:{conversionValue:t.conversionValue},...t.currency?{currency:t.currency}:{}}]}};if(e.subject.type==="click_conversion"){let n=String(t.customerId??"");return n===""?null:{method:"POST",path:`/customers/${n}:uploadClickConversions`,body:{partialFailure:!0,conversions:[{conversionAction:t.conversionAction,conversionDateTime:t.conversionDateTime,...t.clickIdKind?{[String(t.clickIdKind)]:t.clickId}:{},...t.conversionValue===null||t.conversionValue===void 0?{}:{conversionValue:t.conversionValue},...t.currencyCode?{currencyCode:t.currencyCode}:{}}]}}}return null}function ce(e){return async({method:t,path:o,body:n,host:i,loginCustomerId:r})=>{let a=await e({method:t,path:`/${i==="datamanager"?H:R}${o}`,headers:{accept:"application/json",authorization:"Bearer twin-head-placeholder","developer-token":"twin-head-placeholder",...n?{"content-type":"application/json"}:{},...r?{"login-customer-id":String(r)}:{}},...n===void 0?{}:{body:JSON.stringify(n)}}),c=null;if(a.body)try{c=JSON.parse(a.body)}catch{c={error:{message:a.body}}}return{status:a.status,data:c}}}async function Fe(e,t={}){return $e(ce(e),{...t.root!==void 0?{root:t.root}:{},...t.occurredAt!==void 0?{occurredAt:t.occurredAt}:{}})}async function Be(e,t,o){return Ve(ce(e),t,o)}function Lt(e){let o=e.body?.destinations?.[0]?.operatingAccount;return typeof o?.accountId=="string"?o.accountId:""}function bt(e,t){if(e.host!=="datamanager")return{...e,loginCustomerId:t};let o=e.body??{};return{...e,body:{...o,destinations:(o.destinations??[]).map(n=>({...n,loginAccount:{accountType:"GOOGLE_ADS",accountId:t}}))}}}async function Ve(e,t,o){let n=Me(t);if(n===null)return{externalId:t.subject.id,data:{performed:!1,reason:`${t.subject.type} has no Google Ads write path this connector can perform (${t.operation??"unknown operation"})`}};let i=await e(n);if(i.status===403&&JSON.stringify(i.data).includes("USER_PERMISSION_DENIED")&&n.loginCustomerId===void 0){let d=n.host==="datamanager"?Lt(n):/\/customers\/(\d+)/.exec(n.path)?.[1]??"";if(d!==""){let _=await Ge(e,d);typeof _=="string"&&(i=await e(bt(n,_)))}}if(i.status<200||i.status>=300)throw new Error(`googleads perform ${t.operation??t.subject.type} refused (${i.status}): ${JSON.stringify(i.data).slice(0,300)}`);let r=i.data??{};if(r.partialFailureError!==void 0)throw new Error(`googleads perform ${t.operation??t.subject.type} partially failed: ${JSON.stringify(r.partialFailureError).slice(0,300)}`);let s=Array.isArray(r.results)?r.results:[],a=typeof s[0]?.resourceName=="string"?s[0].resourceName:typeof r.result?.resourceName=="string"?String(r.result.resourceName):typeof r.requestId=="string"?r.requestId:null;return a===null?{externalId:t.subject.id}:{externalId:a.includes("/")?a.slice(a.lastIndexOf("/")+1):a}}import{bundleClient as io,fileResponse as so,serveHttp as ao,filePathOf as co}from"../../engine/v2/volter_world-core.mjs";import{registerPack as kt}from"../../engine/v2/volter_world-core.mjs";var Ut={vendor:"googleads",protocol:"2",stateSystem:{perform:Be,refresh:Fe},refresh:{every:"30m",onDemand:{atMost:"120s"}},roundTrip:{method:"POST",path:"/v22/customers/1234567890:createCustomerClient",body:{customerClient:{descriptiveName:"Round Trip",currencyCode:"USD",timeZone:"America/Los_Angeles"}},headers:{authorization:"Bearer round-trip","developer-token":"round-trip"}},parityOrigin:"http://twin",rateBudget:j,transport:"rest",archetype:"crud",bin:"world-googleads",resources:["customer","customer_client_link","conversion_action","click_conversion","ingest_request"],specSource:"google/ads/googleads/v22/**/*.proto and google/ads/datamanager/v1/*.proto in googleapis/googleapis (the vendor's own protobuf definitions; every REST operation is compiled from the `google.api.http` binding on each rpc), read 2026-09-13",description:"Google Ads twin \u2014 the v22 REST surface (accounts, the GAQL search/searchStream reporting engine, conversionActions mutate, offline conversion upload) plus the Data Manager v1 ingestion API, with the real GoogleAdsFailure envelope and login-customer-id semantics.",adoption:{sdks:["google-ads-api","google-ads-node"],pypi:["google-ads"],envStems:["GOOGLEADS","GOOGLEADSDEVELOPER"]},hosts:[{host:"googleads.googleapis.com"},{host:"datamanager.googleapis.com"}],endpointEnvNone:"no Google Ads client exposes an HTTP base-URL override: google-ads-api builds the host into the request literally, google-ads-python's `endpoint` is a gRPC host:port for its transport channel, and Dub hardcodes the host in a raw fetch. Interception is host-based."};kt(Ut);export{se as createTwinFetch};
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,7 @@
1
+ @agenttwin/twin-googlemaps
2
+
3
+ Contains @volter/twin-googlemaps 0.1.37 by Volter (https://github.com/volter-ai),
4
+ licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ Modified by AgentTwin: bundled and minified into one file; only code reachable from the pack's
7
+ fetch factory is included; shared modules are imported from the AgentTwin twin engine.